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

Error importing dictlearn #4

Open
JorgeNustes opened this issue Apr 21, 2020 · 0 comments
Open

Error importing dictlearn #4

JorgeNustes opened this issue Apr 21, 2020 · 0 comments

Comments

@JorgeNustes
Copy link

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 #2 (comment)

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

1 participant