Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using blocksqp with CasADi 3.1.1 from Python on Windows #1932

Closed
adbuerger opened this issue Jan 13, 2017 · 3 comments
Closed

Problem using blocksqp with CasADi 3.1.1 from Python on Windows #1932

adbuerger opened this issue Jan 13, 2017 · 3 comments

Comments

@adbuerger
Copy link

When I try to use blocksqp for solving an NLP in CasADi 3.1.1 from Python 2.7 (32bit) on Windows 7 (64bit), I get the following error:

Traceback (most recent call last):
  File "myfile.py", line 245, in <module>
    nlpsolver = ca.nlpsol("nlpsolver", "blocksqp", nlp)
  File "D:\casadi-py27-np1.9.1-v3.1.1\casadi\casadi.py", line 15088, in nlpsol
    return _casadi.nlpsol(*args)
RuntimeError: The assertion "handle!=0" on line 274 of file "/home/travis/build/
casadi/binaries/casadi/casadi/core/function/plugin_interface.hpp" failed.
PluginInterface::load_plugin: Cannot load shared library 'libcasadi_linsol_ma27.dll':
   (
    Searched directories: 1. casadipath from GlobalOptions
                          2. CASADIPATH env var
                          3. PATH env var (Windows)
                          4. LD_LIBRARY_PATH env var (Linux)
                          5. DYLD_LIBRARY_PATH env var (osx)
    A library may be 'not found' even if the file exists:
          * library is not compatible (different compiler/bitness)
          * the dependencies are not found
   )
  Tried 'D:\casadi-py27-np1.9.1-v3.1.1\casadi' :
    Error code (WIN32): 126
  Tried '' :
    Error code (WIN32): 126
  Tried '.' :
    Error code (WIN32): 126

The file is definitely in place. When I use {"linsol": "csparse}", csparse is found (though it's not working due to 'neig' not defined for N6casadi16CsparseInterfaceE).

On Ubuntu 16.04, the problem does not occur

@jgillis
Copy link
Member

jgillis commented Jan 13, 2017 via email

@adbuerger
Copy link
Author

adbuerger commented Jan 13, 2017

Ah ok sorry, I got confused, I saw ma27 being used in tests and examples, so I thought that it would be shipped with CasADi. Of course I had libhsl.so on Ubuntu, but not on Windows, so this was always working for me. Thanks for your quick answer!

@jgillis
Copy link
Member

jgillis commented Jan 13, 2017

I'd be trivial to ship, but this is not allowed..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants