Re: Python's making my head hurt...
Thanks for all of the feedback! I haven't gotten it ~quite~ fixed yet, but I am well on my way. It appears to be an issue with how the C components of the game server are interacting with the python modules that it's calling, and of course, the one specific for the game type I'm trying to run with this. With the information gotten from here, and a handful of respondents from python groups, I've been able to collect enough info to get the developers attention. Again, Thanks for your input!! -- ~ * ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Python's making my head hurt...
On Sat, Jan 05, 2008 at 03:00:27PM -0500, Star wrote: Okay, I'm not a python coder, nor do I really desire to be yet... I'm trying to run a system that uses Python pretty heavily, and while it's starting up, I'm getting an error just before it bombs... The error is ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape I expect that this means that if you open python on the box in question and do the following: $ python import cPickle You'll get the same error. If that's the case, something is broken on your system. Since the version of Python in Sid has been in testing since 2007-06-09, it seems likely to be esoteric. Are you sure that this hasn't been modified by something? $ debsums -c python2.4 Would tell you if it had... When did you last apt-get update/upgrade? sid can be anything in the past n years :) (Though if 'python' is python2.4 means it's post-sarge, at least.) Can any python-guys/gals point me somewhere where I might find some more information? Or perhaps help me with some ideas on writing a short test script that can help me duplicate/confirm that it's an error with the debian packaging? Trying to import cPickle should confirm/deny this. Checking that the package is up to date first is a good plan: dpkg --list python2.4 should show version 2.4.4-6 if you're up to date. (2.4.4-3 on etch.) Also, I'd highly recommend not using sid on a machine that you want to be stable -- it's called 'unstable' for a reason... Regards, -- Christopher Schmidt Web Developer signature.asc Description: Digital signature ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Python's making my head hurt...
Okay, I'm not a python coder, nor do I really desire to be yet... I'm trying to run a system that uses Python pretty heavily, and while it's starting up, I'm getting an error just before it bombs... The error is ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape I'm running this on Debian Sid, and the python version is 2.4.4 (as given by python -V) I've searched for days on google and altavista and all I can find is some guy who screwed up Yum *sigh* Can any python-guys/gals point me somewhere where I might find some more information? Or perhaps help me with some ideas on writing a short test script that can help me duplicate/confirm that it's an error with the debian packaging? As an aside: I have tried this with python versions 2.3 and 2.5 (also installed from debian packages) with the same results. The server that I'm playing with is a game server for SubSpace/Continuum called A Simple Subspace Server (http://asss.yi.org) Thanks very much for any advice!! -- ~ * ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Python's making my head hurt...
On Sat, 2008-01-05 at 15:00 -0500, Star wrote: The error is ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape ... Or perhaps help me with some ideas on writing a short test script that can help me duplicate/confirm that it's an error with the debian packaging? To reproduce an import error, I'd start with: python # start the python interpreter import cPickle cPickle.__file__ '/usr/lib/python2.5/lib-dynload/cPickle.so' The above is what I get on my Fedora 8 laptop. If the import works for you then debugging can get more complicated. -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://www.librarything.com/catalog/dlslug http://www.librarything.com/profile/dlslug http://www.librarything.com/rsshtml/recent/dlslug ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Python's making my head hurt...
Star wrote: Okay, I'm not a python coder, nor do I really desire to be yet... I'm trying to run a system that uses Python pretty heavily, and while it's starting up, I'm getting an error just before it bombs... The error is ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape Wild guess about something I know almost nothing about ;-) - cPickle.so was compiled for wide unicode (UCS4) but some other part of Python was not. Can any python-guys/gals point me somewhere where I might find some more information? comp.lang.python would be the place to ask. Kent ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
Re: Python's making my head hurt...
On Saturday, Jan 5th 2008 at 15:00 -, quoth Star: =Okay, I'm not a python coder, nor do I really desire to be yet... I'm =trying to run a system that uses Python pretty heavily, and while it's =starting up, I'm getting an error just before it bombs... = =The error is ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: =undefined symbol: PyUnicodeUCS4_DecodeRawUnicodeEscape You've already gotten some good advise, but I'd just like to throw in a couple more cents worth. (BTW, Canadian is worth more.) You may not have an import error. See the other messages that people have already sent you. But it's also possible that the unresolved symbol is coming from something that's *not* an so that smells like a module to python. * Module aa is maybe in python so there's an aa.py somewhere in the world. * Pete Python goes to speed it up by rewriting it in C which yields a file called aa.so * aa.so *might* depend on another .so that has nothing to do with python. Check by running ldd on cPickle.so and see if something can not be found. If that's the case then you either need to find the package that is missing or you need to add the directory that that missing .so is in, add it to /etc/ld.so.conf, and rerun ldconfig. This might sound obscure to some but I just ran into this scenario this week. :-) -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/