Lsystem troubles

I recently downloaded the lsystem from here http://jmsoler.free.fr/util/blenderfile/images/lsystem/lsystem.htm
I then added this line of code so I could import it into blender

#!BPY

"""
Name: 'Lsystem Script v2.28'
Blender: 233
Group: 'Mesh'
Tip: 'Creates Trees.'
""" 

I put the newly modified lsystem.py file into my scripts folder in blender. I clicked update menus and I found it in the mesh file. When I try to run the script this error comes up

Using Python version 2.4
Traceback <most recent call last>:
  File "<string>",line 36, in ?
  File "/Program Files\Blender Foundation\Blender\.blender\scripts\lsystem
line 30, in ?
    from rulesets import *
ImportError: No mudule named rulesets

and then I cant use the script. Does anyone know how to fix this so I can get the script to work in blender?

http://blenderartists.org/forum/showthread.php?t=64685

%<

That didnt fix anything. I still get the same exact error.

Found WHAT in a mesh file??? the script? a mesh.?

No,
Open up the python tab, click on scripts, then go to mesh.

Rulesets.py is one of the scripts in the .blend, check to see if it’s loaded. You can try running from the Text Editor instead of the Scripts window, or Alt-P on rulesets.py before running Application.py or try copying rulesets to your home folder.

%<

Thanks Fligh%. Now the actual lsystem menu comes up, but I’m getting a new error.

Traceback <most recent call last>:
File “<string>”, line 492, in bevent
NameError: global name cos is not defined

Dunno, can’t really help you with that. Cos(sine) should be in Mathutils. Maybe your Pythonpath isn’t set or you can try adding “import Math” in Application.py.

None of the included scripts in my version run 492 lines so I can’t even find the string here. Someone else will have to help you.

%<

Ok, I reloaded the lsystem.py again because I think i left the older version in there. After I reloaded it, it works fine now.

P.S
Does anyone know where to find some tutorials about the lsystem?

http://marief.soler.free.fr/Monsite/lsystem_en.htm

%<