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

ortools prints on import #4579

Open
DavideCanton opened this issue Mar 3, 2025 · 2 comments
Open

ortools prints on import #4579

DavideCanton opened this issue Mar 3, 2025 · 2 comments
Assignees
Labels
Lang: Python Python wrapper issue
Milestone

Comments

@DavideCanton
Copy link

DavideCanton commented Mar 3, 2025

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

What operating system (Linux, Windows, ...) and version?
This problem happens only on windows.

What did you do?
Just import ortools

What did you expect to see
No output

What did you see instead?
Some prints (I suppose for debug purpose) executed by the _load_ortools_libs in the ortools.__init__ module.

For example:

load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\zlib1.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\abseil_dll.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\utf8_validity.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\re2.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\libprotobuf.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\highs.dll...
load C:\Users\CantonDavide\miniconda3\envs\mamba3.11\Lib\site-packages\ortools\.libs\ortools.dll...
@CaselIT
Copy link

CaselIT commented Mar 3, 2025

seems like it was added in e670dcc

@Mizux Mizux self-assigned this Mar 3, 2025
@Mizux Mizux added the Lang: Python Python wrapper issue label Mar 3, 2025
@Mizux Mizux added this to the v9.13 milestone Mar 3, 2025
@Mizux
Copy link
Collaborator

Mizux commented Mar 3, 2025

print(f"load {dll_path}...")

On my way to replace it by logger.debug() from logging...
ref: https://docs.python.org/3/library/logging.html

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

No branches or pull requests

3 participants