On Fri, 2010-02-26 at 23:10 -0600, Elmer Fittery wrote: > > > > > > After a quick look at examples/pokenum.c, I think that unknown hold > > cards is not an option supported by pokenum. > > I agree. > > > > > You could either rewrite a pypoker-eval version (which support "__") of > > pokenum and contribute it back to pypoker-eval as an example, > > I agree. > > > or look at > > pypokereval.c handling of the "__" arguments and contribute a patch to > > pokenum.c adding this option. > > > > The version I am using is pypoker-eval-137.0 > > There is a testing program named test.py > > On line 144 +/- a line or two, there is the code: > > if len(sys.argv) > 2: > > Which means, if there is more than two arguments passed, do the > following code. > > python code after this point executes the pokereval.poker_eval using > empty pocket cards. As an example: > > print "" > 153 print "f2 result = %s\n" % pokereval.poker_eval(game = > "holdem", fill_pockets = 1, iterations = iterations_low, pockets = > [ ["As", "3s"], ["__", "__"], ["__", "__"]], dead = [], board = ["__", > "__", "__", "__", "__"]) > > If I run "python test.py x y z" > > I get a crash of the code. Output follows: > > I know that the poker_eval_webservice handles empty pocket cards, so: > > 1. What version pypoker-eval should I use? now using pypoker-eval137.0 > 2. What version of poker-eval should I use? now using poker-eval-136.0. > 3. Do you have any other thoughts? > > maybe one of my .so libraries is the wrong version? > > python test.py x y z > > ======= Backtrace: ========= > /lib/libc.so.6[0x7fd54987fdd6] > /lib/libc.so.6(cfree+0x6c)[0x7fd54988474c] > .libs/_pokereval_2_6.so[0x7fd5495bf637] > python(PyEval_EvalFrameEx+0x4c89)[0x4a2299] > python(PyEval_EvalCodeEx+0x860)[0x4a40e0] > python(PyEval_EvalFrameEx+0x4e4f)[0x4a245f] > python(PyEval_EvalCodeEx+0x860)[0x4a40e0] > python(PyEval_EvalCode+0x32)[0x4a41b2] > python(PyRun_FileExFlags+0xb0)[0x4c33a0] > python(PyRun_SimpleFileExFlags+0xd4)[0x4c3564] > python(Py_Main+0x9f7)[0x418ab7] > /lib/libc.so.6(__libc_start_main+0xfd)[0x7fd549828abd] > python[0x417ca9]
When I run python test.py x y z, I've got no crash: http://pastebin.com/FCuGjEED Please note that I'm using latest SVN version of pypoker-eval. Which architecture are you using 32bit, 64bit ? Recently a bug get reported on 64 arch: https://gna.org/bugs/?func=detailitem&item_id=15273 Could you confirm it if still crash with latest svn version ? svn co http://svn.gna.org/svn/pokersource/trunk/pypoker-eval svn co http://svn.gna.org/svn/pokersource/trunk/poker-eval -- Johan Euphrosine <[email protected]> Development and services around Free Software http://www.aminche.com/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Pokersource-users mailing list [email protected] https://mail.gna.org/listinfo/pokersource-users
