Skip to content

Cython script fails #6

@mlliarm

Description

@mlliarm

After building the module successfully with no errors (see #5), I run the example:

python3 create_matrix_new.py 128 1 1

Result:

Traceback (most recent call last):
  File "/home/milia/Documents/dev/python/mixmax-py/src/cython/create_matrix_new.py", line 30, in <module>
    from create_matrix_fast3 import create_matrix, create_matrix_three_params
ModuleNotFoundError: No module named 'create_matrix_fast3'

But:

$ ll
total 3284
drwxr-xr-x 3 milia milia    4096 May 13 06:03 build
-rw-r--r-- 1 milia milia  823330 May 13 06:07 create_matrix_fast3.c
-rw-r--r-- 1 milia milia 2498712 May 13 06:18 create_matrix_fast3.o
-rw-r--r-- 1 milia milia    1868 May 13 06:07 create_matrix_fast3.pyx
-rw-r--r-- 1 milia milia    8759 May 13 05:36 create_matrix_new.py
-rw-r--r-- 1 milia milia       0 May 13 05:36 __init__.py
-rw-r--r-- 1 milia milia    1684 May 13 05:36 run_tests.py
-rw-r--r-- 1 milia milia    1112 May 13 05:36 setup.py
drwxr-xr-x 3 milia milia    4096 May 13 05:57 src

The module *.o wasn't there, I copied it from the build/* folders.

Not sure what's going wrong here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions