# cd /usr/local/lib
]# ls
php _pokereval_2_4.a _pokereval_2_4.so _pokereval_2_4.so.1.0.0
pkgconfig _pokereval_2_4.la _pokereval_2_4.so.1 python2.4
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: dynamic module does not define init function (init_pokereval_2_4)
An improvement.. test.py now finds the module, however same issue as with
tryign to load the module via pydoc - init is not defined.
--- On Thu, 7/8/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: "Pokersource Users" <[email protected]>
Date: Thursday, July 8, 2010, 2:59 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
beeph cakes wrote:
>
> ]#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
>
[Could you please keep cc the mailing list ?]
Here is the list of files from the debian package:
l...@pokerdev:~$ dpkg -L python-pypoker-eval
/.
/usr
/usr/share
/usr/share/pyshared
/usr/share/pyshared/pokereval.py
/usr/share/pyshared/_pokereval_2_4.a
/usr/share/pyshared/_pokereval_2_5.a
/usr/share/pyshared-data
/usr/share/pyshared-data/python-pypoker-eval
/usr/share/doc
/usr/share/doc/python-pypoker-eval
/usr/share/doc/python-pypoker-eval/AUTHORS
/usr/share/doc/python-pypoker-eval/README
/usr/share/doc/python-pypoker-eval/changelog.Debian.gz
/usr/share/doc/python-pypoker-eval/copyright
/usr/share/doc/python-pypoker-eval/NEWS.gz
/usr/share/doc/python-pypoker-eval/changelog.gz
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/pypoker-eval.pc
/usr/lib/python2.4
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/_pokereval_2_4.so.1.0.0
/usr/lib/python2.5
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/_pokereval_2_5.so.1.0.0
/usr/lib/python2.4/site-packages/_pokereval_2_4.so.1
/usr/lib/python2.4/site-packages/_pokereval_2_4.so
/usr/lib/python2.5/site-packages/_pokereval_2_5.so.1
/usr/lib/python2.5/site-packages/_pokereval_2_5.so
If you create names that resemble these, it should work.
Cheers
>
>
>
> --- 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
>
> 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
iEYEARECAAYFAkw1oX8ACgkQ8dLMyEl6F20ZgQCgjPRli5+BLij5e8O+b9LztFgo
XkUAnRCekulgjTrYO1T/IodGl8pkSaCn
=de6M
-----END PGP SIGNATURE-----
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users