Giter VIP home page Giter VIP logo

coin-or.github.io's Introduction

coin-or

Repository for organization-wide discussions and other organization documents.

coin-or.github.io's People

Contributors

svigerske avatar tkralphs avatar xmunoz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coin-or.github.io's Issues

Building with Visual Studio in MSys2: wrong version of link

I use a visual studio command prompt, instead of vcvarsall.bat to set up the environment .
Following the other instructions under the heading Building with Visual Studio in MSys2 on
https://coin-or.github.io/user_introduction.html#building-with-visual-studio-in-msys2
I get the following result (which shows the wrong version of link)

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>set PATH=C:\msys64\usr\bin;%PATH%
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>bash
Community>which link
/usr/bin/link
Community>

If I do the following, I get the correct version of link:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>set PATH=%PATH%;C:\msys64\usr\bin
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>bash
Community>which link
/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/HostX86/x86/link
Community>

cannot import name 'cydot' from partially initialized module 'cylp.cy.CyClpSimplex'

I cannot run example from this page: https://coin-or.github.io/CyLP/modules/CyCoinPackedMatrix.html.
OS: Win10
Python 3.9
cylp 0.92.1

More info below:

PS C:\...\>

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19044.0 Microsoft Windows NT 10.0.19044.0


PS C:\...\> python --version
Python 3.9.0
PS C:\...\> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cylp
>>> cylp.__version__
'0.92.1'
>>> import cylp.cy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\app\python39\lib\site-packages\cylp\cy\__init__.py", line 2, in <module>
    from .CyClpSimplex import CyClpSimplex
  File "cylp\\cy\\CyClpSimplex.pyx", line 1, in init cylp.cy.CyClpSimplex
  File "cylp\\cy\\CyClpPrimalColumnPivotBase.pyx", line 1, in init cylp.cy.CyClpPrimalColumnPivotBase
  File "cylp\\cy\\CyClpDualRowPivotBase.pyx", line 1, in init cylp.cy.CyClpDualRowPivotBase
  File "cylp\\cy\\CyOsiSolverInterface.pyx", line 1, in init cylp.cy.CyOsiSolverInterface
  File "cylp\\cy\\CyCbcModel.pyx", line 1, in init cylp.cy.CyCbcModel
  File "cylp\\cy\\CyOsiCuts.pyx", line 3, in init cylp.cy.CyOsiCuts
  File "c:\app\python39\lib\site-packages\cylp\py\__init__.py", line 1, in <module>
    from . import pivots
  File "c:\app\python39\lib\site-packages\cylp\py\pivots\__init__.py", line 3, in <module>
    from .PositiveEdgePivot import PositiveEdgePivot
  File "c:\app\python39\lib\site-packages\cylp\py\pivots\PositiveEdgePivot.py", line 10, in <module>
    from cylp.cy.CyClpSimplex import cydot
ImportError: cannot import name 'cydot' from partially initialized module 'cylp.cy.CyClpSimplex' (most likely due to a circular import) (c:\app\python39\lib\site-packages\cylp\cy\CyClpSimplex.cp39-win_amd64.pyd)    
>>>

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.