Giter Site home page Giter Site logo

Cannot import dictlearn about dictlearn HOT 7 OPEN

permfl avatar permfl commented on August 22, 2024
Cannot import dictlearn

from dictlearn.

Comments (7)

YoruCathy avatar YoruCathy commented on August 22, 2024

I attempted to import dictlearn with python3.7 and met the same error. Have you solved this problem?

from dictlearn.

YoruCathy avatar YoruCathy commented on August 22, 2024

Still cannot import dictlearn with python 3.6

from dictlearn.

ke0m avatar ke0m commented on August 22, 2024

Yes, I did solve it. I made the silly mistake of not running python setup.py install. All of the examples (apart from the paths to the images not being correct) and the tests work for me in python 2 and 3.

from dictlearn.

YoruCathy avatar YoruCathy commented on August 22, 2024

In fact I did run python setup.py install. But I still cannot import it.
When I run the tests I got this. Is it normall?
image

from dictlearn.

ke0m avatar ke0m commented on August 22, 2024

Yes, I get a similar output

================================= 63 passed, 4 skipped, 56 warnings in 18.15s ==================================

Have you tried running the examples?

from dictlearn.

YoruCathy avatar YoruCathy commented on August 22, 2024

Nope, I cannot include it. But I have realized the function I want by using a single function in this package.

from dictlearn.

mukheshpugal avatar mukheshpugal commented on August 22, 2024

I have a similar issue when trying to import the module on Ubuntu 18.04 running python 3.6. Find the traceback below:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/__init__.py", line 92, in <module>
    from .algorithms import (
  File "/home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/algorithms.py", line 6, in <module>
    from . import optimize, inpaint, sparse
  File "/home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/optimize.py", line 10, in <module>
    from . import sparse, preprocess
  File "/home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/sparse.py", line 13, in <module>
    from ._dictlearn import _dictlearn
  File "/home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/_dictlearn/__init__.py", line 1, in <module>
    from . import _dictlearn
ImportError: /home/ubuntu/env/lib/python3.6/site-packages/dictlearn-0.0.1-py3.6-linux-x86_64.egg/dictlearn/_dictlearn/_dictlearn.cpython-36m-x86_64-linux-gnu.so: undefined symbol: omp_get_thread_num

This does not happen in windows.

from dictlearn.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.