python troubles with blender 2.40 alpha2


(boxfish) #1

I was trying to run the tree lsystem python scripts and ran into a error where Matrix.py module is not found. This only occurs on blender 2.40 on linux. It works correctly on 2.40 windows xp, and works correctly under linux blender 2.37.

I’m thinking it looks like the 2.40 does not see all the modules in the .blend file. If I copy Matrix.py to a location in the python path it works correctly on linux.

Both windows and Linux are on python 2.4, both systems have the PYTHONHOME and PYTHONPATH set. In the lsystem.py script I added a print for sys.path below is the output for each os.

I was wondering how blender knows to look in the .blend file for python scripts or find the .pyc files? Have I missed something in the setup for 2.40?

Any ideas on how to correct this?

Thanks!

Windows PYTHONPATH:
C:\mystuff\blender-2.40-alpha2-windows
C:\mystuff\blender-2.40-alpha2-windows\python24.zip
C:\Python24\Lib
C:\Python24\DLLs
C:\Python24\Lib\lib-tk
C:\mystuff\blender-2.40-alpha2-windows
C:\Python24
C:\Python24\lib\site-packages
C:\mystuff\BLENDE~1.40-
C:\mystuff\blender-2.40-alpha2-windows.blender\scripts
C:\mystuff\blender-2.40-alpha2-windows.blender\scripts\bpymodules

Linux PYTHONPATH:

/cdrive/blender-2.40alpha2-linux-glibc232-py24-i386
/usr/lib/python24.zip
/usr/lib/python2.4
/usr/lib/python2.4/plat-linux2
/usr/lib/python2.4/lib-tk
/usr/lib/python2.4/lib-dynload
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/Numeric
/usr/lib/python2.4/site-packages/gtk-2.0
/usr/lib/python2.4/lib/python24.zip
/usr/lib/python2.4/lib/python2.4
/usr/lib/python2.4/lib/python2.4/plat-linux2
/usr/lib/python2.4/lib/python2.4/lib-tk
/usr/lib/python2.4/lib/python2.4/lib-dynload
/cdrive/blender-2.40alpha2-linux-glibc232-py24-i386/
/cdrive/blender-2.40alpha2-linux-glibc232-py24-i386/./.blender/scripts
/cdrive/blender-2.40alpha2-linux-glibc232-py24-i386/./.blender/scripts/bpymodules