Topic: Running Python Script in Rhino

As part of a introduction to programming college course my partner and are writing a program that uses rhino to graph any polynomial function in 3dimensions. We have our code written and, to our knowledge, the code is sound. However there is some trouble running the code in Rhino. When we try to run the code using the commnd RunPythonScript the following error shows up:

Exception Error:
Message: No module named copy

Traceback (most recent call last):
line 1, in <module>, "/Users/Danlittle/Dropbox/Final Project Programming/Final Project4.py"

This is referring to the copy module we imported in order to make our code. Now we did some digging and we found that Rhino does not recognize modules automatically, that you have to link to them some how. More is explained here:

http://python.rhino3d.com/threads/246-T ... hon-module

However, we can't find our copy module! We assumed that it would be saved as copy.py, however a full computer search turns up no results. We did find a copy.pyo and copy.pyc. Should we be referring to that??? And on top of that, we don't understand the code that it uses to tell Rhino to refer to that module at its particular filepath. Could someone please give us some assistance on this matter? Thanks

Dan

P.S.  I've attached the file if anyone wants to take a look smile

Post's attachments

Applications To Structures in Rhino.zip 4.81 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Thumbs up