-
Notifications
You must be signed in to change notification settings - Fork 50
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
python setup.py build_ext error: Cython.Compiler.Errors.CompileError: parse_bed.pyx #81
Comments
I'm having the exact same problem, was a solution found? |
Hi @alleneli , Unfortunately no, I did not find a solution, and was not able to get the program to install. |
Shoot, I tried reverting to an older version of Cython that tends to work better with Python 2, but that led to another suite of issues. If I make any progress I will report back here. |
I found a workaround, someone created this: https://structure-threader.readthedocs.io/en/latest/ and it works perfectly in my M1 Mac. |
Awesome, thank you @pkmnsandy! |
in parse_bed.pyx you need to put : Nbytes = Nindiv//4+(Nindiv%4>0)*1 (double //), not Nbytes = Nindiv/4+(Nindiv%4>0)*1, then in each .py file put print ( ), i.e. parentheses in each print |
Original poster was using python 2, but if you are using python 3, you can try https://github.com/jashapiro/fastStructure/tree/py3 This fix wasn't incorporated into the main branch. But even with this py3 branch, I had to fix a couple additional things which David919110 suggested (missing parentheses for print () in fastStructure.pyx and parse_bed.pyx and specify integer division // instead of / in parse_bed.pyx. Here is the patch:
|
I am having trouble installing fastStructure (cloned today) on a MacOS (Ventura 13.5). I've followed all instructions from the README, and have installed all necessary dependencies. I can give details if needed, or if that would help please let me know.
The crash occurs when trying to compile the main cython scripts.
Error message:
Some details:
python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2
GSL-2.7 installed from gnu.org
numpy installed by pip
Cython installed by pip
/Library/Frameworks/Python.framework/Versions/2.7/bin/Cython
Thank you for any help.
The text was updated successfully, but these errors were encountered: