New issue 380 by info%aer...@gtempaccount.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380
What steps will reproduce the problem?
[root@infinity googlecl-0.9.12]#
[root@infinity googlecl-0.9.12]# python setup.py install --record=files.txt
File "setup.py", line 45
with open(path, 'r') as my_file:
^
SyntaxError: invalid syntax
[root@infinity googlecl-0.9.12]# cd /root/googlecl-0.9.12/src/
[root@infinity src]# python google.py
python: can't open file 'google.py': [Errno 2] No such file or directory
[root@infinity src]#
What is the expected output? What do you see instead?
To install the program
What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)? gdata-2.0.14
Please provide any additional information below.
I am using CentOS 5.5. I have chmod 777 setup.py
Comment #1 on issue 380 by tom.h.mi...@gmail.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380
What version of Python are you using? Sounds like it doesn't like
the "with" statement. Only versions 2.5 - 2.7 are supported.
Ok, I've installed it and for some reason I cant get the actuall program to
run via python26 instead of python. < That's how I installed it (python26
setup.py install).
[root@infinity ~]# google youtube post --category Entertainment --tags "air
crash investigation full free hd hdtv 720p 1080p real aerocrash money earn
online gift prize widescreen airport car definition hack landing vertigo
HDTV x264 manchester runway disaster british airtours flight 28M"
--summary "TBE (to be edited)" --title "Air Crash Investigation -
Manchester Runway Disaster - British Airtours Flight 28M - 720p HDTV"
~/humza/distribution/lost_for_filenames.mp4
Traceback (most recent call last):
File "/usr/bin/google", line 839, in <module>
main()
File "/usr/bin/google", line 825, in main
run_once(options, args)
File "/usr/bin/google", line 530, in run_once
options.config)
File "/usr/bin/google", line 366, in import_service
service_module = import_at_runtime('googlecl.' + service + '.service')
File "/usr/bin/google", line 323, in import_at_runtime
return __import__(module, globals(), fromlist=['0'])
File "/usr/lib/python2.6/site-packages/googlecl/youtube/service.py", line
20, in <module>
import gdata.youtube
ImportError: No module named gdata.youtube
[root@infinity ~]#
You also need to install the gdata library from here:
http://code.google.com/p/gdata-python-client/downloads/list
Then, assuming you're using googlecl 0.9.13, you'll have to make the
directory ~/.local/share/googlecl (see Issue 352). Then you should be good
to go!
I think i have installed googlecl.
Ok, so I've got it working but there is another error:
[root@infinity gdata-2.0.14]# cd
[root@infinity ~]# google youtube post --category Entertainment --tags "air
crash investigation full free hd hdtv 720p 1080p real aerocrash money earn
online gift prize widescreen airport car definition hack landing vertigo
HDTV x264 manchester runway disaster british airtours flight 28M"
--summary "TBE (to be edited)" --title "Air Crash Investigation -
Manchester Runway Disaster - British Airtours Flight 28M - 720p HDTV"
~/humza/distribution/lost_for_filenames.mp4
Please specify user: aerocrasher
Traceback (most recent call last):
File "/usr/bin/google", line 839, in <module>
main()
File "/usr/bin/google", line 825, in main
run_once(options, args)
File "/usr/bin/google", line 572, in run_once
googlecl.write_devkey(options.devkey)
File "/usr/lib/python2.6/site-packages/googlecl/__init__.py", line 266,
in write_devkey
with open(key_path, 'w') as key_file:
IOError: [Errno 2] No such file or
directory: '/root/.local/share/googlecl/yt_devkey'
Did you make the directory "~/.local/share/googlecl"? In your case, that
would be "/root/.local/share/googlecl"
As a side note, it's considered bad practice to run something like GoogleCL
as root / superuser. I would recommend using GoogleCL from a different user
account.
Ok, ill try, and why shouldnt i use the root account?
I keep running in to dead ends: I am stuck, a video will describe a bit
better:
Comment #9 on issue 380 by tom.h.mi...@gmail.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380
I believe this issue was originally invalid (required gdata), and the issue
mentioned in comment 8 became Issue 382. Therefore I'm marking this Invalid.
Comment #10 on issue 380 by tom.h.mi...@gmail.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380
I think some of the services require an encrypted connection. Can you
upgrade your browser, or use one with SSL support?
Or, it looks like you're SSH'ing into another machine. You should be able
to obtain an authentication token from one machine, then transfer it to
another. Google should still honor that token.