NameError: name 'np' is not defined #137
Comments
@mattdbrown Thanks for reporting. How are you installing py-earth? I suspect this is an installation issue. |
@jcrudy - Installing it exactly as described on the readme, but just used my user library so didn't have to sudo. I have sudo access, but generally prefer to install in my own local python libs directory. |
@mattdbrown Hmm, it's hard to say what is going on. I'll need more info. Here are a bunch of questions:
|
@jcrudy - Sure!
|
@mattdbrown One thing that stands out is that you have a pretty old version of scipy. Are you able to upgrade to a newer version, such as 0.18.1? I think that might at least fix your import problem. Some of the code in pyearth relies on the cython_lapack module of scipy, which wasn't added until I think 0.17.0 or so. |
@jcrudy - Ahh, that makes sense, I'll try to update and see if that fixes my issue. |
@jcrudy - seems to be working fine on both issues, now. Maybe making that version dependency explicit would be a good thing. Thanks! |
Been trying to use py-earth and this issue keeps popping up, here's a traceback:
It might be related to another error I'm experiencing - an ImportError that I get the first time I try to import the module. Second time goes through, so I just catch the ImportError the first time, and then import again. Here's a traceback on that.
The text was updated successfully, but these errors were encountered: