cylp-docker's People
Forkers
tkralphscylp-docker's Issues
Can't import CYLP
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?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.