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

Unable to import multiarray (Trac #33) #517

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 2 comments
Closed

Unable to import multiarray (Trac #33) #517

numpy-gitbot opened this issue Oct 19, 2012 · 2 comments
Labels

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/33 on 2006-03-11 by unknown, assigned to unknown.

Using numpy 0.9.5
First I tried to import numeric, this gave a process crash.

Then I tried the following, which again crashed.

C:\Python24\Lib\site-packages\numpy\core>python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import multiarray

C:\Python24\Lib\site-packages\numpy\core>

I could copy the Windows XP response.

Colin W.

@numpy-gitbot
Copy link
Author

@teoliphant wrote on 2006-03-11

This is a known issue. It is unclear how to resolve it. Do not import multiarray from the installed directory like this.

@numpy-gitbot
Copy link
Author

@teoliphant wrote on 2006-03-12

Flag to disable re-running of the initialization code changes this to an error message instead of a segfault. It is still not supported to import multiarray from the core directory like this (it is not ever recommended to import multiarray directly anyway as it is an internal package implementation detail and should not be relied on).

I tracked the segfault to the format_re = re.compile(...) line in _internal.py where the segfault was due to the string type tp_as_number table being replaced with the generic_scalar tp_as_number table. I don't see how the code could make this happen.

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

No branches or pull requests

1 participant