Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60091 - kiki NameError: name 'types' is not defined segmentation fault
Summary: kiki NameError: name 'types' is not defined segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-11 14:31 UTC by Kristian Benoit
Modified: 2004-08-30 13:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the file world.py did not import types which is needed in the file, so it add it. (kiki.patch,321 bytes, patch)
2004-08-11 14:37 UTC, Kristian Benoit
Details | Diff
kiki-0.9.0.ebuild (kiki-0.9.0.ebuild,1.87 KB, text/plain)
2004-08-19 22:32 UTC, Rob Cakebread (RETIRED)
Details
Fix linking (gentoo-makefile.patch,486 bytes, patch)
2004-08-28 07:28 UTC, Bryan Østergaard (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Benoit 2004-08-11 14:31:43 UTC
After emerging kiki I could not play, starting a new game did a segfault with this error:
 File "/usr/share/games/kiki//py/world.py", line 137, in create
    if type (world_dict) == types.StringType:
NameError: name 'types' is not defined
[ERROR] KikiPyAction::perform failed "kikipy action"
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
free(): invalid pointer 0x84fd1e0!


Reproducible: Always
Steps to Reproduce:
1. Emerge kiki
2. Try a new game.
Comment 1 Kristian Benoit 2004-08-11 14:37:16 UTC
Created attachment 37247 [details, diff]
the file world.py did not import types which is needed in the file, so it add it.

I dont know a lot about python, but it seems to be related to a newer version
of python which need to import types to use types.StringType as opposed to old
versions.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-08-18 03:37:38 UTC
kiki needs python 2.2 in order to work correctly.  Is that what version of python you're using?
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-08-19 17:21:32 UTC
Any of the python group feel like taking a shot at making kiki work with python 2.3?
Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2004-08-19 22:32:08 UTC
Created attachment 37783 [details]
kiki-0.9.0.ebuild

This ebuild will make it compile with 2.3. It says in the Readme it will work
with Python 2.3*, but I don't have a 3D card in my machine to test it on at the
moment.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-08-20 00:15:08 UTC
Here's the traceback I get using that ebuild:

Traceback (most recent call last):
  File "/usr/share/games/kiki//py/env.py", line 70, in ?
    execfile(kikipy_path + "world.py")
  File "/usr/share/games/kiki//py/world.py", line 4, in ?
    import random
  File "/usr/lib/python2.3/random.py", line 62, in ?
    import _random
ImportError: /usr/lib/python2.3/lib-dynload/_random.so: undefined symbol: PyMem_Malloc
Comment 6 Bryan Østergaard (RETIRED) gentoo-dev 2004-08-28 07:28:25 UTC
Created attachment 38391 [details, diff]
Fix linking

Rob Cakebreads ebuild just needs Kristian Benoits import fix + this little fix
to make it link against the correct library to work with python-2.3. I haven't
tested it against python-2.2 but the game works fine using 2.3 now.

Adjusting the ebuild to include this patch is left as an exercise to the reader
:)
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-08-30 13:52:03 UTC
Huge thanks to the python guys. kiki-0.9.0-r1.ebuild should be more fun with newer python.