[restfulie-py] github repo and pypi release

26 views
Skip to first unread message

Douglas Camata

unread,
Apr 11, 2011, 6:31:52 PM4/11/11
to Restuflie Dev
Hello folks, did you noticed that our github repo and pypi release have a very basic and ugly bug? If you install restfulie-py in a clean environment and just try to import it, you'll get a error like this: 

ImportError: No module named resources.xml

Please pay attention and check every detail when pushing to the repo or releasing to PyPi. I'm gonna try to fix this now.

Regards,

--
Douglas Camata
Graduando em Ciência da Computação (UENF)

Skype: douglas_camata
-----------------------------------
Linux User #509211

Pedro Matiello

unread,
Apr 11, 2011, 7:31:55 PM4/11/11
to restfu...@googlegroups.com
How can I reproduce it? I installed it in a virtualenv and it seems fine.

[pedro@pmatiello-notebook Desktop]$ virtualenv teste
New python executable in teste/bin/python
Installing setuptools............done.
[pedro@pmatiello-notebook Desktop]$ teste/bin/easy_install restfulie
Searching for restfulie
Reading http://pypi.python.org/simple/restfulie/
Reading http://restfulie.caelumobjects.com/
Reading https://github.com/caelum/restfulie-py
Best match: restfulie 0.9.0
Downloading http://pypi.python.org/packages/source/r/restfulie/restfulie-0.9.0.tar.gz#md5=ca053fab29b79190dbdb718dd6500cf0
Processing restfulie-0.9.0.tar.gz
Running restfulie-0.9.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-NIREGZ/restfulie-0.9.0/egg-dist-tmp-QqO1Yr
zip_safe flag not set; analyzing archive contents...
Adding restfulie 0.9.0 to easy-install.pth file

Installed /home/pedro/Desktop/teste/lib/python2.6/site-packages/restfulie-0.9.0-py2.6.egg
Processing dependencies for restfulie
Searching for httplib2>=0.6.0
Reading http://pypi.python.org/simple/httplib2/
Reading http://code.google.com/p/httplib2/
Reading http://bitworking.org/projects/httplib2/
Best match: httplib2 0.6.0
Downloading http://httplib2.googlecode.com/files/httplib2-0.6.0.zip
Processing httplib2-0.6.0.zip
Running httplib2-0.6.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ql93Sw/httplib2-0.6.0/egg-dist-tmp-a_eUjB
zip_safe flag not set; analyzing archive contents...
Adding httplib2 0.6.0 to easy-install.pth file

Installed /home/pedro/Desktop/teste/lib/python2.6/site-packages/httplib2-0.6.0-py2.6.egg
Finished processing dependencies for restfulie
[pedro@pmatiello-notebook Desktop]$ teste/bin/python
Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import restfulie
>>> restfulie.Restfulie.at("http://caelum.com.br/").get()
<restfulie.response.Response object at 0x1744310>

Douglas Camata

unread,
Apr 11, 2011, 7:39:33 PM4/11/11
to restfu...@googlegroups.com
LOL, It's working at my personal machine now.

But look at this:

(restfulie)douglascamata ~/nsi/aos/restfulie-py (master) $ python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to restfulie.egg-info/requires.txt
writing restfulie.egg-info/PKG-INFO
writing top-level names to restfulie.egg-info/top_level.txt
writing dependency_links to restfulie.egg-info/dependency_links.txt
reading manifest file 'restfulie.egg-info/SOURCES.txt'
writing manifest file 'restfulie.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-universal/egg
running install_lib
running build_py
copying restfulie/__init__.py -> build/lib/restfulie
creating build/bdist.macosx-10.6-universal/egg
creating build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/__init__.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/converters.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/dsl.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/links.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/opensearch.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/parser.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/processor.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/request.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/response.py -> build/bdist.macosx-10.6-universal/egg/restfulie
copying build/lib/restfulie/restfulie.py -> build/bdist.macosx-10.6-universal/egg/restfulie
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/converters.py to converters.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/dsl.py to dsl.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/links.py to links.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/opensearch.py to opensearch.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/parser.py to parser.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/processor.py to processor.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/request.py to request.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/response.py to response.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/restfulie/restfulie.py to restfulie.pyc
creating build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying restfulie.egg-info/PKG-INFO -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying restfulie.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying restfulie.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying restfulie.egg-info/requires.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying restfulie.egg-info/top_level.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/restfulie-0.9.0-py2.6.egg' and adding 'build/bdist.macosx-10.6-universal/egg' to it
removing 'build/bdist.macosx-10.6-universal/egg' (and everything under it)
Processing restfulie-0.9.0-py2.6.egg
Removing /Users/douglascamata/.python_envs/restfulie/lib/python2.6/site-packages/restfulie-0.9.0-py2.6.egg
Copying restfulie-0.9.0-py2.6.egg to /Users/douglascamata/.python_envs/restfulie/lib/python2.6/site-packages
restfulie 0.9.0 is already the active version in easy-install.pth

