Skip to content
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

Cython script fails #6

Open
mlliarm opened this issue May 13, 2023 · 0 comments
Open

Cython script fails #6

mlliarm opened this issue May 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mlliarm
Copy link
Owner

mlliarm commented May 13, 2023

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.

@mlliarm mlliarm self-assigned this May 13, 2023
@mlliarm mlliarm added the bug Something isn't working label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant