]#env ... PYTHONPATH=/usr/local/lib:/usr/local/include cd /usr/local/lib ]# ls blah2 libpoker-eval.a libpoker-eval.so.1 pkgconfig blah3 libpoker-eval.la libpoker-eval.so.1.0.0 python2.4 blah.py libpoker-eval.so php
--- On Wed, 7/7/10, Loic Dachary <[email protected]> wrote: From: Loic Dachary <[email protected]> Subject: Re: [Pokersource-users] init not defined in libpoker-eval using pypokereval To: "beeph cakes" <[email protected]> Cc: [email protected] Date: Wednesday, July 7, 2010, 6:12 AM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 beeph cakes wrote: > it seemed to have compiled fine and installed in the right lib > directory however, when i run it > > python test.py Traceback (most recent call last): File "test.py", > line 31, in ? from pokereval import PokerEval File > "./pokereval.py", line 28, in ? _pokereval = > __import__('_pokereval_' + sys.version[0] + '_' + sys.version[2]) > ImportError: No module named _pokereval_2_4 so i went to check the > module with pydoc: > > pydoc module libpoker-eval no Python documentation found for > 'module' problem in libpoker-eval - ImportError: dynamic module > does not define init function (initlibpoker-eval) > > python is loading the module but can not import it (so it doesnt > seem to be a path issue) > > running python 2.4 on CentOS 5 > Maybe the module is installed in a directory that is not in the python path ? What is the full path name ? Cheers -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkw0fU4ACgkQ8dLMyEl6F21vbwCeJv9AY1eBXMRwEFeg/dqgi+qW BecAoL1EMtxPKRGNoyFL7Ul4LhFMjTVc =fY0n -----END PGP SIGNATURE-----
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
