8000 Numpy crashes with -OO · Issue #5148 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Numpy crashes with -OO #5148

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

Closed
bpires-ualberta opened this issue Oct 4, 2014 · 1 comment · Fixed by #5149
Closed

Numpy crashes with -OO #5148

bpires-ualberta opened this issue Oct 4, 2014 · 1 comment · Fixed by #5149
Labels

Comments

@bpires-ualberta
Copy link

Hello, I ran $ python -OO -c 'import numpy' on a fresh miniconda install (after $ conda install numpy) and I got the following output:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/obernardo/miniconda/lib/python2.7/site-packages/numpy/__init__.py", line 191, in <module>
    from . import ma
  File "/Users/obernardo/miniconda/lib/python2.7/site-packages/numpy/ma/__init__.py", line 49, in <module>
    from . import extras
  File "/Users/obernardo/miniconda/lib/python2.7/site-packages/numpy/ma/extras.py", line 438, in <module>
    :np.apply_over_axes.__doc__.find('Notes')].rstrip() + \
AttributeError: 'NoneType' object has no attribute 'find'

Running $ python gives me the following output (I am running OS X Mavericks on a Dec-2010 MacBook Pro):

Python 2.7.8 |Continuum Analytics, Inc.| (default, Aug 21 2014, 15:21:46) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org

Finally, running python -c 'import numpy' works normally. I hope this is enough information for you all, but please let me know if you need more. (It's the second bug report I submit in my life, and the first one was about a typo in documentation!)

Thanks a lot for making numpy available to us, it is a very, very useful tool that works greatly for me.

charris added a commit to charris/numpy that referenced this issue Oct 4, 2014
This consists of checking for a docstring equal to None and skipping two
tests that require docstrings.

Closes numpy#5148.
@charris
Copy link
Member
charris commented Oct 4, 2014

Yeah, that's a bug. It's trying to fix up an empty docstring. Should be fixed by #5149.

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

Successfully merging a pull request may close this issue.

2 participants
0