New error with Python/Pylons

New error with Python/Pylons

Posted by: dave_e
Posted on: 2008-05-12 13:31:00

I've had a couple of Pylons/Python web apps running for a while now. They seem to have both failed suddenly last week.
No clear error in the error logs, but when I try and import the fcgi script in python I get this error message:

File "dispatch.fcgi", line 4, in ?
from fcgi import WSGIServer
File "/home/dave_e/lib/python2.4/site-packages/fcgi.py", line 68, in ?
import dummy_threading as threading
File "/home/dave_e/lib/python2.4/dummy_threading.py", line 50, in ?
import threading
File "/home/dave_e/lib/python2.4/threading.py", line 13, in ?
from collections import deque
ImportError: /home/dave_e/lib/python2.4/lib-dynload/collections.so: undefined symbol: _PyArg_NoKeywords

It seems like this is some change of the server setup, has anyone else experienced this?

Thanks,
Dave

Dave

Re: New error with Python/Pylons

Posted by: JoeTennies
Posted on: 2008-05-12 22:03:00

I noticed this too for my version of bzr I use to manage my site.

I could get around it by LD_PRELOADing libpython.

Ex: LD_PRELOAD=/usr/lib/libpython2.4.so.1.0 bzr update

From what I read it sounds like it may have changed the Unicode compile setting (I hope this is fixed in Python 3.0)

Re: New error with Python/Pylons

Posted by: dave_e
Posted on: 2008-05-13 04:51:00

Hmm, I've had some success with that I can run a test HelloWorld fcgi script like this:

LD_PRELOAD=/usr/lib/libpython2.4.so.1.0 hello.fcgi

but that won't work for running the web app. I don't understand how Dreamhost could have changed something that effects my virtual python installation?

Is this something that they should fix? Or I should have to work around?

Thanks for the reply.

Dave

Re: New error with Python/Pylons

Posted by: kzinti
Posted on: 2008-05-20 11:44:00

I am getting the same thing with my web site.

Is there a workaround / update on this issue?

Re: New error with Python/Pylons

Posted by: kzinti
Posted on: 2008-05-20 18:42:00

I issued a ticket to support and got the following back:

Tags: python weberror logsmessage fileundefined symbolserver setupweb appsdummyerror messagelibcollections