Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

ScriptEditor and GH python component randomly fail to import numpy

$
0
0

I’m working on a python script in a GH component.

When I run the typical:

# r: numpy

import numpy

I sometimes get the following error message :
“Error Importing Numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there.”

The only resolution I’ve found so far is to manually remove all numpy related files from the .rhinocode directory. They are then reinstalled with the “# r:” method the next time I run the script.
Then, everything works for a few days, and then the message reappears.
The error occurs both in GH and in ScriptEditor

To call this issue aggravating is an understatement.
Is there a fix I don’t know about?
Is there any reason this should happen spontaneously?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles