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)SyntaxError: invalid syntax
Pages: [1] 2   Go Down
  Print  
Author Topic: SyntaxError: invalid syntax  (Read 4065 times) Bookmark and Share
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« on: April 01, 2011, 08:04:52 PM »

I followed a video guide to install B3 on my dedicated server running linux and I get this SyntaxError: invalid syntax what did I do wrong or  what step did I miss in setting up b3 ?


Last login: Fri Apr  1 22:24:48 2011 from c-98-232-59-251.hsd1.wa.comcast.net
[root@rm-1001-07 ~]# python /b3/b3_run.py -c /b3/b3/conf/b3.xml
Traceback (most recent call last):
  File "/b3/b3_run.py", line 32, in ?
    import b3.run
  File "/b3/b3/__init__.py", line 37, in ?
    import pkg_handler
  File "/b3/b3/pkg_handler.py", line 33, in ?
    from b3.functions import main_is_frozen
  File "/b3/b3/functions.py", line 93
    finally:
          ^
SyntaxError: invalid syntax
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 4766
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: April 02, 2011, 04:39:33 AM »

make sure you downloaded B3 v1.5. The files you have seems to be corrupted
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« Reply #2 on: April 02, 2011, 05:30:35 AM »

make sure you downloaded B3 v1.5. The files you have seems to be corrupted

I reloadloaded b3 1.5 and that did not solve it I'm still getting the same error
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 4766
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: April 02, 2011, 06:14:49 AM »

I can't reproduce Sad what version of python are you using ?

note: B3 is not yet compatible with python 3.x
Logged

Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« Reply #4 on: April 02, 2011, 04:48:18 PM »

I can't reproduce Sad what version of python are you using ?

note: B3 is not yet compatible with python 3.x

Python 2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 4766
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: April 02, 2011, 04:52:54 PM »

you need python 2.5 minimum if you are installing B3 on the same machine as the one running the game server.

you need python 2.6 minimum if you are installing B3 on a different machine as the one running the game server
Logged

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD4, COD5, Arma 2
Posts: 2042
Offline Offline
« Reply #6 on: April 02, 2011, 07:01:05 PM »

This post may help you:-


http://forum.bigbrotherbot.net/installation-support/help-needed-by-install-bigbrotherbot-v-1-4-1-on-clear-os-cent-os/
Logged
Moderator
*
OS: Linux
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 3573
Offline Offline
Over $300 Donated to B3!
WWW
« Reply #7 on: April 02, 2011, 07:56:51 PM »

I followed a video guide to install B3 on my dedicated server running linux and I get this SyntaxError: invalid syntax what did I do wrong or  what step did I miss in setting up b3 ?


Last login: Fri Apr  1 22:24:48 2011 from c-98-232-59-251.hsd1.wa.comcast.net
[root@rm-1001-07 ~]# python /b3/b3_run.py -c /b3/b3/conf/b3.xml
Traceback (most recent call last):
  File "/b3/b3_run.py", line 32, in ?
    import b3.run
  File "/b3/b3/__init__.py", line 37, in ?
    import pkg_handler
  File "/b3/b3/pkg_handler.py", line 33, in ?
    from b3.functions import main_is_frozen
  File "/b3/b3/functions.py", line 93
    finally:
          ^
SyntaxError: invalid syntax


Would it be this guide? http://www.bigbrotherbot.com/node/7
Python 2.6 is already default on those servers.
Logged

Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy Smiley

System: Python 2.7.1 - B3 Source Code - Ubuntu box (rented at $15 a year) - remote MySQL - Remote Web Services
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« Reply #8 on: April 04, 2011, 02:19:43 PM »

Yes that was the post I used And I also confirmed that it was a later version with my provider that host my server. I have now solve the problem of getting b3 to run but it will not connect to the server I know that I need to fine the b3.log to solve this but I can't seem to fine it where would that file be?
« Last Edit: April 05, 2011, 01:04:48 PM by 420 » Logged
Moderator
*
OS: Linux
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 3573
Offline Offline
Over $300 Donated to B3!
WWW
« Reply #9 on: April 04, 2011, 04:07:33 PM »

The b3.log? B3 makes that...
The gamelog? Your gameserver makes that...

EDIT: If using YDGH, try the very root of the server.
« Last Edit: April 04, 2011, 04:12:05 PM by MordyT » Logged

Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy Smiley

System: Python 2.7.1 - B3 Source Code - Ubuntu box (rented at $15 a year) - remote MySQL - Remote Web Services
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD4, COD5, Arma 2
Posts: 2042
Offline Offline
« Reply #10 on: April 04, 2011, 04:11:13 PM »

Try setting a specific path for your b3 log in your b3 xml if you can't find the file.
Logged
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« Reply #11 on: April 05, 2011, 12:28:09 PM »

ok thx found the file here is a copy and paste of what is in my b3.log file

110404 18:00:49   BOT       www.bigbrotherbot.net (b3) v1.5.0 [posix] [Daniel]
110404 18:00:49   BOT       Python: 2.7 (r27:82500, Apr  4 2011, 11:39:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
110404 18:00:49   BOT       Starting Iourt41Parser v1.7.15 for server 65.23.154.15:27960
110404 18:00:49   BOT       --------------------------------------------
110404 18:00:49   BOT       Attempting to connect to database mysql://root:******@localhost/testb3test...
110404 18:00:49   CRITICAL   No module named MySQLdb. You need to install python-mysqldb. Look for 'dependencies' in B3 documentation.
Traceback (most recent call last):
  File "/b3/b3/storage.py", line 165, in getConnection
    import MySQLdb
ImportError: No module named MySQLdb

As I'm running 2 differnet python's on my server the old 2.4.5 and the 2.7 do I need to make a new MySQLdb for 2.7?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 4766
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: April 05, 2011, 12:52:59 PM »

you cannot run B3 with python 2.4
you need python 2.5  or later.

You also need python-mysqldb for the version of python you are using
Logged

Moderator
*
OS: Linux
Type: Renting Server, no B3
Gameservers: CoD4
Posts: 3573
Offline Offline
Over $300 Donated to B3!
WWW
« Reply #13 on: April 05, 2011, 01:01:02 PM »

you cannot run B3 with python 2.4
you need python 2.5  or later.

You also need python-mysqldb for the version of python you are using

According to that log, he has py 2.7

All he needs now is the connector
Logged

Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy Smiley

System: Python 2.7.1 - B3 Source Code - Ubuntu box (rented at $15 a year) - remote MySQL - Remote Web Services
Jr. Member
**
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 19
Offline Offline
« Reply #14 on: April 05, 2011, 05:11:33 PM »

According to that log, he has py 2.7

All he needs now is the connector
mysql is the connector right ?

I added a pic of it showing that I do have it.

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal