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) TypeError: unsubscriptable object
Pages: 1 ... 3 4 [5]   Go Down
  Print  
Author Topic: TypeError: unsubscriptable object  (Read 3657 times) Bookmark and Share
Full Member
***
OS: Linux
Type: Gameserver Rental Co.
Gameservers: COD
Posts: 53
Offline Offline
WWW
« Reply #60 on: March 12, 2011, 02:05:03 PM »

Code:
[root@thejackster warservers.net]# python
Python 2.6.6 (r266:84292, Mar 12 2011, 13:50:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Got it to 2.6 Smiley
Logged

WarServers.NET

The BEST Game Server provider!

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #61 on: March 13, 2011, 12:03:48 AM »

Does it work now?
Logged
Full Member
***
OS: Linux
Type: Gameserver Rental Co.
Gameservers: COD
Posts: 53
Offline Offline
WWW
« Reply #62 on: March 13, 2011, 01:43:38 AM »

Nope.
Logged

WarServers.NET

The BEST Game Server provider!
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #63 on: March 13, 2011, 07:32:16 AM »

Can you guess what we need to see? Running with the new Python version.
Logged
Full Member
***
OS: Linux
Type: Gameserver Rental Co.
Gameservers: COD
Posts: 53
Offline Offline
WWW
« Reply #64 on: March 13, 2011, 08:07:25 AM »

Ah that worked.

Thanks for that, But B3 still wont start  Cry

B3.log
Code:
110310 14:20:43 BOT    www.bigbrotherbot.net (b3) v1.4.1 [posix] (Daniel)
110310 14:20:43 BOT    Python: 2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
110310 14:20:43 BOT    Starting CodParser v1.4.15 for server 178.238.130.174:28960
110310 14:20:43 BOT    --------------------------------------------
110310 14:20:43 BOT    Attempting to connect to database mysql://jacksterb3:******@db4free.net/jacksterb3...
110310 14:20:43 BOT    Connected to database [1 times]
110310 14:20:43 BOT    Game log /home/jack/service5/cod4/main/games_mp.log
110310 14:20:43 BOT    Starting bot reading file /home/jack/service5/cod4/main/games_mp.log

config
Code:
<?xml version="1.0"?>
<configuration>
  <settings name="b3">
    <set name="parser">cod4/set>
    <set name="database">mysql://jacksterb3:password@db4free.net/jacksterb3</set>
    <set name="bot_name">^6B3</set>
    <set name="bot_prefix">^0(^2b3^0)^7:</set>
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <set name="time_zone">GMT</set>
    <set name="log_level">9</set>
    <set name="logfile">/home/GameServers/B3/b3.log</set>
  </settings>
  <settings name="server">
    <set name="rcon_password">xxxx</set>
    <set name="port">28960</set>
    <set name="game_log">/home/jack/service5/cod4/main/games_mp.log</set>
    <set name="public_ip">178.238.130.174</set>
    <set name="rcon_ip">178.238.130.174</set>
    <set name="punkbuster">off</set>
  </settings>
  <settings name="autodoc">
    <set name="type">html</set>
    <set name="maxlevel">100</set>
    <set name="destination">/home/lol/warservers.net/servers/index.html</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <set name="banned">$clientname^7 was banned $reason</set>
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
   
  </plugins>
</configuration>

games_mp.log
Code:
171:56 ------------------------------------------------------------
171:56 ------------------------------------------------------------
171:56 InitGame: \_Website\http://warservers.net\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_convoy\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1R^43^1ality ^4Gaming   ^1#^41\sv_maxclients\24\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\0\sv_voice\1\ui_maxclients\32
182:55 ExitLevel: executed
182:55 ShutdownGame:
182:55 ------------------------------------------------------------
182:55 ------------------------------------------------------------
182:55 InitGame: \_Website\http://warservers.net\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_countdown\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1R^43^1ality ^4Gaming   ^1#^41\sv_maxclients\24\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\0\sv_voice\1\ui_maxclients\32
193:54 ExitLevel: executed
193:54 ShutdownGame:
193:54 ------------------------------------------------------------
193:54 ------------------------------------------------------------
193:54 InitGame: \_Website\http://warservers.net\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_crash\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1R^43^1ality ^4Gaming   ^1#^41\sv_maxclients\24\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\0\sv_voice\1\ui_maxclients\32
204:53 ExitLevel: executed
204:53 ShutdownGame:
204:53 ------------------------------------------------------------
204:53 ------------------------------------------------------------
204:53 InitGame: \_Website\http://warservers.net\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_crossfire\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1R^43^1ality ^4Gaming   ^1#^41\sv_maxclients\24\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\0\sv_voice\1\ui_maxclients\32
215:52 ExitLevel: executed
215:52 ShutdownGame:
215:52 ------------------------------------------------------------
215:52 ------------------------------------------------------------
215:52 InitGame: \_Website\http://warservers.net\g_compassShowEnemies\0\g_gametype\war\gamename\Call of Duty 4\mapname\mp_farm\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1R^43^1ality ^4Gaming   ^1#^41\sv_maxclients\24\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\0\sv_punkbuster\0\sv_pure\0\sv_voice\1\ui_maxclients\32
226:50 ExitLevel: executed
226:50 ShutdownGame:
226:50 ------------------------------------------------------------
Logged

WarServers.NET

The BEST Game Server provider!
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #65 on: March 13, 2011, 09:38:48 AM »

The b3 log still shows that it is running Python under 2.4.3

I think you'll need to manually alter your start up to get it to run with the new version, but I don't use Linux so I'm not sure how you do that. In windows you would need to put the full path to the correct python executable file in there rather than rely on the file association run it for you.
Logged
Full Member
***
OS: Linux
Type: Gameserver Rental Co.
Gameservers: COD
Posts: 53
Offline Offline
WWW
« Reply #66 on: March 13, 2011, 01:49:54 PM »

Going to try reinstalling B3 on the server.
Logged

WarServers.NET

The BEST Game Server provider!
Full Member
***
OS: Linux
Type: Gameserver Rental Co.
Gameservers: COD
Posts: 53
Offline Offline
WWW
« Reply #67 on: March 13, 2011, 03:57:10 PM »

Just reading though the FAQ.

Said about CentOS and some thing.

So did some stuff it said todo.

And then ran B3 again.

Code:
110313 17:29:21 BOT    www.bigbrotherbot.net (b3) v1.4.1 [posix] (Daniel)
110313 17:29:21 BOT    Python: 2.6.6 (r266:84292, Mar 12 2011, 13:50:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
110313 17:29:21 BOT    Starting Cod4Parser v1.3.2 for server 178.238.130.174:28960
110313 17:29:21 BOT    --------------------------------------------
110313 17:29:21 BOT    Attempting to connect to database mysql://jacksterb3:******@db4free.net/jacksterb3...
110313 17:29:21 CRITICAL No module named MySQLdb. You need to install python-mysqldb. Look for 'dependencies' in B3 documentation.
Traceback (most recent call last):
  File "/home/GameServers/B3/b3/storage.py", line 160, in getConnection
    import MySQLdb
ImportError: No module named MySQLdb


So I do:
Code:
[root@thejackster B3]# yum search MySQLdb
Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
 * addons: mirror.sov.uk.goscomb.net
 * base: mirror.sov.uk.goscomb.net
 * epel: mirror01.th.ifl.net
 * extras: mirrors.melbourne.co.uk
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.melbourne.co.uk
0 packages excluded due to repository protections
=============================== Matched: MySQLdb ===============================
MySQL-python.i386 : An interface to MySQL
[root@thejackster B3]#
But MySQLdb is installed.

Code:
# yum install MySQL-python
Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
 * addons: mirror.sov.uk.goscomb.net
 * base: mirror.sov.uk.goscomb.net
 * epel: mirror01.th.ifl.net
 * extras: mirrors.melbourne.co.uk
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.melbourne.co.uk
0 packages excluded due to repository protections
Setting up Install Process
Package MySQL-python-1.2.1-1.i386 already installed and latest version
Nothing to do
[root@thejackster B3]#

This is making no sense to me :/
Logged

WarServers.NET

The BEST Game Server provider!
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #68 on: March 13, 2011, 04:30:51 PM »

You need to install mysql-python into the new python 2.6 installation, its saying that it's already installed in the 2.4 version (I think).

You will probably need to do this manually somehow, as the auto way will probably use the 2.4 version by default.
Logged
Tags:
Pages: 1 ... 3 4 [5]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal