Giter Site home page Giter Site logo

Comments (6)

worldveil avatar worldveil commented on July 22, 2024

Interesting. Try something for me - try inserting the line:

mlab.use('Agg')

just after this line and see if that changes anything.

from dejavu.

webudo avatar webudo commented on July 22, 2024

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.

webudo avatar webudo commented on July 22, 2024

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 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]:

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.

worldveil avatar worldveil commented on July 22, 2024

Sorry, my fault, I gave you bad syntax. Try these two lines in the same place:

import matplotlib
matplotlib.use('Agg')

from dejavu.

webudo avatar webudo commented on July 22, 2024

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.

worldveil avatar worldveil commented on July 22, 2024

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)

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.