Pages: [1] 2   Go Down
  Print  
Author Topic: b3 cannot start  (Read 985 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« on: January 07, 2012, 05:47:39 AM »

only in console i have it where is wrong ? hmm

Using config file: /root/b3/b3/conf/b3.xml
/root/b3/b3/storage/database.py:192: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
 File "/root/b3/b3/run.py", line 185, in main
   run(config=options.config, nosetup=options.nosetup)
 File "/root/b3/b3/run.py", line 141, in run
   b3.start(config, nosetup)
 File "/root/b3/b3/__init__.py", line 154, in start
   parser = loadParser(parserType, configFile, nosetup)
 File "/root/b3/b3/__init__.py", line 78, in loadParser
   mod = __import__(name)
 File "/root/b3/b3/parsers/cod4.py", line 45, in <module>
   import b3.parsers.cod2
 File "/root/b3/b3/parsers/cod2.py", line 30, in <module>
   import b3.parsers.cod
 File "/root/b3/b3/parsers/cod.py", line 62, in <module>
   from b3.parsers.q3a.abstractParser import AbstractParser
 File "/root/b3/b3/parsers/q3a/abstractParser.py", line 88, in <module>
   import b3.parser
 File "/root/b3/b3/parser.py", line 144, in <module>
   import b3.storage
 File "/root/b3/b3/storage/__init__.py", line 85, in <module>
   from database import DatabaseStorage
 File "/root/b3/b3/storage/database.py", line 192
    with open(sqlFile) as f:
            ^
SyntaxError: invalid syntax
Exited with status 0
Normal shutdown, stopping.
Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #1 on: January 07, 2012, 07:42:26 AM »

Which version of Python are you using?
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #2 on: January 07, 2012, 07:57:16 AM »

2.6
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #3 on: January 07, 2012, 08:17:46 AM »

Which OS?

Can you upgrade to 2.7.2 and see if that cures it?
« Last Edit: January 07, 2012, 08:20:16 AM by 82ndAB.Bravo17 » Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #4 on: January 07, 2012, 08:25:52 AM »

VPS Debian 5

yes we can update it.
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #5 on: January 14, 2012, 12:03:23 AM »

in python 2.7.2 its this same error  :/
any developer can't help me ??

uts-clan:~/b3# python ./b3_run.py -r -c /root/b3/b3/conf/b3.xml
Running in auto-restart mode...
checking for updates...
latest B3 version is 1.7.1
...no update available.
Starting www.bigbrotherbot.net (b3) v1.8.0b [posix] [Seda]

Using config file: /root/b3/b3/conf/b3.xml
/root/b3/b3/storage/database.py:192: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "/root/b3/b3/run.py", line 185, in main
    run(config=options.config, nosetup=options.nosetup)
  File "/root/b3/b3/run.py", line 141, in run
    b3.start(config, nosetup)
  File "/root/b3/b3/__init__.py", line 154, in start
    parser = loadParser(parserType, configFile, nosetup)
  File "/root/b3/b3/__init__.py", line 78, in loadParser
    mod = __import__(name)
  File "/root/b3/b3/parsers/cod4.py", line 45, in <module>
    import b3.parsers.cod2
  File "/root/b3/b3/parsers/cod2.py", line 30, in <module>
    import b3.parsers.cod
  File "/root/b3/b3/parsers/cod.py", line 62, in <module>
    from b3.parsers.q3a.abstractParser import AbstractParser
  File "/root/b3/b3/parsers/q3a/abstractParser.py", line 88, in <module>
    import b3.parser
  File "/root/b3/b3/parser.py", line 144, in <module>
    import b3.storage
  File "/root/b3/b3/storage/__init__.py", line 85, in <module>
    from database import DatabaseStorage
  File "/root/b3/b3/storage/database.py", line 192
     with open(sqlFile) as f:
             ^
 SyntaxError: invalid syntax
Exited with status 0
Normal shutdown, stopping.
« Last Edit: January 14, 2012, 04:04:34 AM by LS_ARRoW » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: January 14, 2012, 04:23:35 AM »

Hi,
It still looks like you are running python <2.6. If you have installed multiple versions of python on your system, then you might want to specify the exact python interpreter you want to use.

I beleive in debian, the python interpreter for 2.7 is named "python27"
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #7 on: January 14, 2012, 01:31:19 PM »

ok working python2.7
« Last Edit: January 14, 2012, 05:43:21 PM by LS_ARRoW » Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #8 on: January 15, 2012, 04:47:48 AM »

but now im install apt-get -t testing install python-mysqldb



uts-clan:~# apt-get -t testing install python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  python-egenix-mxdatetime python-mysqldb-dbg
The following NEW packages will be installed:
  python-mysqldb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/95.2kB of archives.
After this operation, 274kB of additional disk space will be used.
Selecting previously deselected package python-mysqldb.
(Reading database ... 21159 files and directories currently installed.)
Unpacking python-mysqldb (from .../python-mysqldb_1.2.2-7_i386.deb) ...
Setting up python-mysqldb (1.2.2-7) ...
Processing triggers for python-support ...



i have this error ;/



120115 12:43:33   BOT       'www.bigbrotherbot.net (b3) v1.8.0b [posix] [Seda]'
120115 12:43:34   BOT       'Python: 2.7.2 (default, Jan 15 2012, 00:29:30) \n[GCC 4.3.2]'
120115 12:43:34   BOT       'Default encoding: ascii'
120115 12:43:34   BOT       'Starting Cod4Parser v1.3.4 for server 89.231.6.18:28960'
120115 12:43:34   BOT       '--------------------------------------------'
120115 12:43:34   BOT       'Attempting to connect to database mysql://baza_2941:******@89.231.6.18/baza_2941...'
120115 12:43:34   CRITICAL   "No module named MySQLdb. You need to install python-mysqldb. Look for 'dependencies' in B3 documentation."
Traceback (most recent call last):
  File "/root/b3/b3/storage/database.py", line 170, in getConnection
    import MySQLdb
ImportError: No module named MySQLdb
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #9 on: January 15, 2012, 07:55:38 AM »

try

apt-get -t testing install python2.7-mysqldb
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #10 on: January 15, 2012, 08:23:16 AM »

in ur command im see it look.


uts-clan:~# apt-get -t testing install python2.7-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python2.7-mysqldb
uts-clan:~# python
Python 2.7.2 (default, Jan 15 2012, 00:29:30)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #11 on: January 15, 2012, 08:28:02 AM »

perhaps :
apt-get install python2.7-mysqldb

anyway, you have to install the package of python-mysqldb that matches your python 2.7
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #12 on: January 15, 2012, 08:40:44 AM »

damnit ;/

uts-clan:~# apt-get install python2.7-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python2.7-mysqldb

uts-clan:~# apt-get install python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-mysqldb is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #13 on: January 15, 2012, 08:47:11 AM »

I can't help you much more here. It seems there is something going funny with your package manager.

maybe uninstall all python versions from your system and only install python 2.7
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 48
Offline Offline
« Reply #14 on: January 15, 2012, 10:19:16 AM »

who can help me and install in clerar vps b3bot ;/ ?

i give root password in pm
Logged
Tags: in Debian 5 
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal