You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to pull the docker image and then run the sample problem for the docs.
Steps to reproduce:
Dockerfile:
FROM coinor/cylp
RUN apt-get update
COPY mwe.py ./
RUN python3 mwe.py
mwe.py
from CyLP.cy import CyClpSimplex
s = CyClpSimplex()
s.readMps('../input/netlib/adlittle.mps')
s.initialSolve()
Build with docker build .
Expected behavior
Docker builds sucessfully, which includes running mwe.py, which solves a sample problem.
Actual behavior
Docker build fails.
Step 5/11 : RUN python3 mwe.py
---> Running in 2e683a4a1f37
Traceback (most recent call last):
File "mwe.py", line 1, in <module>
from CyLP.cy import CyClpSimplex
ModuleNotFoundError: No module named 'CyLP'
The command '/bin/sh -c python3 mwe.py' returned a non-zero code: 1
If I change the case to cylp (different to the docs) then I get a different import error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/cbc/CyLP/cylp/cy/__init__.py", line 1, in <module>
from .CyCoinIndexedVector import CyCoinIndexedVector
ModuleNotFoundError: No module named 'cylp.cy.CyCoinIndexedVector'
Can you please show what the contents of myscript.py was in the example, so I can see how it differs from the cylp example?
The text was updated successfully, but these errors were encountered:
I'm trying to pull the docker image and then run the sample problem for the docs.
Steps to reproduce:
Dockerfile
:mwe.py
Build with
docker build .
Expected behavior
Docker builds sucessfully, which includes running
mwe.py
, which solves a sample problem.Actual behavior
Docker build fails.
If I change the case to
cylp
(different to the docs) then I get a different import error:Can you please show what the contents of
myscript.py
was in the example, so I can see how it differs from the cylp example?The text was updated successfully, but these errors were encountered: