Trager
(Trager)
February 20, 2006, 10:18pm
1
I’m having trouble getting some of the pyhton scripts to run in Blender 2.41
I HAVE NOT set a pythonpath on my system, is that the problem?
And a noob question, what is the the pythonpath for? I always get this message when I open Blender -
‘import site’ failed; use -v for traceback
Is it because the pythonpath is not set?
Please help, my head is going to explode!!!? I’m no programmer, I know enough to get along, but this stuff is making me feel like a complete retard!!
Any and all help is appreciated!! %|
LetterRip
(LetterRip)
February 20, 2006, 10:34pm
2
unfortunately there were some last minute errors on some scripts - bevel_face, and one of the importers
which scripts are you having problems with?
LetterRip
Trager
(Trager)
February 20, 2006, 10:57pm
3
Most notably I’m trying to work with World Forge. It doesn’t work, it says theres a script error.
Then again I just checked in my Environment Variables and it doesn’t look like I have python installed because there is no path set for it!?
I just downloaded Python ver 2.4.2, but I’m not going to intall it unless someone tells me I need to.
I guess that’s the main question here, do I need it?
CoNfUSeD!? :o
PS Know where I can get a copy of the sun sky plugin?
Trager
(Trager)
February 20, 2006, 10:59pm
4
Plus there’s still this…
‘import site’ failed; use -v for traceback
I still don’t know what that means…
Damn I’m dumb…
LetterRip
(LetterRip)
February 20, 2006, 11:18pm
5
it means you don’t have python installed, some external scripts require a full python install, I think Blender World Forge is one of them…
LetterRip
Trager
(Trager)
February 20, 2006, 11:25pm
6
Thanx dude.
I’ll do an install and set the path hopefully that will work, if it doesn’t I’m sure I’ll come back here to whine. j/k
Appreciate the help.
Cellophane
(Cellophane)
February 21, 2006, 12:54am
7
i don’t want to make any trouble, but i think, blender uses its own internal python virtual machine (a 2.3 version by the way). If this is true, you should not need to install any thing else…
sorry if i am wrong…
but you can quickly try:
import sys
_myLocalDir = ‘/local/path/to/your/scripts’
try:
sys.path.index(_myLocalDir)
except ValueError:
sys.path.append(_myLocalDir)
LetterRip
(LetterRip)
February 21, 2006, 1:22am
8
you are right and wrong
Blender has a built in python interpreter, but it is a subset of a full python install. Some scripts require a full python install to work.
LetterRIp
Cellophane
(Cellophane)
February 21, 2006, 8:32am
9
thanks for this precision
Trager
(Trager)
February 21, 2006, 4:56pm
10
Installed Python ver2.4 and everything is working fine.
Can someone direct me to the best python tutorials (beginners stuff) -
I need to learn this.
Thanx again
Trager
LetterRip
(LetterRip)
February 21, 2006, 5:00pm
11
Read dive into python
http://diveintopython.org/
LetterRip