pokermania / poker-network

fork of svn repo at http://gna.org/projects/pokersource. Do not use anymore, the repo has been split in several which can be found here https://github.com/pokermania
2 stars 2 forks source link

Poker-network install error (package has no field Python-Version) #2

Closed Usr-X closed 12 years ago

Usr-X commented 12 years ago

I get the following error after trying to install from the poker-network Debian package:

Setting up python-poker-network (2.2.0-4) ... Traceback (most recent call last): File "/usr/bin/pycentral", line 2372, in main() File "/usr/bin/pycentral", line 2366, in main rv = action.run(globaloptions) File "/usr/bin/pycentral", line 1509, in run pkg.read_version_info() File "/usr/bin/pycentral", line 909, in read_version_info raise PyCentralError, "package has no field Python-Version" _main.PyCentralError: package has no field Python-Version dpkg: error processing python-poker-network (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db ... Processing triggers for ureadahead ... Errors were encountered while processing: python-poker-network

tuco86 commented 12 years ago

andor fixed that.. pushed it right now

Usr-X commented 12 years ago

Getting close I think! I got a couple errors; first there does not seem to be a package python-poker-distutils.. When I overide with -d flag i get a different error. Output:

root@user-x:~/Downloads/pokermania-poker-network-be0a7ed/poker-network# dpkg-buildpackage -rfakeroot -uc -b dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package poker-network dpkg-buildpackage: source version 2.2.0-7 dpkg-buildpackage: source changed by Andor Goetzendorff andor@pokermania.de dpkg-buildpackage: host architecture amd64 dpkg-source --before-build poker-network dpkg-checkbuilddeps: Unmet build dependencies: python-poker-distutils dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage: warning: (Use -d flag to override.)

root@user-x:~/Downloads/pokermania-poker-network-be0a7ed/poker-network# dpkg-buildpackage -rfakeroot -uc -b -d dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package poker-network dpkg-buildpackage: source version 2.2.0-7 dpkg-buildpackage: source changed by Andor Goetzendorff andor@pokermania.de dpkg-buildpackage: host architecture amd64 dpkg-source --before-build poker-network fakeroot debian/rules clean /usr/bin/env python setup.py configure usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'configure' make: *\ [configure] Error 1 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

tuco86 commented 12 years ago

try this one: https://github.com/tuco86/poker-distutils :)

Usr-X commented 12 years ago

Thanks for the link to poker-distutils it built and installed with no issues. I get a different error now when trying to build the poker-network package:

running install_egg_info Writing /root/Downloads/pokermania-poker-network-daed517/poker-network/debian/tmp/usr/lib/python2.7/dist-packages/poker_network-2.2.0.egg-info dh_install -O--buildsystem=python_distutils dhinstall: python-poker-stats missing files (pokerstats/.xml), aborting make: _\ [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

tuco86 commented 12 years ago

pushed..

Usr-X commented 12 years ago

Great work! package builds but I get error for init_munin.

creating database pythonpokernetwork: success. verifying database pythonpokernetwork exists: success. populating database via sql... done. dbconfig-common: flushing administrative password /var/lib/dpkg/info/python-poker-network.postinst: 98: /var/lib/dpkg/info/python-poker-network.postinst: init_munin: not found dpkg: error processing python-poker-network (--install): subprocess installed post-installation script returned error exit status 127 Processing triggers for man-db ... Processing triggers for ureadahead ... Errors were encountered while processing: python-poker-network

tuco86 commented 12 years ago

yeah.. i messed with the postinst script.. because there is no munin anymore.. will fix in a second

tuco86 commented 12 years ago

fixed

Usr-X commented 12 years ago

Awesome! All packages including poker-network will build and install without errors. There does seem to be some inconsistencies between the creation of the poker-network database and the poker.server.xml configuration file. The poker-server.xml file references a different database than what the poker-network package actually installs. So the poker-server isn't seeing the database and isn't actually working yet. But for now I consider this issue closed. Great work by Tuco86 and Team!