parallel_machine_scheduling icon indicating copy to clipboard operation
parallel_machine_scheduling copied to clipboard

problem in runnig setup.py

Open Heliaemami opened this issue 4 years ago • 3 comments

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"

Heliaemami avatar May 08 '20 20:05 Heliaemami