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

ImportError: No module named scikits.talkbox.linpred #58

Closed
netttt opened this issue Nov 9, 2017 · 16 comments
Closed

ImportError: No module named scikits.talkbox.linpred #58

netttt opened this issue Nov 9, 2017 · 16 comments

Comments

@netttt
Copy link

netttt commented Nov 9, 2017

when i try to open the python file speaker-recognition.py in the terminal it sends out this error:
ImportError: No module named scikits.talkbox.linpred
how can i fix it?

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Nov 9, 2017

Install the dependencies

@netttt
Copy link
Author

netttt commented Nov 9, 2017

i ran this line:
install blitz, openblas, boost
and it still does the same

@netttt
Copy link
Author

netttt commented Nov 9, 2017

@ppwwyyxx pls help

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Nov 9, 2017

scikits.talkbox is a dependency

@netttt
Copy link
Author

netttt commented Nov 9, 2017

I managed to download all the dependencies except: scikit-learn and PyQt4
the error was:
Could not find a version that satisfies the requirement scikits-learn (from versions: )
No matching distribution found for scikits-learn

how can i find the version?

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Nov 9, 2017

Have you installed scikits.talkbox or not?

@netttt
Copy link
Author

netttt commented Nov 9, 2017

yes i had

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Nov 9, 2017

If the installation is successful you should be able to import.
Could you post the log for the installation of scikits.talkbox?

@netttt
Copy link
Author

netttt commented Nov 9, 2017

since i have already installed it i can only show you this log, i hope its good enough

Requirement already satisfied: scikits.talkbox in /Users/netanel/Library/Python/2.7/lib/python/site-packages
Requirement already satisfied: numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scikits.talkbox)

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Nov 9, 2017

If the installation appears successful, this can also be a python environment problem, e.g. not using the matching python version that's used for pip.

@netttt
Copy link
Author

netttt commented Nov 9, 2017

so how can i find what is the problem and fix it

@ppwwyyxx
Copy link
Owner

Could you try the command: python2 -c 'from scikits.talkbox.linpred import levinson_lpc'.
If it fails, your python cannot find your installed library. I don't know the reason for that and there could be millions of reasons. I suggest find someone around you for help.

This repo also includes a Dockerfile with a full environment to run the program.

@netttt
Copy link
Author

netttt commented Nov 11, 2017

i tried to run this line
when i had, it simply gave me empty line and then it made the console disable itself, meaning it received my code but it didn't respond to it.

i have also tried to run the speaker-recognition.py file and this time it gave this error:
"no module named sip"
the only dependency i could not achieve was the PyQt4.

@ppwwyyxx
Copy link
Owner

That means you've installed scikits.talkbox successfully and your original problem was solved.
Could you please post all the error logs you saw for the new error?

@netttt
Copy link
Author

netttt commented Nov 12, 2017

when i write: "pip install --user PyQt4", it gives me this answer:

Collecting PyQt4
Could not find a version that satisfies the requirement PyQt4 (from versions: )
No matching distribution found for PyQt4

when i try to open the speaker-recognition.py file: "python speaker-recognition.py", the console prints out:

Traceback (most recent call last):
File "speaker-recognition.py", line 17, in
from gui.interface import ModelInterface
File "Desktop/speaker-recognition-master/src/gui/interface.py", line 17, in
from filters.VAD import VAD
File "/Desktop/speaker-recognition-master/src/gui/filters/VAD.py", line 9, in
from ltsd import LTSD_VAD
File "Desktop/speaker-recognition-master/src/gui/filters/ltsd.py", line 11, in
import matplotlib.pyplot as plt
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 98, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/init.py", line 28, in pylab_setup
globals(),locals(),[backend_name],0)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/backend_qt4agg.py", line 13, in
from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/backend_qt4.py", line 25, in
from qt4_compat import QtCore, QtGui, _getSaveFileName, version
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/qt4_compat.py", line 36, in
import sip
ImportError: No module named sip

@ppwwyyxx
Copy link
Owner

This is unrelated to PyQt4 and is because your matplotlib version is too old.
See ContinuumIO/anaconda-issues#8

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

2 participants