Need help!


(Creative_MB02) #1

Hello!

I have problems with these two Blender “plugins”: Blender World Forge 0.1.0 and SimbiontBlender 0.4. Every time I start one of this python scripts following console massage appears:

Using Python version 2.3
‘import site’ failed; use -v for traceback
Traceback (most recent call last):
File “BWF-0.1.0.py”, line 62, in ?
File “C:\Python24\Lib\os.py”, line 133
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep, ^)

SyntaxError: invalid syntax

Can anyone help me? Thanks in advance and sorry for my bad English!

Windows XP Professional SP-2, Blender 2.37a, Python 2.4.2 and so on… :expressionless:


(Modron) #2

blender 2.7 uses python 2.3. we only just switched to 2.4 with the latest version of blender.


(Creative_MB02) #3

Hello Modron!

Which version of Python should I use for Blender 2.37 and my plugins? Python 2.3.5, 2.3.4 or an older one?

Best Regards, CMB02


(stiv) #4

Use Python 2.3.5 which is the latest one in the 2.3.5 series. But any of the 2.3.x series will work.

The next official Blender release 2.40 ( currently in alpha test) will use Python 2.4 on most platforms.

Your import error comes from using new Python 2.4 syntax with old Python 2.3. The older style is without the parenthesis like this:

from os.path import curdir, pardir, sep, pathsep, defpath, extsep, altsep


(Creative_MB02) #5

Hello again,

I`ve downloaded Python 2.3.5, and now everything runs fine as it should be!

ciao,
CMB02 :wink: