Problem with CP 2.1.1 egg

1 view
Skip to first unread message

Luiz Carlos Geron

unread,
Jan 11, 2006, 5:57:39 PM1/11/06
to cherryp...@googlegroups.com
Hi All,
I was developing my app on Linux with CP 2.1.0 until now (in wich it
runs perfectly), but today I needed to use Windows for a while. So I
did easy_install cherrypy, wich got the 2.1.1 egg. I haven't even
modified any files in my app, I was simply installing the
dependencies, but when I got all the dependencies and tried to run it,
the autoreloader doesn't stopped to reload the server so I forced it
to exit. This is what is outputted every time it reloads the server:

2006/01/11 17:37:28 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/11 17:37:28 HTTP INFO CherryPy shut down
Unhandled exception in thread started by <bound method Server._start of <cherryp
y._cpserver.Server object at 0x009E1730>>
Traceback (most recent call last):
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\_cpserve
r.py", line 115, in _start
if cherrypy.config.get("server.logConfigOptions", True):
AttributeError: 'NoneType' object has no attribute 'config'

And this is what was outputted when I hit Ctrl+C:

2006/01/11 17:37:32 HTTP INFO SystemExit raised: shutting down autoreloader
2006/01/11 17:37:32 HTTP INFO CherryPy shut down
Unhandled exception in thread started by <bound method Server._start of <cherryp
y._cpserver.Server object at 0x009E1730>>
Traceback (most recent call last):
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\_cpserve
r.py", line 115, in _start
if cherrypy.config.get("server.logConfigOptions", True):
AttributeError: 'NoneType' object has no attribute 'config'
Traceback (most recent call last):
File "call.py", line 3, in ?
import cherrypy
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\__init__
.py", line 40, in ?
import config
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\config.p
y", line 36, in ?
from cherrypy import _cputil, _cperror
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\_cputil.
py", line 240, in ?
from cherrypy.lib.filter import baseurlfilter, cachefilter, \
File "c:\python24\lib\site-packages\cherrypy-2.1.1-py2.4.egg\cherrypy\lib\filt
er\sessionfilter.py", line 56, in ?
import pickle
File "C:\Python24\lib\pickle.py", line 25, in ?
"""
KeyboardInterrupt
2006/01/11 17:37:33 HTTP INFO <Ctrl-C> hit: shutting down autoreloader
2006/01/11 17:37:33 HTTP INFO CherryPy shut down

Are there any other modifications in CP 2.1.1 that breaks my app?
BTW, Is there a changelog in cherrypy.org, so I can see it without
downloading the tar.gz?

If some file of my app will be useful to understand this problem, let
me know so I post it here.

Cheers,
Luiz Carlos Geron

jabber: luiz...@jabber.org

Istvan Albert

unread,
Jan 12, 2006, 9:23:32 AM1/12/06
to cherrypy-users

I've been getting this same error when one of the modules imported into
the CherryPy application was imported from an egg. Unpack all the eggs
and see if it stops the autoreload.

Luiz Carlos Geron

unread,
Jan 12, 2006, 2:06:06 PM1/12/06
to cherryp...@googlegroups.com
You're right, I uninstalled the egg version of cherrypy and now my app
works until a class that import kid (wich was installed via egg) is
instancied.But now there is a problem: I can't install kid by other
way than egg. If I download the tar instead of doing easy_install, it
calls itself autotools, wich installs the egg!
I'm a sort of newbie in terms of egg's. Im my site-packages directory
there a directory called "kid-0.8-py2.4.egg", wich contains various
python scripts. I tried to copy the "kid" directory that is inside of
it to a top level, and it still does the same problem.

Istvan Albert

unread,
Jan 13, 2006, 9:08:27 AM1/13/06
to cherrypy-users
An egg is just a zip file. Unzip it and have the files/directories that
are extracted in the python path ( also move the original egg file
somewhere else since it might get imported before the rest)

Istvan.

Luiz Carlos Geron

unread,
Jan 13, 2006, 11:07:06 AM1/13/06
to cherryp...@googlegroups.com
I know this. I was wondering that the packages installed by
easy_install weren't in a egg file, but in a directory like I said. I
moved the kid directory from the "..egg" directory and now it works.
But I guess this is a CherryPy bug that must be fixed, because if I
have some customers that have python packages installed via
easy_install so it would be bad to tell them to uninstall that
packages and install everything manually.

tweekgeek

unread,
Jan 14, 2006, 8:16:43 AM1/14/06
to cherrypy-users
Turbogears fixed this problem... I'd send the link to the source for
the fix if I could remember it... For those of us who don't use
turbogears, I put up a temporary fix on my blog:

http://kassemi.blogspot.com/2006/01/cherrypy-infinite-autoreload-after-kid.html

It's been working great for me, but I make no guarantees. If I thought
it was a permanent fix I would have submitted a patch. The CP
developers will offer a more professional fix, I'm sure.

_________________

James Kassemi
http://kassemi.blogspot.com

Robert Brewer

unread,
Feb 8, 2006, 3:16:33 AM2/8/06
to cherryp...@googlegroups.com
tweekgeek wrote:
> http://kassemi.blogspot.com/2006/01/cherrypy-infinite-autoreload-after-kid.html

You don't have to offer a patch, but a ticket would be great!
http://www.cherrypy.org/newticket


Bob

winmail.dat
Reply all
Reply to author
Forward
0 new messages