GithubHelp home page GithubHelp logo

cylp-docker's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tkralphs

cylp-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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.