Bug#604056: more info from my system

Jason Woofenden jason at jasonwoof.com
Sun Feb 13 09:21:32 UTC 2011


At last, I finally got around to poking around a little more.

$ for f in /usr/lib/pymodules/python2.6/misc/* ; do if [ -L $f ] ; then dpkg -S "`readlink "$f"`" ; fi ; done     
python-coherence: /usr/share/pyshared/misc/media_server_observer.py
python-coherence: /usr/share/pyshared/misc/upnp-tester.py

The app I had that needed python-coherence was not something I
used, so I removed it and python-coherence, and then pyracerz
ran just fine (though the cars did go slow enough that I wondered
if the game was running full speed.)

Also I played around with python and found that (in both python2.5
and python 2.6) these commands you sent:

>>> import misc
>>> misc.__file__
>>> import sys
>>> sys.path.append("/usr/share/games/pyracerz/modules")
>>> import misc
>>> misc.__file__
>>> sys.path.insert(0,"/usr/share/games/pyracerz/modules")
>>> import misc
>>> misc.__file__

and found that misc.__file__ only showed pyracerz if "import misc"
was not called until after the sys.path.insert()


With that knowledge in hand, I re-installed python-coherence (and
got the usual error when starting pyracerz.

Then I edited /usr/games/pyracerz, and replaced the
"sys.path.append(" at the top with "sys.path.insert(0, " and then
pyracerz ran again. Though it did print this as it started up:

/usr/share/games/pyracerz/modules/misc.py:26: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/dist-packages/pygame/pkgdata.py:26: UserWarning: Module misc was already imported from /usr/share/games/pyracerz/modules/misc.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
  from pkg_resources import resource_stream, resource_exists

Take care,   - Jason





More information about the Pkg-games-devel mailing list