Our sourceforge account was compromised and therefor the B3 projectfiles  are no longer safe to use.
Any windows installer and windows standalone version downloaded after 17 January 2015 might possibly be infected.
Run a tight anti virus check if you installed the windows binaries after 17 January 2015 or if you are not sure. (Report topic is here.)
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Year 2015 Donations
Apr-24 oldboss AUD10.00
Apr-16 embak EUR5.00
Mar-8 dobledosis USD5.00
Feb-17 |Brothers|-Chri... GBP10.00
Feb-8 [FTW]Banditas GBP5.00
Feb-8 oddball118 USD5.00
Feb-4 MordyT USD25.00
Developed with and

Author Topic: Python 2.6 install  (Read 3341 times)

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Python 2.6 install
« on: January 25, 2009, 08:43:12 PM »
When i try to run b3 it says it cant connect to mysql database.
In logfile i get this message:

090125 17:10:21   BOT       Attempting to connect to database mysql://b3:******@localhost/b3...
090125 17:10:21   ERROR   Database connection failed, working in remote mode: No module named MySQLdb - [('c:\\python26\\lib\\site-packages\\b3-1.1.2_r103-py2.6.egg\\b3\\storage.py', 190, 'connect', 'self.db = self.getConnection()'), ('c:\\python26\\lib\\site-packages\\b3-1.1.2_r103-py2.6.egg\\b3\\storage.py', 148, 'getConnection', 'import MySQLdb')]

It seems to me that it is missing the b3 egg for python 2.6.
Installing the egg for 2.4 or 2.5 didnt fix it.

Is there an egg available for 2.6 or should i install python 2.5 or is there another option for me to do?


Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: Python 2.6 install
« Reply #1 on: January 25, 2009, 09:15:12 PM »
Seems you haven't installed all requirements. MySQL-Python is missing.

Start here: http://www.bigbrotherbot.com/trac/wiki/BotInstall

...and use Source Install instead of the egg install. The link to github gives you the latest stable source.

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: Python 2.6 install
« Reply #2 on: January 25, 2009, 10:29:07 PM »
thnx,

I downloaded the .tar file and extracted it.
Now i have a whole bunch of folders (doc,mysql_python.egg-info,mysqldb,etc) and files (.cvignore, manifest, setup.py,setupcommon.py, etc).

next question: what to do with these files?

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Python 2.6 install
« Reply #3 on: January 25, 2009, 10:39:26 PM »
do you use windows or linux?

if you use linux, you can normally find python-mysqldb in your package manager.

If you use windows, you can download the exe file of python-mysql.

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: Python 2.6 install
« Reply #4 on: January 25, 2009, 11:01:25 PM »
i use windows 2003 server edition

you mean the egg at http://sourceforge.net/project/showfiles.php?group_id=22307&package_id=15775?

i downloaded both
MySQL_python-1.2.2-py2.5-win32.egg
adn
MySQL_python-1.2.2-py2.4-win32.egg

but when trying to run 1 of them i get the error msg: "This application has failed to start because MSVCR71.dll was not found"

Running easy install from commandline: C:\Python26\Scripts\easy_install c:\MySQL_python-1.2.2-py2.5-win32.egg
gives me the error: "The system cannot find the file specified". Just after it tries to start:
-Running MySQL-Python_1.2.2\setup.py -q bdlist_egg --dir-dir c:\....\easy_install-yz1dv2\MySQL-python-1.2.2\egg-dist-tmp-3twqrr

Thats why i downloaded the source install: MySQL-python-1.2.2.tar.gz

« Last Edit: January 25, 2009, 11:48:50 PM by universalrose »

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: Python 2.6 install
« Reply #5 on: January 26, 2009, 03:56:07 PM »
I fixed the msvcr71.dll problem. I thought it was because the download was bad, but it turned out that i needed a fix for my system32 folder.

Now back to the python2.6 issue.
I tried to run MySQL-python-1.2.2.win32-py2.4.exe/MySQL-python-1.2.2.win32-py2.5.exe. but both installs stopped and said i needed python version 2.4/2.5 when running one of these programs.

Is there a MySQL-python-1.2.2.win32-py2.6.exe or do i have to uninstal 2.6 and run python 2.5?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: Python 2.6 install
« Reply #6 on: January 26, 2009, 05:42:43 PM »
Hm, not sure what to do. This is a thread from november 2008.: http://bytes.com/groups/python/854793-will-mysqldb-python-shim-supported-python-2-6-3-x

If you want to investigate and put the effort in it to get it working for 2.6...

I think I'd go back to 2.5

Offline UniversalRose

  • Jr. Member
  • **
  • Posts: 44
Re: Python 2.6 install
« Reply #7 on: January 27, 2009, 11:07:11 PM »
went back to 2.5.

its working now on local server. now trying to get it to run remotely, but the info on that kinda vague.

lets hope thorn finishes his next version soon.

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Python 2.6 install
« Reply #8 on: January 27, 2009, 11:18:25 PM »
sorry, i'll update the guide soon, when I also make public my usb3 usb bootable linux-on-a-stick operating system. Features most features, including b3, cron status.xml to ftp server, logfile to ftp server, etc.

 


Rate this page +1 at Google Search