You are here: Big Brother Bot ForumCommunity DevelopersThe Code BinB3 fake command prompt test error
Pages: [1]   Go Down
  Print  
Author Topic: B3 fake command prompt test error  (Read 1290 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 13
Offline Offline
« on: July 18, 2011, 03:27:41 PM »

So, trying to run B3 with he fake commands locally so i got have to keep uploading it to the server. This is the error I am getting:

Quote
Traceback (most recent call last):
  File "c:\b3\extplugins\spawnkill.py", line 23, in <module>
    import b3
ImportError: No module named b3

here is the command I am running:
Quote
C:\b3>set PYTHONPATH=c:\b3\ && c:\python32\python.exe c:\b3\extplugins\spawnkill.py
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: July 18, 2011, 10:50:31 PM »

this indicates the folder that contains the B3 source code in not in your python path. Try playing with values of PYTHONPATH like :

Code:
C:\b3>set PYTHONPATH=c:\ && c:\python32\python.exe c:\b3\extplugins\spawnkill.py

the folder that should be set for PYTHONPATH is the one that contains the b3_run.py file
Logged

Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 13
Offline Offline
« Reply #2 on: July 19, 2011, 07:48:37 AM »

just when I thought I had it:

Quote
 File "c:\b3\__init__.py", line 37, in <module>
    import pkg_handler
ImportError: No module named pkg_handler

however, i see it in root of b3 folder
« Last Edit: July 19, 2011, 08:18:15 AM by virtus » Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: July 19, 2011, 09:35:46 AM »

make sure you have python 2.6 or 2.7. B3 can partially work with python 2.5 but won't work with python <2.5 or python 3.x
Logged

Jr. Member
**
OS: Windows
Type: Gameserver Rental Co.
Gameservers: Homefront
Posts: 13
Offline Offline
« Reply #4 on: July 19, 2011, 10:22:43 AM »

that got it working, thanks!
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: July 19, 2011, 10:43:43 AM »

Smiley Good luck with your plugin
Logged

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal