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

Cannot import brainstorm #63

Closed
mAch17 opened this issue Oct 26, 2015 · 2 comments
Closed

Cannot import brainstorm #63

mAch17 opened this issue Oct 26, 2015 · 2 comments

Comments

@mAch17
Copy link

mAch17 commented Oct 26, 2015

I ran pip install -r requirements and python setup.py install
Here is what I see :

import brainstorm
Traceback (most recent call last):
File "", line 1, in
File "brainstorm__init__.py", line 6, in
from brainstorm.structure import Network, generate_architecture
File "brainstorm\structure__init__.py", line 4, in
from brainstorm.structure.network import Network
File "brainstorm\structure\network.py", line 13, in
from brainstorm.handlers import default_handler
File "brainstorm\handlers__init__.py", line 4, in
from brainstorm.handlers.numpy_handler import NumpyHandler
File "brainstorm\handlers\numpy_handler.py", line 7, in
from brainstorm.handlers import _cpuop
ImportError: cannot import name _cpuop

@flukeskywalker
Copy link
Collaborator

Perhaps you are trying to import brainstorm while in the brainstorm directory? Try changing the directory.

If you'd like to import it in the brainstorm directory, you should do python setup.py build_ext --inplace first.

@mAch17
Copy link
Author

mAch17 commented Oct 26, 2015

yes, that was the problem. It works now. Thanks a lot.

@mAch17 mAch17 closed this as completed Oct 26, 2015
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

2 participants