Issue403

Title Cannot import numpy
Priority bug Status resolved
Superseder Nosy List orSolocate
Assigned To Keywords

Created on 2018-06-03.10:29:25 by orSolocate, last changed by kayhayen.

Files
File name Uploaded Type Edit Remove
numpy_test_py.py orSolocate, 2018-06-03.10:29:24 text/plain
Messages
msg2486 (view) Author: kayhayen Date: 2018-08-23.22:15:44
Sorry for never responding.

You should try again with newer Nuitka, and proper invocation using "python -m 
nuitka", your issue should be gone.

Resolving this as issue tracking is migrating to Github and I am assuming this 
resolves it.

Yours,
Kay
msg2413 (view) Author: orSolocate Date: 2018-06-03.10:29:24
Hey,
I am having issues compiling my python script which imports numpy.

Using python3.6, Anaconda3 env, nuitka version0.5.29.3.
code runs well on Pycharm/IDLE/etc..

when i compile with nuikta using:

nuitka --recurse-all numpy_test_py.py

I get many warnings during compilation, and eventually it gets stuck/freeze during 
compilation..

I found out that people were using this the recure-directory as the numpy PATH 
received from numpy.get_include(), so i tried this command instead, which retrieve 
no errors:

nuitka  --recurse-to=numpy  --recurse-directory C:\ProgramData\Anaconda3\Lib\site-
packages\numpy\core\include  numpy_ts
t_py.py

though when i run the program i get the following error:

Traceback (most recent call last):
  File "C:\Users\user\WORK\DEV\Nuitka\KOBI\numpy_test_py.py", line 7, in <module
>
    hello_world()
  File "C:\Users\user\WORK\DEV\Nuitka\KOBI\numpy_test_py.py", line 4, in hello_world
    a=np.array([1,2,3.4])
AttributeError: module 'numpy' has no attribute 'array'


Could someone help me with this?
Thanks,
History
Date User Action Args
2018-08-23 22:15:44kayhayensetstatus: unread -> resolved
messages: + msg2486
keyword: - Error : ImportError No module named
2018-06-03 10:29:25orSolocatecreate