ACueva / googlecl

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

easy_install didn't install dependency gdata #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm on OS X 10.5.8.  I've got a .pydistutils.cfg:

    [install]
    install_lib = ~/Library/Python/$py_version_short/site-packages
    install_scripts = ~/bin

with setuptools 0.6c11.

Installing googlecl on a fresh system completes without also installing gdata, 
upon which it apparently depends.

iSitOnDesk:~ janderson$ easy_install googlecl
Searching for googlecl
Reading http://pypi.python.org/simple/googlecl/
Reading http://code.google.com/p/googlecl
Best match: googlecl 0.9.5
Downloading http://googlecl.googlecode.com/files/googlecl-0.9.5.tar.gz
Processing googlecl-0.9.5.tar.gz
Running googlecl-0.9.5/setup.py -q bdist_egg --dist-dir 
/var/folders/Yi/YiHUJvNUFwqvR0K-d2WKM++++TM/-Tmp-/easy_install-odJxwf/googlecl-0
.9.5/egg-dist-tmp-Sh0aqW
warning: no files found matching '*.py' under directory 'googlecl'
zip_safe flag not set; analyzing archive contents...
Adding googlecl 0.9.5 to easy-install.pth file
Installing google script to /Users/janderson/bin

Installed 
/Users/janderson/Library/Python/2.5/site-packages/googlecl-0.9.5-py2.5.egg
Processing dependencies for googlecl
Finished processing dependencies for googlecl
iSitOnDesk:~ janderson$ google --help
Traceback (most recent call last):
  File "/Users/janderson/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.5', 'google')
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py", line 489, in run_script

  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py", line 1214, in run_script
    break
  File "/Users/janderson/bin/google", line 448, in <module>

  File "/Users/janderson/bin/google", line 426, in main

  File "/Users/janderson/bin/google", line 364, in setup_parser

  File "build/bdist.macosx-10.5-i386/egg/googlecl/picasa/service.py", line 25, in <module>
  File "build/bdist.macosx-10.5-i386/egg/googlecl/service.py", line 20, in <module>
ImportError: No module named gdata.service

Installing gdata myself resolves the issue.

iSitOnDesk:~ janderson$ easy_install gdata
Searching for gdata
Reading http://pypi.python.org/simple/gdata/
Reading http://code.google.com/p/gdata-python-client/
Best match: gdata 2.0.10
Downloading http://gdata-python-client.googlecode.com/files/gdata-2.0.10.zip
Processing gdata-2.0.10.zip
Running gdata-2.0.10/setup.py -q bdist_egg --dist-dir 
/var/folders/Yi/YiHUJvNUFwqvR0K-d2WKM++++TM/-Tmp-/easy_install-AuD5zt/gdata-2.0.
10/egg-dist-tmp-NNJnM8
zip_safe flag not set; analyzing archive contents...
Adding gdata 2.0.10 to easy-install.pth file

Installed 
/Users/janderson/Library/Python/2.5/site-packages/gdata-2.0.10-py2.5.egg
Processing dependencies for gdata
Finished processing dependencies for gdata
iSitOnDesk:~ janderson$ google --help
Usage: google [picasa|blogger|youtube|docs|contacts|calendar] TASK [options]

This program provides command-line access to (some) google services via their 
gdata APIs.
Called without a service name, it starts an interactive session.

[...]

Original issue reported on code.google.com by anderbub...@gmail.com on 19 Jun 2010 at 6:33

GoogleCodeExporter commented 9 years ago
I found this too on Ubuntu, It should be mentioned in the INSTALL info.

Original comment by spookypeanut on 19 Jun 2010 at 8:25

GoogleCodeExporter commented 9 years ago
Here's the fix.
I've also PEP8'd the setup.py file. If thats blasphemous, sorry. In addition 
you can now use `python setup.py develop` in a virtualenv to get set for 
working on the source.

Original comment by dcol...@gmail.com on 19 Jun 2010 at 6:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, dcolish. And no, the PEP8-ification is appreciated.

The next revision will include the attached patch. Also, if you want to weigh 
in on the merits of setuptools (since I'm not familiar with it), please post on 
this thread: 
http://groups.google.com/group/googlecl-discuss/browse_thread/thread/3f27471f60d
6baa5

Original comment by tom.h.mi...@gmail.com on 20 Jun 2010 at 7:37

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r261.

Original comment by tom.h.mi...@gmail.com on 20 Jun 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Issue 75 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 22 Jun 2010 at 5:01