catwalk problem in recent 0.9 versions (a2-a4, SVN 1160)

0 views
Skip to first unread message

Mike Sarahan

unread,
Apr 19, 2006, 3:51:51 PM4/19/06
to TurboGears
Hello all,

I recently upgraded to 0.9a4, and was sad to see catwalk kick the
bucket on my installation. It won't load, and posts the following
output (at end of message). Getting SVN didn't fix it. I am
admittedly not very good at bug hunts.

This has been mentioned here:
http://groups.google.com/group/turbogears/browse_thread/thread/9d291a2bf5e178ce/6a865b4c980b532f?lnk=raot#6a865b4c980b532f

But it wasn't related to the other thread it was posted in, and I
didn't want it to get passed over.

Any ideas? Catwalk is an amazingly helpful tool, thanks for all the
great work on it, Ronald.

-Mike

File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 1123, in index
return dict(models=self.models())
File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 1106, in models
return self.order_models(objs)
File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 763, in order_models
ordered = self.load_models_order()
File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 759, in load_models_order
state = self.load_state()
File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 619, in load_state
if not os.path.exists(self.state_path()): return {}
File
"/home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/__init__
.py", line 607, in state_path
catwalk_session_dir =
os.path.join(turbogears.util.get_package_name(),'catwa
lk-session')
File "/home/mikez0r/lib/lib/python2.4/posixpath.py", line 62, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Ronald Jaramillo

unread,
Apr 19, 2006, 6:34:36 PM4/19/06
to turbo...@googlegroups.com
Hi Mike,
Nothing like flattery to get me out of the bush =)
Can you please add the following line before the offending line 607
on turbogears/toolbox/catwalk/__init__.py?:

print turbogears.util.get_package_name()

And tell me what the yielded path is? It seams that os.path.join
doesn't like what it gets.
Cheers
Ronald

________________________________
Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog

Mike Sarahan

unread,
Apr 19, 2006, 7:29:24 PM4/19/06
to TurboGears
Ronald,

I put the line in, but how should I get output from it? I tried to
access the site, but I just get the 500 message and the dump above. my
server log also just has the traceback.

running python __init__.py also didn't give me any output.

Thanks for the help!
-Mike

Mike Sarahan

unread,
Apr 20, 2006, 2:01:30 PM4/20/06
to TurboGears
I forgot to mention something that's very important. This is a
non-standard setup. It's running on a shared system, Dreamhost (they
run Debian Linux on their servers). I have my own little python
install inside my home folder, and Turbogears lives there, not
/lib/python or whatever.

I hope this helps.

Mike

Mike Sarahan

unread,
Apr 21, 2006, 10:37:31 AM4/21/06
to TurboGears
It's definitely a problem with the shared system. Catwalk works just
fine on a similar install, minus the custom python install and FCGI
garbage necessary for functionality with Dreamhost.

Reply all
Reply to author
Forward
0 new messages