On Tue, November 20, 2007 10:55, Mogens Melander wrote: > > On Tue, November 20, 2007 02:07, Loic Dachary wrote: >> "Mogens Melander" <[EMAIL PROTECTED]> writes: >> >>> When executed : >>> >>> # python test.py >>> server version: 5.1.22-rc-log >>> >>> So far, so good. Any hints to where i can continue my search ? >> >> The test that fails is even simpler. >> >> python_script=" >> import imp >> import sys >> >> path = list() >> modules = sys.argv.pop(1) >> for module in modules.split('.'): >> (file, pathname, info) = imp.find_module(module, sys.path + path) >> sys.stdout.write(pathname + ' ') >> path = list(( pathname, )) >> " >> >> python -c "$pyton_script" MySQLdb >> >> Does this fail when run in a shell ? > > Yes, i tried this during my search yesterday: > > # python test-2.py MySQLdb > Traceback (most recent call last): > File "test-2.py", line 7, in <module> > (file, pathname, info) = imp.find_module(module, sys.path + path) > ImportError: No module named MySQLdb > > Still no joy. Same code do find SOAPpy, twisted and fpconst. > > # python test-2.py SOAPpy > /usr/local/poker/lib/python2.5/site-packages/SOAPpy >
Ok, today i got a few steps further. I found OpenSSL at: http://heanet.dl.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-0.6.tar.gz It installed without hick-up's. Using the following command, i got poker-network's configure to find MySQLdb: # easy_install --prefix=/usr/local/poker \ --record=files.txt \ --always-unzip \ ~/local/poker/packages-dependencies/MySQL-python-1.2.2.tar.gz Now, in poker-network, running make, i get some wierd errors: # echo $PYTHONPATH /usr/local/poker/lib/python2.5/site-packages To me it look like make somehow clear PYTHONPATH # make .. blabla .. blabla export PYTHONPATH=..:/usr/local/poker/lib/python2.5/site-packages ; \ /usr/local/poker/sbin/pokerconfigupgrade \ --verbose=1 \ --module=pokernetwork.pokernetworkconfig \ --upgrades=./upgrades \ ./poker2d.xml.in .. blabla .. blabla export PYTHONPATH=. ; \ for file in bot client server ; do \ /usr/local/poker/sbin/pokerconfigupgrade \ --verbose=1 \ --module=pokernetwork.pokernetworkconfig \ --upgrades=./upgrades/poker.$file \ ./conf/poker.$file.xml.in ; \ done ; \ /usr/local/poker/sbin/pokerconfigupgrade \ --verbose=1 \ --module=pokernetwork.pokernetworkconfig \ --upgrades=./upgrades/poker.server \ ./examples/poker.server.xml \ ./examples/poker.server-monotone.xml ; \ /usr/local/poker/sbin/pokerconfigupgrade \ --verbose=1 \ --module=pokernetwork.pokernetworkconfig \ --upgrades=./upgrades/poker.bot \ ./examples/poker.bot.xml Traceback (most recent call last): File "/usr/local/poker/sbin/pokerconfigupgrade", line 121, in <module> sys.exit(main()) File "/usr/local/poker/sbin/pokerconfigupgrade", line 76, in main config_module = my_import(module) File "/usr/local/poker/sbin/pokerconfigupgrade", line 38, in my_import mod = __import__(name) File "/root/local/poker/poker-network-1.2.0/pokernetwork/pokernetworkconfig.py", line 26, in <module> from pokerengine import pokerengineconfig ImportError: No module named pokerengine This error repeats for a few times, until make bails. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Pokersource-users mailing list Pokersource-users@gna.org https://mail.gna.org/listinfo/pokersource-users