Installed /Users/douglascamata/.python_envs/restfulie/lib/python2.6/site-packages/restfulie-0.9.0-py2.6.egg
Processing dependencies for restfulie==0.9.0
Searching for httplib2==0.6.0
Best match: httplib2 0.6.0
Processing httplib2-0.6.0-py2.6.egg
httplib2 0.6.0 is already the active version in easy-install.pth

Using /Users/douglascamata/.python_envs/restfulie/lib/python2.6/site-packages/httplib2-0.6.0-py2.6.egg
Finished processing dependencies for restfulie==0.9.0
(restfulie)douglascamata ~/nsi/aos/restfulie-py (master) $ cd ..
(restfulie)douglascamata ~/nsi/aos $ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import restfulie
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/__init__.py", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/restfulie.py", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/dsl.py", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/processor.py", line 3, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/response.py", line 1, in <module>
  File "build/bdist.macosx-10.6-universal/egg/restfulie/converters.py", line 5, in <module>
ImportError: No module named resources.xml

This error happened 5 mins ago. And it was the same at my work machine (using virtualenv).

2011/4/11 Pedro Matiello <pmat...@gmail.com>

Douglas Camata

unread,
Apr 11, 2011, 7:42:50 PM4/11/11
to restfu...@googlegroups.com
Just to leave no doubts, I pulled the repository before installing.

2011/4/11 Douglas Camata <d.ca...@gmail.com>

Douglas Camata

unread,
Apr 12, 2011, 12:02:47 AM4/12/11
to restfu...@googlegroups.com
Worked in the Mac OS X but not in Ubuntu.

2011/4/11 Douglas Camata <d.ca...@gmail.com>

Douglas Camata

unread,
Apr 12, 2011, 12:09:06 AM4/12/11
to restfu...@googlegroups.com
Interesting... when I install it in develop mode, it works fine. When I install normally, it doesn't.

2011/4/12 Douglas Camata <d.ca...@gmail.com>

Douglas Camata

unread,
Apr 12, 2011, 12:33:08 AM4/12/11
to restfu...@googlegroups.com
Another detail: using virtualenv without no site packages.

2011/4/12 Douglas Camata <d.ca...@gmail.com>

Guilherme Silveira

unread,
Apr 12, 2011, 5:35:52 AM4/12/11
to restfu...@googlegroups.com

It would be good to have an. Sh thateasily allows reproduction later!

On 12/04/2011 1:09 PM, "Douglas Camata" <d.ca...@gmail.com> wrote:

Interesting... when I install it in develop mode, it works fine. When I install normally, it doesn't.



2011/4/12 Douglas Camata <d.ca...@gmail.com>
>
> Worked in the Mac OS X but not in Ubuntu.
>
>

> ...

Douglas Camata

unread,
Apr 12, 2011, 11:44:34 AM4/12/11
to restfu...@googlegroups.com
I updated both virtualenv and virtualenvwrapper and it looks like everything's working fine now. Tried on a virtualenv with and without --no-site-packages.


2011/4/12 Guilherme Silveira <guilherme...@caelum.com.br>
Reply all
Reply to author
Forward
0 new messages