dictlearn icon indicating copy to clipboard operation
dictlearn copied to clipboard

Issue when importing dictlearn

Open f9999 opened this issue 5 years ago • 0 comments

Hi, I encountered the following error when importing dictlearn. I have tried to reinstall the package with python setup.py install and python setup.py build_ext but still gives an error.

import dictlearn
Traceback (most recent call last):

  File "/home/david/dictlearn/src/dictlearn/dictlearn/__init__.py", line 84, in <module>
    ___SETUP___

NameError: name '___SETUP___' is not defined


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<ipython-input-7-e8373b45b542>", line 1, in <module>
    import dictlearn

  File "/home/david/dictlearn/src/dictlearn/dictlearn/__init__.py", line 92, in <module>
    from .algorithms import (

  File "/home/david/dictlearn/src/dictlearn/dictlearn/algorithms.py", line 6, in <module>
    from . import optimize, inpaint, sparse

  File "/home/david/dictlearn/src/dictlearn/dictlearn/optimize.py", line 10, in <module>
    from . import sparse, preprocess

  File "/home/david/dictlearn/src/dictlearn/dictlearn/sparse.py", line 13, in <module>
    from ._dictlearn import _dictlearn

  File "/home/david/dictlearn/src/dictlearn/dictlearn/_dictlearn/__init__.py", line 1, in <module>
    from . import _dictlearn

ImportError: /home/david/dictlearn/src/dictlearn/dictlearn/_dictlearn/_dictlearn.cpython-36m-x86_64-linux-gnu.so: undefined symbol: omp_get_thread_num

f9999 avatar Oct 22 '20 16:10 f9999