Issue 380 in googlecl: Installation Error

16 views
Skip to first unread message

goog...@googlecode.com

unread,
Mar 17, 2011, 5:19:08 PM3/17/11
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

goog...@googlecode.com

unread,
Mar 17, 2011, 8:45:14 PM3/17/11
to google...@googlegroups.com
Updates:
Status: Feedback

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.

goog...@googlecode.com

unread,
Mar 18, 2011, 5:26:12 PM3/18/11
to google...@googlegroups.com

Comment #2 on issue 380 by info%aer...@gtempaccount.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

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 ~]#


goog...@googlecode.com

unread,
Mar 19, 2011, 10:31:08 AM3/19/11
to google...@googlegroups.com

Comment #3 on issue 380 by tom.h.mi...@gmail.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

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!

goog...@googlecode.com

unread,
Mar 19, 2011, 10:35:09 AM3/19/11
to google...@googlegroups.com

Comment #4 on issue 380 by info%aer...@gtempaccount.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

I think i have installed googlecl.

goog...@googlecode.com

unread,
Mar 19, 2011, 1:01:19 PM3/19/11
to google...@googlegroups.com

Comment #5 on issue 380 by info%aer...@gtempaccount.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

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'


goog...@googlecode.com

unread,
Mar 19, 2011, 1:34:39 PM3/19/11
to google...@googlegroups.com

Comment #6 on issue 380 by tom.h.mi...@gmail.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

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.

goog...@googlecode.com

unread,
Mar 19, 2011, 1:38:43 PM3/19/11
to google...@googlegroups.com

Comment #7 on issue 380 by info%aer...@gtempaccount.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

Ok, ill try, and why shouldnt i use the root account?

goog...@googlecode.com

unread,
Mar 20, 2011, 12:48:14 PM3/20/11
to google...@googlegroups.com

Comment #8 on issue 380 by humzabo...@virginmedia.com: Installation Error
http://code.google.com/p/googlecl/issues/detail?id=380

I keep running in to dead ends: I am stuck, a video will describe a bit
better:

http://www.youtube.com/watch?v=R8QSgV5Ds9Y

goog...@googlecode.com

unread,
Mar 31, 2011, 9:48:26 PM3/31/11
to google...@googlegroups.com
Updates:
Status: Invalid

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.

goog...@googlecode.com

unread,
Mar 31, 2011, 9:51:58 PM3/31/11
to google...@googlegroups.com
Updates:
Status: Feedback

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.

goog...@googlecode.com

unread,
Sep 11, 2014, 3:20:35 AM9/11/14
to google...@googlegroups.com

Comment #11 on issue 380 by wer...@beroux.com: Installation Error
https://code.google.com/p/googlecl/issues/detail?id=380

I had to mkdir ~/.local/share/googlecl

Sounds like this should be done automatically. If I fork and patch, would
you take the pull request?

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages