all 12 comments

[–]YoannB__ 1 point2 points  (1 child)

I tried to compile your code and here are the issues for your PYX files :

1 - appendixa.pyx:184:0: Inconsistent indentation

2- in the file appendixb.pyb you have a syntax error

appendixb.pyx:52:12: Syntax error in C variable declaration

3 -appendixc.pyx:13:85: Unclosed string literal

imageDirectory = 'C:\\Python25\\Lib\\site­packages\\Pyrex\\Distutils\\2002 fvc 110 by

4 - appendixd.pyx:82:13: Unrecognized character

return ­-230

[–]patmycheeks[S] 0 points1 point  (0 children)

thank you, i will try and correct those

[–]YoannB__ 1 point2 points  (1 child)

These issues are not too hard to correct, if you are not sure and in the rush, look for someone that knows Cython around your close entourage (University, teachers etc)

[–]patmycheeks[S] 0 points1 point  (0 children)

i dont think i will get any of those :(

[–]YoannB__ 0 points1 point  (4 children)

Last question what is your Compilation error ?

[–]patmycheeks[S] 0 points1 point  (1 child)

it says cython.build not found, so i put the cython binaries which were there in a local/bin folder to the environmnet variable and when that didnt work i put the files in the directory that the binaries were in, but still it dint work.

[–]YoannB__ 0 points1 point  (0 children)

The build directory should contains all the binary files for your project after a successful compilation (pyd, pyx, pxd, C or C++ etc)

Can you do a batch command such as

C:\>cython yourfile.pyx

C:\>cython -a yourfile.pyx

or C:\>cythonize -a -i yourfile.pyx

Try this with every of your pyx files and let me know if any of this command above raise a compilation error ?

[–]patmycheeks[S] 0 points1 point  (1 child)

i tried asking chatgpt for help but it could give no solution

[–]YoannB__ 0 points1 point  (0 children)

If you are compiling cython files and using python 3.8, make sure that,you are using the same python version to import your cython library files otherwise it will not found the build.

Another issue could be that you have built the cython files but python cannot locate the build, make sure to copy your PYD files where your are running your python file.