I'm running FPDB on FreeBSD 8.0-Current
Seems to start up just fine. Ports/packages dependencies are:
* lang/python
* math/py-numpy
* math/py-matplotlib
* math/py-numeric
* games/py-poker-eval
* x11-toolkits/py-xlib
* databases/py-MySQLdb
FreeBSD puts python in /usr/local/bin so...
the first line in fpdb.py needs to be changed from
to
Code:
#!/usr/local/bin/python
For some reason locale.getdefaultlocale() is returning (in python):
I replaced
Code:
LOCALE.ENCODING = locale.getdefaultlocale()[1]
with
Code:
LOCALE.ENCODING = "ascii"
I stopped getting errors about the LOCALE.ENCODING after this, but I haven't managed to get either the bulk importer or the auto-import to function (let alone the HUD). Here's what I'm getting:
Code:
%./fpdb.py -x
Python 2.6...
/usr/local/lib/python2.6/site-packages/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
Reading configuration file /usr/home/dillodog/fpdb/pyfpdb/HUD_config.xml
Loading site PokerStars
Loading site Full Tilt Poker
Loading site Everleaf
Loading site Win2day
Loading site Absolute
Loading site PartyPoker
Loading site Betfair
fpdb starting ...Full Tilt Poker
Everleaf
Partouche
Betfair
PartyPoker
PokerStars
Win2day
Absolute
Global lock taken ...
Traceback (most recent call last):
File "/usr/home/dillodog/fpdb/pyfpdb/GuiBulkImport.py", line 96, in load_clicked
(stored, dups, partial, errs, ttime) = self.importer.runImport()
File "/usr/home/dillodog/fpdb/pyfpdb/fpdb_import.py", line 228, in runImport
(totstored, totdups, totpartial, toterrors) = self.importFiles(self.database, None)
File "/usr/home/dillodog/fpdb/pyfpdb/fpdb_import.py", line 284, in importFiles
,self.filelist[file][0], self.filelist[file][1], q)
File "/usr/home/dillodog/fpdb/pyfpdb/fpdb_import.py", line 432, in import_file_dict
hhc = obj(in_path = file, out_path = out_path, index = 0, starsArchive = self.settings['starsArchive']) # Index into file 0 until changeover
File "/usr/home/dillodog/fpdb/pyfpdb/HandHistoryConverter.py", line 115, in __init__
self.start()
File "/usr/home/dillodog/fpdb/pyfpdb/HandHistoryConverter.py", line 164, in start
self.processedHands.append(self.processHand(handText))
File "/usr/home/dillodog/fpdb/pyfpdb/HandHistoryConverter.py", line 286, in processHand
hand = Hand.HoldemOmahaHand(self, self.sitename, gametype, handText)
File "/usr/home/dillodog/fpdb/pyfpdb/Hand.py", line 616, in __init__
hhc.compilePlayerRegexs(self)
File "/usr/home/dillodog/fpdb/pyfpdb/PokerStarsToFpdb.py", line 94, in compilePlayerRegexs
subst = {'PLYR': player_re, 'CUR': self.sym[hand.gametype['currency']]}
KeyError: 'play'
Quitting normally
When I run auto-import, it acts as though it is importing but never seems to get anywhere. It recognizes my HandHistory directory (/usr/home/dillodog/.wine/drive_c/Program Files/PokerStars/HandHistory/xxxxxx). Here's the output:
Code:
%./fpdb.py -x
Python 2.6...
/usr/local/lib/python2.6/site-packages/MySQLdb/__init__.py:34: Deprecatig: the sets module is deprecated
from sets import ImmutableSet
Reading configuration file /usr/home/dillodog/fpdb/pyfpdb/HUD_config.xml
Loading site PokerStars
Loading site Full Tilt Poker
Loading site Everleaf
Loading site Win2day
Loading site Absolute
Loading site PartyPoker
Loading site Betfair
fpdb starting ...HUD_main starting
Using db name = fpdb
Reading configuration file /usr/home/dillodog/fpdb/pyfpdb/HUD_config.xml
Loading site PokerStars
Loading site Full Tilt Poker
Loading site Everleaf
Loading site Win2day
Loading site Absolute
Loading site PartyPoker
Loading site Betfair
/usr/local/lib/python2.6/site-packages/MySQLdb/__init__.py:34: Deprecatig: the sets module is deprecated
from sets import ImmutableSet
I'm concerned about it saying that it's using db name = fpdb when I have it configured to use a different db name in HUD_config.xml (remote mysql server). I checked the db in phpMyAdmin and there were no entries for players or hands. The HUD Main window pops up but just says that closing the window will exit from the HUD.
Suggestions or solutions?