Export to GitHub

cogen - issue #9

Missing reactors in built egg


Posted on Dec 11, 2008 by Happy Wombat

What steps will reproduce the problem? 1. easy_install cogen (or build and install from source)

root@wolfwood:~/cogen-0.1.9/tests# python Python 2.5 (release25-maint, Dec 9 2006, 15:33:01) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from cogen.common import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "init.py", line 91, in <module>

File "init.py", line 67, in <module>

File "/usr/lib/python2.5/site-packages/cogen-0.1.9-py2.5.egg/cogen/core/schedulers.py", line 27, in <module> ImportError: No module named reactors

What is the expected output? What do you see instead? A successful import is expected. Instead a traceback for the missing reactors. The reactors are in the source, but don't get installed into the egg.

What version of the product are you using? On what operating system? 0.1.9. Debina Linux, AMD64 distro

Please provide any additional information below.

Comment #1

Posted on Dec 11, 2008 by Happy Dog

Yeah there was a mistake when the egg was built (the reactors module wasn't included). I removed the broken egg from the pypi page and easy_install should use the source package now.

Try again easy_install

Comment #2

Posted on Dec 11, 2008 by Happy Wombat

Nope. still the same. Note that building from source exhibits the same problem.

cwellington@wolfwood:~$ sudo easy_install cogen Searching for cogen Reading http://pypi.python.org/simple/cogen/ Reading http://code.google.com/p/cogen/ Best match: cogen 0.1.9 Downloading http://cogen.googlecode.com/files/cogen-0.1.9.zip Processing cogen-0.1.9.zip Running cogen-0.1.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iSXadB/cogen-0.1.9/egg-dist-tmp-q83NcV Adding cogen 0.1.9 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/cogen-0.1.9-py2.5.egg Processing dependencies for cogen Finished processing dependencies for cogen cwellington@wolfwood:~$ python Python 2.5 (release25-maint, Dec 9 2006, 15:33:01) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import cogen Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/PIL/init.py", line 91, in

File "/usr/lib/python2.5/site-packages/PIL/init.py", line 67, in

File "build/bdist.linux-x86_64/egg/cogen/core/schedulers.py", line 27, in ImportError: No module named reactors

>

Comment #3

Posted on Dec 11, 2008 by Happy Wombat

Example showing source build failure:

cwellington@wolfwood:~$ cd cogen-0.1.9 cwellington@wolfwood:~/cogen-0.1.9$ python setup.py build running build running build_py creating build creating build/lib creating build/lib/cogen copying cogen/common.py -> build/lib/cogen copying cogen/init.py -> build/lib/cogen creating build/lib/cogen/core copying cogen/core/pubsub.py -> build/lib/cogen/core copying cogen/core/queue.py -> build/lib/cogen/core copying cogen/core/schedulers.py -> build/lib/cogen/core copying cogen/core/coroutines.py -> build/lib/cogen/core copying cogen/core/init.py -> build/lib/cogen/core copying cogen/core/events.py -> build/lib/cogen/core copying cogen/core/util.py -> build/lib/cogen/core copying cogen/core/sockets.py -> build/lib/cogen/core creating build/lib/cogen/web copying cogen/web/wsgi.py -> build/lib/cogen/web copying cogen/web/async.py -> build/lib/cogen/web copying cogen/web/init.py -> build/lib/cogen/web cwellington@wolfwood:~/cogen-0.1.9$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements to cogen.egg-info/requires.txt writing cogen.egg-info/PKG-INFO writing top-level names to cogen.egg-info/top_level.txt writing dependency_links to cogen.egg-info/dependency_links.txt writing entry points to cogen.egg-info/entry_points.txt reading manifest file 'cogen.egg-info/SOURCES.txt' writing manifest file 'cogen.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/cogen creating build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/pubsub.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/queue.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/schedulers.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/coroutines.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/init.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/events.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/util.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/core/sockets.py -> build/bdist.linux-x86_64/egg/cogen/core copying build/lib/cogen/common.py -> build/bdist.linux-x86_64/egg/cogen copying build/lib/cogen/init.py -> build/bdist.linux-x86_64/egg/cogen creating build/bdist.linux-x86_64/egg/cogen/web copying build/lib/cogen/web/wsgi.py -> build/bdist.linux-x86_64/egg/cogen/web copying build/lib/cogen/web/async.py -> build/bdist.linux-x86_64/egg/cogen/web copying build/lib/cogen/web/init.py -> build/bdist.linux-x86_64/egg/cogen/web byte-compiling build/bdist.linux-x86_64/egg/cogen/core/pubsub.py to pubsub.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/queue.py to queue.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/schedulers.py to schedulers.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/coroutines.py to coroutines.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/events.py to events.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/util.py to util.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/core/sockets.py to sockets.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/common.py to common.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/web/wsgi.py to wsgi.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/web/async.py to async.pyc byte-compiling build/bdist.linux-x86_64/egg/cogen/web/init.py to init.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying cogen.egg-info/zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO creating dist creating 'dist/cogen-0.1.9-py2.5.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing cogen-0.1.9-py2.5.egg Copying cogen-0.1.9-py2.5.egg to /usr/lib/python2.5/site-packages Adding cogen 0.1.9 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/cogen-0.1.9-py2.5.egg Processing dependencies for cogen==0.1.9 Searching for py-sendfile==1.2.3 Best match: py-sendfile 1.2.3 Processing py_sendfile-1.2.3-py2.5-linux-x86_64.egg py-sendfile 1.2.3 is already the active version in easy-install.pth

Using /usr/lib/python2.5/site-packages/py_sendfile-1.2.3-py2.5-linux-x86_64.egg Searching for py-epoll==1.2.1 Best match: py-epoll 1.2.1 Processing py_epoll-1.2.1-py2.5-linux-x86_64.egg py-epoll 1.2.1 is already the active version in easy-install.pth

Using /usr/lib/python2.5/site-packages/py_epoll-1.2.1-py2.5-linux-x86_64.egg Finished processing dependencies for cogen==0.1.9 cwellington@wolfwood:~/cogen-0.1.9$ python Python 2.5 (release25-maint, Dec 9 2006, 15:33:01) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import cogen

cwellington@wolfwood:~/cogen-0.1.9$ cd .. cwellington@wolfwood:~$ python Python 2.5 (release25-maint, Dec 9 2006, 15:33:01) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import cogen Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/site-packages/PIL/init.py", line 91, in

File "/usr/lib/python2.5/site-packages/PIL/init.py", line 67, in

File "build/bdist.linux-x86_64/egg/cogen/core/schedulers.py", line 27, in ImportError: No module named reactors

Comment #4

Posted on Dec 11, 2008 by Happy Dog

(No comment was entered for this change.)

Comment #5

Posted on Dec 11, 2008 by Happy Dog

Added a new rls ( http://pypi.python.org/pypi/cogen/0.1.9.1 ) with proper packages in setup.py

Status: Fixed

Labels:
Type-Defect Priority-Medium