Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ImportError: cannot import name IafCell" when running test.sh under c302 #15

Closed
slarson opened this issue Jun 22, 2014 · 5 comments
Closed

Comments

@slarson
Copy link
Member

slarson commented Jun 22, 2014

unknown1040f3847b74:c302 slarson$ ./test.sh
Traceback (most recent call last):
File "c302_A.py", line 3, in
import parameters_A as params
File "/Users/slarson/Documents/CElegansNeuroML/CElegans/pythonScripts/c302/parameters_A.py", line 1, in
from neuroml import IafCell
ImportError: cannot import name IafCell

I am using the latest version of libNeuroML built from its current development branch. What version should I be using @pgleeson ?

@pgleeson
Copy link
Member

Can you test that the examples run in your development branch of libNeuroML? Try:

cd libNeuroML/neuroml/examples/
python build_network.py

There should be an import for IafCell in build_network.py

@pgleeson
Copy link
Member

Sorry, meant https://github.com/NeuralEnsemble/libNeuroML/blob/development/neuroml/examples/build_network.py, but IafCell (not the older IaFCell) is here too.

Think you have an old version of libNeuroML lurking around...

@slarson
Copy link
Member Author

slarson commented Jul 10, 2014

OK I got past that one. There were old versions lurking. Thanks!

@slarson slarson closed this as completed Jul 10, 2014
@aribrich
Copy link
Contributor

Is there another reason IafCell might not be found? I am also trying to run c302_A.py, and have the same import error. I checked the pip upgrade to make sure I have the latest version, and I do. Any ideas?

@pgleeson
Copy link
Member

pgleeson commented Sep 4, 2014

It's best to install libNeuroML directly from source using:

git clone https://github.com/NeuralEnsemble/libNeuroML.git
cd libNeuroML
git checkout development
sudo python setup.py install 

This version has reduced the dependencies on numpy to only require that if you use some of the advanced functionality.

I'll be updating the docs and the pip version in the next few days when we make the NeuroML v2beta3 release...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants