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

problem in runnig setup.py #1

Open
Heliaemami opened this issue May 8, 2020 · 3 comments
Open

problem in runnig setup.py #1

Heliaemami opened this issue May 8, 2020 · 3 comments

Comments

@Heliaemami
Copy link

Hi, I am new to programming and I am trying to use caseypen/parallel_machine_scheduling from GitHub ( " https://github.com/caseypen/parallel_machine_scheduling " ). Part of the code in the heuristic model folder is implemented in C and Python-API is wrapped with Cython package. But I have confronted these problems:
I have tried both minGw32 and mingw-w64 as a cgg g++ compiler for cython on both python2.7 and 3.6 version, as well as, Visual studio c++ build tools and windows SDK compatible version considering each python versions. Unfortunately. none of them have worked properly using setup.py for building python extension (.pyd) file which was needed. Each time a specific error pops up. I wonder if I'm doing sth wrong or the code itself has issues?

P.S. when I omit these lines ( include_dirs = [numpy.get_include() ) from setup.py which was in previous versions of the code history in Github but not in the latest cleared up one, following error arises (which is when I used visual studio, however similar error arises after assigning MinGW as the main compiler) :
"fatal error c1083: cannot open include file: 'numpy/arrayobject.h': no such file or directory error: command 'c:\program files (x86)\microsoft visual studio\2019\community\vc\tools\msvc\14.25.28610\bin\hostx86 \x64\cl.exe' failed with exit status 2"

@caseypen
Copy link
Owner

caseypen commented May 8, 2020

Hi Heliaemami,
Thanks for concerning. Honestly, I never tried it on Windows/Mac environment. It is suggested to use the Linux system to try. Also, based on my testing, the MIP model is faster to solve the problem.
Good luck!

Best regards,

Chen

@Heliaemami
Copy link
Author

Heliaemami commented May 8, 2020 via email

@caseypen
Copy link
Owner

caseypen commented May 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants