google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
11.1k stars 2.11k forks source link

When building from source for Python, "Installing OR-Tools on your operating system" step failed #3833

Open proshkin opened 1 year ago

proshkin commented 1 year ago

What version of OR-Tools and what language are you using? Version: main Language: Python

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) CP-SAT

What operating system (Linux, Windows, ...) and version? Windows 11 Enterprise 10.0.22621

What did you do? Following instructions from "Building from source OR-Tools Python on Windows"

Steps to reproduce the behavior: Using Visual Studio Community 2022 Preview 17.7.0 Preview 2.0 x64 prompt running as Administrator:

  1. cmake -S . -B build -DBUILD_DEPS=ON -DBUILD_PYTHON=ON
  2. cmake --build build --config Release --target ALL_BUILD -j -v
  3. cmake --build build --config Release --target RUN_TESTS -v
  4. cmake --build build --config Release --target INSTALL -v (Failed, see install_python.log)

What did you expect to see INSTALL step to succeed What did you see instead? INSTALL step is failed. See install_python.log

Make sure you include information that can help us debug (full error message, model Proto).

Anything else we should know about your project / environment configure_build_python.log build_source_python.log test_python.log install_python.log

Mizux commented 1 year ago

-- Installing: C:/Program Files (x86)/ortools/share/minizinc/solvers/ortools.msc CMake Warning (dev) at python/python-install.cmake:29: Syntax Warning in cmake code at column 36 Argument not separated from preceding token by whitespace. Call Stack (most recent call first): cmake_install.cmake:303 (include) This warning is for project developers. Use -Wno-dev to suppress it. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help EXEC : error : invalid command 'Files' [C:\Users\prosh\PycharmProjects\or-tools\build\INSTALL.vcxproj]

EXEC : error : invalid command 'Files' [C:\Users\prosh\PycharmProjects\or-tools\build\INSTALL.vcxproj]

Seems a "Program Files" has been split in two commands ^^;