Hi!
Background:
I have been using CPLEX through the python API smoothly on my PC (Ubuntu 22.04 LTS) and now I am trying to install CPLEX on my university's compute cluster for large scale computing (Red Hat Enterprise Linux 9.3). And this is where I encounter some resistance. I am hoping I simply overlooked some configuration and someone could kindly point it out to me here. Thanks!
Problem:
When calling model.solve (), an error was thrown:
docplex.mp.utils.DOcplexException: Cannot solve model: no CPLEX runtime found.
My code interacts with docplex API directly. But when I try to import cplex in python, I get the error mentioned in the title
ModuleNotFoundError: No module named 'cplex._internal._procedural'
The full trace is attached below (actual user path replaced by <user-path> for desensitization):
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/<user-path>/CPLEX_Studio2211/cplex/python/3.10/x86-64_linux/cplex/__init__.py", line 44, in <module>
from .aborter import Aborter
File "/<user-path>/CPLEX_Studio2211/cplex/python/3.10/x86-64_linux/cplex/aborter.py", line 13, in <module>
from ._internal import _procedural as _proc
File "/<user-path>/CPLEX_Studio2211/cplex/python/3.10/x86-64_linux/cplex/_internal/__init__.py", line 21, in <module>
from . import _ostream
File "/<user-path>/CPLEX_Studio2211/cplex/python/3.10/x86-64_linux/cplex/_internal/_ostream.py", line 17, in <module>
from ._procedural import check_status
ModuleNotFoundError: No module named 'cplex._internal._procedural'
Some observations:
Thanks in advance.
Best regards,
Yijie
------------------------------
Yijie Tao
------------------------------