The interpreter project

Get out of trouble

  gray line


About me

About shape grammars


gray line

The interpreter project

Set up

Create a grammar

Run a grammar

Get out of trouble

gray line

The Yingzao fashi project

gray line
Contact me

i (at) andrew (dot) li

gray line

Conway error

If things are not working the way you think they should, see whether your problem is here.

You get an error message at the bottom of the Python editor

Message: No module named <module_name>
Probably one of the Python module search paths was not set. Check that you have set the search paths correctly. (Details here.)

Message: 'module' object has no attribute '_getframe'
The ‘Frames Enabled’ box was not checked. Check it. (Details here.)

File "Z:\…\<script>.py", line 1

SyntaxError: unexpected token <some_word>

This problem is difficult to describe and execute precisely, but easy to understand. Probably you accidentally typed something into the script, and now the script doesn’t make sense. This can happen when you think you’re typing into the command line, but the cursor is in the script.

To fix it, delete whatever got typed into ‘<script>.py’. This will usually be at the beginning of the first line, before the first word (which is almost always ‘from’ or ‘import’). If there is a space in front of the first word, delete the space too. Save the file.

If this makes you nervous, here is another approach. Close the corrupted script. Find your archive copy of the package, and use a clean copy of ‘<script>.py’ to overwrite the corrupted copy. Reset the Python script engine (Tools / Reset Script Engine). Reopen the script.

This is a normal error; it happens to me too. Future versions will have an interface where this can’t happen.

Nothing is obviously wrong

Check that you followed the ‘Tips on drawing shapes’.

If all else fails

Restart Rhino.

And if that doesn’t work

Write to me.