Skip to content

ImportError: DLL load failed while importing _scs_direct #47

@hanyucc

Description

@hanyucc

I am building scs for Python 3.8 on Windows, and I keep getting this error when trying to import scs.

Traceback (most recent call last):
  File "D:/xxx", line 4, in <module>
    import _scs_direct
ImportError: DLL load failed while importing _scs_direct: The specified module could not be found.

I linked NumPy to OpenBLAS, so scs should be building with it as well. I'm not sure what DLL it is looking for, but I did put C:/OpenBLAS/bin in my Path variable. I also looked inside the site-packages folder, and there does exist a file named _scs_direct.cp38-win_amd64.pyd, not sure if it's related though.

This is what NumPy outputs currently:

>>> import numpy
>>> from numpy.distutils.system_info import get_info
>>> blas_info = get_info('blas_opt')
>>> print(blas_info)
{'libraries': ['libopenblas', 'libopenblas'], 'library_dirs': ['C:/OpenBLAS/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)], 'runtime_library_dirs': ['C:/OpenBLAS/lib']}
>>> lapack_info = get_info('lapack_opt')
>>> print(lapack_info)
{'libraries': ['libopenblas', 'libopenblas'], 'library_dirs': ['C:/OpenBLAS/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)], 'runtime_library_dirs': ['C:/OpenBLAS/lib']}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions