dictlearn icon indicating copy to clipboard operation
dictlearn copied to clipboard

Error importing dictlearn

Open JorgeNustes opened this issue 5 years ago • 0 comments

Hi, I am getting the same error after running import dictlearn. I install the package using python setup.py install and tried with python setup.py build_ext but still gives an error.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/content/dictlearn/dictlearn/__init__.py in <module>()
     83 try:
---> 84     ___SETUP___
     85     print('Installing dictlearn...')

NameError: name '___SETUP___' is not defined

<ipython-input-5-e8373b45b542> in <module>()
----> 1 import dictlearn

/content/dictlearn/dictlearn/__init__.py in <module>()
     90     #### TODO ####
     91     # Speed up imports: This is way to slow!
---> 92     from .algorithms import (
     93         Trainer, ImageTrainer, Denoise, Inpaint, ksvd_denoise
     94     )

/content/dictlearn/dictlearn/algorithms.py in <module>()
      4 import math
      5 import numpy as np
----> 6 from . import optimize, inpaint, sparse
      7 from .preprocess import Patches
      8 from .utils import dct_dict, random_dictionary, imread

/content/dictlearn/dictlearn/optimize.py in <module>()
      8 from scipy import linalg
      9 
---> 10 from . import sparse, preprocess
     11 
     12 """

/content/dictlearn/dictlearn/sparse.py in <module>()
     11 from . import filters
     12 from . import preprocess
---> 13 from ._dictlearn import _dictlearn
     14 
     15 

/content/dictlearn/dictlearn/_dictlearn/__init__.py in <module>()
----> 1 from . import _dictlearn
      2 from . import hessian

ImportError: cannot import name '_dictlearn'

Originally posted by @JorgeNustes in https://github.com/permfl/dictlearn/issues/2#issuecomment-616861432

JorgeNustes avatar Apr 21 '20 17:04 JorgeNustes