Comments (6)
Interesting. Try something for me - try inserting the line:
mlab.use('Agg')
just after this line and see if that changes anything.
from dejavu.
Thanks for your quick reply :)
I did and I got:
Traceback (most recent call last):
File "go.py", line 1, in
from dejavu import Dejavu
File "/usr/src/dejavu/dejavu/init.py", line 3, in
import fingerprint
File "/usr/src/dejavu/dejavu/fingerprint.py", line 3, in
mlab.use('Agg')
AttributeError: 'module' object has no attribute 'use'
So I did:
pip install mlab
It complained about docutils not found, so I did:
pip install docutils
Then it got installed:
Successfully installed docutils
Cleaning up...
And also mlab:
pip install mlab
Requirement already satisfied (use --upgrade to upgrade): mlab in
/usr/lib/python2.6/site-packages
Cleaning up...
pip install mlab --upgrade
Requirement already up-to-date: mlab in /usr/lib/python2.6/site-packages
Cleaning up...
Again same problem:
Traceback (most recent call last):
File "go.py", line 1, in
from dejavu import Dejavu
File "/usr/src/dejavu/dejavu/init.py", line 3, in
import fingerprint
File "/usr/src/dejavu/dejavu/fingerprint.py", line 3, in
mlab.use('Agg')
AttributeError: 'module' object has no attribute 'use'
am I missing mlab specific version or something?
On Wed, Feb 12, 2014 at 9:13 AM, worldveil [email protected] wrote:
Interesting. Try something for me - try inserting the line:
mlab.use('Agg')
just after this linehttps://github.com/worldveil/dejavu/blob/master/dejavu/fingerprint.py#L2and see if that changes anything.
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-34877763
.
from dejavu.
I don't know anything about python yet, but I guess I'm finding the reason
why this is happening.
matplotlib was installed using yum, so I tried installing it via pip.
I got the following complaint:
Downloading/unpacking matplotlib from
https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.3.1.tar.gz#md5=789699851de28a543f3d244cf657ff68
Downloading matplotlib-1.3.1.tar.gz (42.7MB): 42.7MB downloaded
Running setup.py egg_info for package matplotlib
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
So i updated "distribute" and then installed matplotlib (who complained
about numpy, which I upgraded using pip).
After matplotlib installed, I tried again and I also get the error message:
python go.py
Traceback (most recent call last):
File "go.py", line 1, in
from dejavu import Dejavu
File "/usr/src/dejavu/dejavu/init.py", line 3, in
import fingerprint
File "/usr/src/dejavu/dejavu/fingerprint.py", line 3, in
mlab.use('Agg')
AttributeError: 'module' object has no attribute 'use'
Sorry for posting all my procedures, but maybe this helps you help me, or
helps someone facing the same issue in the future.
Thanks again!
On Wed, Feb 12, 2014 at 3:45 PM, Alejandro Mejia Evertsz [email protected]:
Thanks for your quick reply :)
I did and I got:Traceback (most recent call last):
File "go.py", line 1, in
from dejavu import Dejavu
File "/usr/src/dejavu/dejavu/init.py", line 3, in
import fingerprint
File "/usr/src/dejavu/dejavu/fingerprint.py", line 3, in
mlab.use('Agg')
AttributeError: 'module' object has no attribute 'use'So I did:
pip install mlab
It complained about docutils not found, so I did:
pip install docutilsThen it got installed:
Successfully installed docutils
Cleaning up...And also mlab:
pip install mlab
Requirement already satisfied (use --upgrade to upgrade): mlab in
/usr/lib/python2.6/site-packages
Cleaning up...pip install mlab --upgrade
Requirement already up-to-date: mlab in /usr/lib/python2.6/site-packages
Cleaning up...Again same problem:
Traceback (most recent call last):
File "go.py", line 1, in
from dejavu import Dejavu
File "/usr/src/dejavu/dejavu/init.py", line 3, in
import fingerprint
File "/usr/src/dejavu/dejavu/fingerprint.py", line 3, in
mlab.use('Agg')
AttributeError: 'module' object has no attribute 'use'am I missing mlab specific version or something?
On Wed, Feb 12, 2014 at 9:13 AM, worldveil [email protected]:
Interesting. Try something for me - try inserting the line:
mlab.use('Agg')
just after this linehttps://github.com/worldveil/dejavu/blob/master/dejavu/fingerprint.py#L2and see if that changes anything.
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-34877763
.
from dejavu.
Sorry, my fault, I gave you bad syntax. Try these two lines in the same place:
import matplotlib
matplotlib.use('Agg')
from dejavu.
Dude! You're the best!
with that 2 lines it complained about scipy (also was installed by yum).
(scipy needed "openblas-devel", then it installed ok)
Now everything runs fine :)
It also works for very short recordings (which didn't work for OpenFP,
which I was trying before your scripts).
Thanks for this great piece of software!
On Wed, Feb 12, 2014 at 11:11 PM, worldveil [email protected]:
Sorry, my fault, I gave you bad syntax. Try these two lines in the same
place:import matplotlibmatplotlib.use('Agg')
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-34949134
.
from dejavu.
glad it works! I think we'll not call it an open issue for now, but perhaps a note about how to use in this way might be good in the README.md
from dejavu.
Related Issues (20)
- Comparing short audio files
- Python Docker image bloated
- A directory of potentially duplicate audio files?
- it works well with python3.6 ~
- Not working for recordings
- Some errors when I use python3.7
- multiple concurrency
- Fingerprinting Audio With Differing Sample Rates HOT 1
- Jscght
- figerprinting file HOT 1
- Any way to generate the result image of the plots? HOT 1
- Does this package supports Python 3 HOT 4
- does this project work well on recognizing human speak? HOT 5
- Problem running the sample project HOT 1
- erors using fingerprint_file HOT 1
- Audio file
- Recognize TV shows using an HLS playlist HOT 6
- psycopg2.OperationalError
- Implementing Dejavu System with Individual Fingerprint Tables for Audio Files
- 代码可读性太差了,为了炫技而炫技,屎一样
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dejavu.