Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: B3 fake command prompt test error  (Read 5262 times)

Offline virtus

  • Jr. Member
  • **
  • Posts: 13
B3 fake command prompt test error
« on: July 19, 2011, 01:27:41 AM »
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

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: B3 fake command prompt test error
« Reply #1 on: July 19, 2011, 08:50:31 AM »
this indicates the folder that contains the B3 source code in not in your python path. Try playing with values of PYTHONPATH like :

Code: [Select]
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

Offline virtus

  • Jr. Member
  • **
  • Posts: 13
Re: B3 fake command prompt test error
« Reply #2 on: July 19, 2011, 05:48:37 PM »
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, 06:18:15 PM by virtus »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: B3 fake command prompt test error
« Reply #3 on: July 19, 2011, 07:35:46 PM »
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

Offline virtus

  • Jr. Member
  • **
  • Posts: 13
Re: B3 fake command prompt test error
« Reply #4 on: July 19, 2011, 08:22:43 PM »
that got it working, thanks!

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: B3 fake command prompt test error
« Reply #5 on: July 19, 2011, 08:43:43 PM »
:) Good luck with your plugin

 


Rate this page +1 at Google Search

anything