Thanks for your fast answer! But I still wasn’t able to make it work:
I downloaded your new script (20030820), put it somewhere in my blender folders, imported it into my blender file. Then I changed the YABLEROOT to point to the folder containing my script, the VIEWERAPP to my image viewing program, and CRAFTERFILE to the material file in my crafter dir. And I saved all that in a copy of the original file.
I also modified the PYTHONPATH of my system environment variables to match the “C:\Program Files\Python” path:
C:\Progra~1\Python;C:\Progra~1\Python\DLLs;C:\Progra~1\Python\Lib;C:\Progra~1\Python\Lib\lib-tk
This seems to work when I try it in my Python console:
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.path
['', 'C:\\Progra~1\\Python', 'C:\\Progra~1\\Python\\DLLs', 'C:\\Progra~1\\Python
\\Lib', 'C:\\Progra~1\\Python\\Lib\\lib-tk', 'C:\\WINNT\\system32\\python23.zip'
, 'C:\\Program Files\\Python\\DLLs', 'C:\\Program Files\\Python\\lib', 'C:\\Prog
ram Files\\Python\\lib\\plat-win', 'C:\\Program Files\\Python\\lib\\lib-tk', 'C:
\\Program Files\\Python', 'C:\\Program Files\\Python\\lib\\site-packages']
>>>
Then I rebooted my computer, reopened my blender file and pressed ALT-P. Here’s the output of the Blender console:
When I start Blender and open my file:
C:\Progra~1\Python\Lib\os.py:282: Warning: 'yield' will become a reserved keywor
d in the future
'import site' failed; use -v for traceback
no font found for international support
When I presse ALT-P:
Using a clean Global Dictionary.
Run Python script "YableX" ...
C:\Progra~1\Python\Lib\os.py:282: Warning: 'yield' will become a reserved keywor
d in the future
Traceback (most recent call last):
File "YableX", line 49, in ?
File "C:\Progra~1\Python\Lib\os.py", line 282
yield top, dirs, nondirs
^
SyntaxError: invalid syntax
C:\Progra~1\Python\Lib\os.py:282: Warning: 'yield' will become a reserved keywor
d in the future
'import site' failed; use -v for traceback
Should I use an older version of Python (instead of Python 2.3)? But if yes, which one?
Gabriel