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

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

Open
proshkin opened this issue Jun 24, 2023 · 1 comment
Assignees
Labels
Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general Help Needed Modeling/Usage problem Lang: Python Python wrapper issue OS: Windows Windows OS
Projects
Milestone

Comments

@proshkin
Copy link

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 Mizux self-assigned this Jun 24, 2023
@Mizux Mizux added Help Needed Modeling/Usage problem Lang: Python Python wrapper issue OS: Windows Windows OS labels Jun 24, 2023
@Mizux Mizux added this to the v9.7 milestone Jun 24, 2023
@Mizux
Copy link
Collaborator

Mizux commented Jun 24, 2023

-- 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 ^^;

@Mizux Mizux changed the title When building form source for Python, "Installing OR-Tools on your operating system" step failed When building from source for Python, "Installing OR-Tools on your operating system" step failed Jul 20, 2023
@Mizux Mizux added this to To do in ToDo via automation Jul 28, 2023
@Mizux Mizux modified the milestones: v9.7, v9.8 Jul 28, 2023
@Mizux Mizux moved this from To do to Stall in ToDo Jul 28, 2023
@Mizux Mizux added the Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general label Sep 26, 2023
@Mizux Mizux modified the milestones: v9.8, v9.9 Oct 19, 2023
@Mizux Mizux modified the milestones: v9.9, v10.0 Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doc: Optimization Site Issue related to https://developers.google.com/optimization/ or Documentation in general Help Needed Modeling/Usage problem Lang: Python Python wrapper issue OS: Windows Windows OS
Projects
ToDo
  
Stall
Development

No branches or pull requests

2 participants