carbans / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Installation Error #380

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by aerocr...@infinitymedia.org.uk on 17 Mar 2011 at 9:18

GoogleCodeExporter commented 9 years ago
What version of Python are you using? Sounds like it doesn't like the "with" 
statement. Only versions 2.5 - 2.7 are supported.

Original comment by tom.h.mi...@gmail.com on 18 Mar 2011 at 12:44

GoogleCodeExporter commented 9 years ago
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 ~]#

Original comment by aerocr...@infinitymedia.org.uk on 18 Mar 2011 at 9:25

GoogleCodeExporter commented 9 years ago
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!

Original comment by tom.h.mi...@gmail.com on 19 Mar 2011 at 2:30

GoogleCodeExporter commented 9 years ago
I think i have installed googlecl.

Original comment by aerocr...@infinitymedia.org.uk on 19 Mar 2011 at 2:31

GoogleCodeExporter commented 9 years ago
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'

Original comment by aerocr...@infinitymedia.org.uk on 19 Mar 2011 at 5:00

GoogleCodeExporter commented 9 years ago
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.

Original comment by tom.h.mi...@gmail.com on 19 Mar 2011 at 5:34

GoogleCodeExporter commented 9 years ago
Ok, ill try, and why shouldnt i use the root account?

Original comment by aerocr...@infinitymedia.org.uk on 19 Mar 2011 at 5:35

GoogleCodeExporter commented 9 years ago
I keep running in to dead ends: I am stuck, a video will describe a bit better:

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

Original comment by aerocr...@infinitymedia.org.uk on 20 Mar 2011 at 4:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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.

Original comment by tom.h.mi...@gmail.com on 1 Apr 2011 at 1:42

GoogleCodeExporter commented 9 years ago
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?

Original comment by wer...@beroux.com on 11 Sep 2014 at 7:20