Issue403

Title Cannot import numpy
Priority bug Status unread
Superseder Nosy List orSolocate
Assigned To Keywords Error : ImportError No module named

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

Files
File name Uploaded Type Edit Remove
numpy_test_py.py orSolocate, 2018-06-03.10:29:24 text/plain
Messages
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-06-03 10:29:25orSolocatecreate