Traceback (most recent call last):
File “Application.py”, line 475, in bevent
File “lsystem.py”, line 298, in lsystem_build
File “lsystem.py”, line 233, in get_mesh
File “lsystem.py”, line 246, in get_branch
File “lsystem.py”, line 246, in get_branch
File “lsystem.py”, line 246, in get_branch
File “lsystem.py”, line 246, in get_branch
File “lsystem.py”, line 266, in get_branch
File “lsystem.py”, line 75, in add_leaf
AttributeError: ‘module’ object has no attribute ‘Const’
I think the Const Module is not in the Blender Module anymore
but its in the Blender._Blender (it was there in Belnder 2.27 actually where i had the same problem)
try to import it seperately
I am running this on Linux and after changing line 75. I still get the same error; I have tried both just changing the line inside blender and loading them manually after verifying that line 75 had been changed in a text editor. The error only occurs with leaves turned on.
Also the fixed seed version of the script reports this:
Run Python script “Application.py” …
Traceback (most recent call last):
File “/home/zaug/blender/Python/Application.py”, line 459, in bevent
Any suggestions (JimGuru ? ; ) ) on how fix this. Would importing the old “Const” be the solution ? I have a Python book, but am definitely a newbie on it, however I have done some programming and am willing to work on this.
This is my Favorite script !! and it would be nice to have it working in 2.28 which I compiled from source in order to make the World Forge script work.
Zaug
(Yes, the scratch compiled version runs World Forge but seems to not be able to find the supporting script for Fiber13.py)
It is still doing the same thing. What version of Python should I be running. Also I ran the file “Text” that is with the blend file from the above address and get this output:
Using a clean Global Dictionary.
Run Python script “Text” …
[‘ALL’, ‘BILLBOARD’, ‘DYNAMIC’, ‘HALO’, ‘INVISIBLE’, ‘LIGHT’, ‘OBCOL’, ‘SHADOW’, ‘SHAREDCOL’, ‘SHAREDVERT’, ‘TEX’, ‘TILES’, ‘TWOSIDE’]
I can’t understand why I keep getting the error about “const” as it is not even in the script.
I tried it under the 2.28 windows executable runing under wine and it stops on line 20:
from lsystem import *
I set the path to the script but since I loaded up the .blend file shouldn’t it find it since all of the scripts are loaded ? Sorry if I am overloking something obvious.
did you make the alt-p on the application.py file?
if not, use the data bloc of the text window
and select this script , application.py, and then
make alt-p.
:: not user friendly version ::
Guru, you should really re-save the 228 version of lsystem with Application.py opened in text window first - when I tried this version a couple of minutes ago, still in early morning hours and without putting in contacts, I altP’d a couple of times on the wrong script. I thought I’ve discovered a bug, so I went to make me some coffee to further investigate. Only after that I noticed I pressed on the wrong script. Then I thought - this one was hacked by JMS, there should be no error – gotta double check… Just imagine, I use blender from 1.6, and this confused me deeply, and how can such things confuse newer users … terrible …
(oh, I know :o I should read comments more carefully, but, then again …)
Yes, I have run the script alot in 2.23 to 2.27. I really think this is a Python implementation thing. I still cannot understand why I get the error about “Const” when it is not anywhere in the script after making the edit that jm explained at the beginning of this thread. How would I go about importing the modules that are left out of 2.28 ? Or is that not an option. Why would they have been left out unless, of course, they would interefere with the new things ?