In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)Python 2.6 install
Pages: [1]   Go Down
  Print  
Author Topic: Python 2.6 install  (Read 2957 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 44
Offline Offline
« on: January 25, 2009, 11:43:12 AM »

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?

Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2052
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: January 25, 2009, 12: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.
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 44
Offline Offline
« Reply #2 on: January 25, 2009, 01: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?
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1226
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #3 on: January 25, 2009, 01: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.
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 44
Offline Offline
« Reply #4 on: January 25, 2009, 02: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, 02:48:50 PM by universalrose » Logged
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 44
Offline Offline
« Reply #5 on: January 26, 2009, 06:56:07 AM »

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?
Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2052
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #6 on: January 26, 2009, 08:42:43 AM »

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
Logged

Jr. Member
**
OS: Windows
Type: Home user
Gameservers: CodUo
Posts: 44
Offline Offline
« Reply #7 on: January 27, 2009, 02: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.
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1226
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #8 on: January 27, 2009, 02: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.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal