that snake is a drivin me mayed!!

Hi!
thanks to S68’s tut on lightning bolts I finally decided to enter the world of python. my first steps are not very successful though :frowning: :frowning: :frowning: .

I installed latest python version, defined python path in blender, opened Lsystem tree-generator and ran the script by hitting alt-p. buttons occur the way they should. entered S68’s parameters, hit button “Generate” and here the problem occurs: nothing happens 'cept generator buttons dissapear and the raw script shows up again. I’m guessing I missed some important step, right?

hoping: ulli

when a script ends uncorrectly, it will usually display an error message in the Console Window (DOS window for Win users). What was the message displayed when the error occured?

Martin

Hi theeth!
Maybe it is because I still have the python20.dll in my blender directory. I cannot seem to get rid of it for blender does not even launch without it.

error message in DOS-window is:

Traceback (most recent call last):
File “lsystem.py”, line 6, in ?
ImportError: No module named random
failed importing internal module lsystem
trying to import external module…
Traceback (most recent call last):
File “Application.py”, line 447, in bevent
NameError: There is no variable named ‘lsystem_build’

that error will happen if your PythonPath is not set correctly inside Blender.

try adding those lines to the code, to see if it helps anything:


import sys
sys.path.append("c:/python20/lib/")

where c:/python20 is your python instalation folder.

Martin

yeah, thatzit! kewl!

I checked out the python-path in blender as well (i-window) and - er - there wuz a lil typing mistake…

thanxxx for the hint!

ulli