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 multiarray #2

Open
HonzaSi opened this issue Sep 12, 2014 · 0 comments
Open

ImportError: cannot import name multiarray #2

HonzaSi opened this issue Sep 12, 2014 · 0 comments

Comments

@HonzaSi
Copy link

HonzaSi commented Sep 12, 2014

Hi,

I would like to compile python following your example, however, after trying various things, I was not able to get workable frozen output with numpy.

I'm working in a shared environment, so I have most of the stuff at non-standard locations.

First, I tried to run the example as is. This was not successful. I believe that the reason is that I'm using openblas and I was not able to configure the site.cfg for numpy 1.6.2 appropriately.

Since I was able to build python 2.7.8 with numpy 1.8.2 before, I tried to replace the versions you provided with the newer ones. In this case, I got both hello and helloFrozen compiled. For hello, I can import numpy in the interactive mode and everything works. However, for helloFrozen, when I import numpy, I get a message saying "ImportError: cannot import name multiarray".

I believe that the reason is that there is no multiarray.o file in the numpy build directory, there is just a multiarray.so file, but I have no idea how can I create it.

BTW, I also had to comment out the init_sort() from numpy_builtin.h to make it compile with the new numpy version. Do you think that this could cause any harm?

Thanks for help.

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

1 participant