No math module??
Serge.Orlov at gmail.com
Tue May 23 06:25:58 CEST 2006
> I have been trying to run a python program and I get the following
> Traceback (most recent call last):
> Fil e "<string>", line 39, in ?
That doesn't look like a python program, File "<string>" means it's an
embedded script. When a script is embedded it is responsibility of the
caller (blender application) to setup correct path to modules.
> File "/home/Larry/.blender/scripts/bzflag/__init__.py", line 22, in ?
> import BZfileRead
> File "/home/Larry/.blender/scripts/bzflag/BZfileRead.py", line 24, in ?
> import BZsceneWriter
> File "/home/Larry/.blender/scripts/bzflag/BZsceneWriter.py", line 25, in ?
> import BZcommon
> File "/home/Larry/.blender/scripts/bzflag/BZcommon.py", line 24, in ?
> import math
> ImportError: No module named math
> So what's up?? :)
Try to insert
print sys.path, sys.version, sys.executable
right before the failing "import math". The next step is most likely to
RTFM how to properly setup python embedded into blender. If everything
looks as described in the manual, it's a bug in blender.
More information about the Python-list