tiepvupsu / DICTOL_python

A Python implementation of well-known dictionary learning methods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python version is missing utils/

mannykao opened this issue · comments

import dictol
dictol.demo()
Traceback (most recent call last):
File "", line 1, in
File "D:\Dev\Audio\audio4video\venv4audio\lib\site-packages\dictol_init_.py", line 3, in demo
from dictol import SRC, ODL, DLSI, COPAR, LRSDL, utils
File "D:\Dev\Audio\audio4video\venv4audio\lib\site-packages\dictol\SRC.py", line 2, in
import utils
ModuleNotFoundError: No module named 'utils'

I downloaded the .whl and .gz files from PyPl. I can see utils.py. The 'init.py' also exports 'utils'. So I do not know why I am still getting the above error.

I actually tried on my machine and it still works properly. You can try to reisntall dictol:

pip uninstall dictol
pip intsll dictol

Thanks Tiep. It was due my python is 3. I switch back to 2.7 and it worked great. I am editing utils.py to make it work under python 3. Will sent it your way when I verified it works.

yes it would be great to have python 3 version

I'm happy that this repo is useful for you guys. I'll make the python3 version as soon as I can. Hopefully by the end of the month.

Hi @Sandy4321, I updated it to version 0.1.1 to support both python 2 and 3.
Please update the most version of dictol by:

pip install --upgrade dictol

for python 2 or

pip3 install --upgrade dictol

for python3

Thank you.

Thanks for upgrading to python 3! I tried to run dictol.demo(). I got pretty far:
demo-run.log