initialization of multiarray raised unreported exception python
Question: I am a new programmer who is picking up python. I recently am trying to learn
about importing csv files using numpy. Here is my code:

    
    
    import numpy as np
    x = np.loadtxt("abcd.py", delimiter = True, unpack = True)
    print(x)
    

The idle returns me with:

    
    
    >> True
    >> Traceback (most recent call last):
    >>  File "C:/Python34/Scripts/a.py", line 1, in <module>
        import numpy as np
    
    >>  File "C:\Python34\lib\site-packages\numpy\__init__.py", line 180, in <module>
        from . import add_newdocs
    
    >>  File "C:\Python34\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
        from numpy.lib import add_newdoc
    
    >>  File "C:\Python34\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
        from .type_check import *
    
    >>  File "C:\Python34\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
        import numpy.core.numeric as _nx
    
    >>  File "C:\Python34\lib\site-packages\numpy\core\__init__.py", line 14, in <module>
        from . import multiarray
    
    >> SystemError: initialization of multiarray raised unreported exception
    

Why do I get the this system error and how can I remedy it?


Answer: As there is an error at the import line, your installation of numpy is broken
in some way. My guess is that you have installed numpy for python2 but are
using python3. You should remove numpy and attempt a complete re-install,
taking care to pick the correct version.

There are a few oddities in the code: You are apparently reading a python
file, `abcd.py`, not a csv file. Typically you want to have your data in a csv
file.

The delimiter is a string, not a boolean, typically `delimiter=","`
([Documentation](http://docs.scipy.org/doc/numpy-
dev/reference/generated/numpy.loadtxt.html))

    
    
    import numpy as np
    x = np.loadtxt("abcd.csv", delimiter = ",", unpack = True)
    

