-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problem compiling the code #1
Comments
Hi, did you make sure to follow the instructions specified here? I am not familiar with the errors you mentioned, so please first make sure that cython is insatlled and the code is exactly as in the instructions. Please reply if it still doesn't work. |
I'll leave my solution for anyone in the future who runs into this problem. I too got this error, and after some troubleshooting, I realized that my #include <stdio.h>
#include "examples.h" Also, I didn't end up creating You might also need to create a Hope this helps! |
I clone the repo, however, I have the same problem as @StanleyLG.
|
I'm getting a similar error after running make on the cloned repo.
My specs: Windows 10, Python 3.7.4, Cython 0.29.20, gcc version 9.2.0 (MinGW distribution) |
@os1315 This tutorial was created in linux, so I guess there might be some compatibility issues when using Windows. Sorry I can't give a better answer. |
I had a few errors in this. First, running main.py needs the path to the created .so file. In my case, on an RPi4 running Ubuntu20, and python 3.7, the file is pyexamples.cpython-37m-arm-linux-gnueabihf.so. To find the search path, you can follow these directions: https://realpython.com/lessons/module-search-path/ For simplicity, I added this line to the top-level makefile: So far so good, but when I run main.py, I get this error:
Any ideas what could be going wrong? Thank you for the tutorial, it's been easy to follow so far. |
Hi when i tried to use python3 setup.p build_ext --inplace on my RPI, it returned an error
"cannot find -lexamples" , "collect2:error:ld returned 1 exit status", error:command 'arm-linux-gnueabihf-gcc' failed with exit status 1.
When i tried it on Windows 10, it returned 'fatal error C1083, io.h' not found as well as 'cl.exe failed with exit status 2'.
Is it possible you could clear my doubts, this is the first time i'm trying out cython.
Appreciate if you could take some time and i look forward to the reply..
The text was updated successfully, but these errors were encountered: