Hey, everybody. This is the first post I’ve made, as I signed up to get help with this problem: Blender 2.30 can’t run most python scripts I try. I’m running Windows 98, and I’ve got Python 2.3. I just followed the instructions for setting the Python Path, though I wasn’t really sure what that was for. Now I’ve got an error message when I start Blender:
C:\PYTHON23\LIB\os.py:282: Warning: ‘yield’ will become a reserved keyword in the future
‘import site’ failed; use -v for traceback
I made sure that the python paths I set were correct, but I didn’t do all of them. I hope that doesn’t make a difference.
I was running into the same problem. I just got done installing Slackware 9.1 on a laptop I just purchased on EBay. Python scripts weren’t working, though they were working fine on my desktop running Slackware 9.0. Slackware 9.1 comes with Python 2.3.1, so I guess I have to downgrade my Python version in order to get my scripts working on the laptop… That kind of sucks. There is no way to get Blender to use the Python 2.3 executable, eh?
Under linux there is no problem to use blender 2.30 with python 2.3. Control the paths to your python libs[/quote]
Hmm… I was trying various things to do that for a few hours. Do you mean control the paths by exporting the PYTHONPATH variable with only the paths to the 2.3 libraries?
When I did a search for python executables, I only ever found the 2.3 one. “which python” returned this version.
However, when I would try to execute the following from within python:
import sys
print sys.version
It stated that it was version 2.2.1. It was finding the 2.3 libraries, however because the errors were from one of the .py files in my /usr/lib/python2.3 directory. (That was the ‘yield’ error. It’s my understanding that is caused by using 2.3 libraries with a 2.2 interpreter)
So… is there any way to make Blender use my 2.3 executable outside of getting the source and compiling it?
Thanks for the help guys. I un-installed the Python 2.2 package again, re-installed the Python 2.3 package, got the source for Blender, compiled it, and all seems to be working fine. Not sure why I didn’t grab the source to begin with. I usually get the source distributions of things rather than the binary. I guess this time I just saw the binary first and downloaded it. Oh well… now I know better.