How to ingest music files

216 views
Skip to first unread message

Raluca Ene

unread,
Mar 17, 2015, 4:25:45 PM3/17/15
to echo...@googlegroups.com
Hello, I`m new to this group, but hoping to get some answers. I`m trying to build my own application of music recognition on android, so I used the Echoprint server ( from here:  https://github.com/echonest/echoprint-server ). I followed the steps, and with some sttrugle I managed to start the server. I downloaded the available files with music (from: http://echoprint.me/data/)  but  I can`t ingest it to my server. I get this message: "raluca@ubuntu:~/Desktop/echoprint/util$ python fastingest.py [-b] /home/raluca/Downloads/echprint-dump-1.json
1/2 [-b]
Traceback (most recent call last):
  File "fastingest.py", line 62, in <module>
    codes, bigeval = parse_json_dump(f)
  File "fastingest.py", line 14, in parse_json_dump
    codes = json.load(open(jfile))
IOError: [Errno 2] No such file or directory: '[-b]'
"

Sorry, I never worked with something like this, can someone explain me how to ingest the music files to the server`s database ?

vaibhav khurana

unread,
Mar 22, 2015, 3:37:44 PM3/22/15
to echo...@googlegroups.com
use python fastingest.py -b /home/raluca/Downloads/echprint-dump-1.json 
or simply
python fastingest.py /home/raluca/Downloads/echprint-dump-1.json

Raluca Ene

unread,
Mar 22, 2015, 4:57:32 PM3/22/15
to echo...@googlegroups.com

Hi! Thank you, it worked liked that, but after a while after ingestion process starts, I receive the message "killed", do you have any idea why?

--
You received this message because you are subscribed to a topic in the Google Groups "echoprint" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/echoprint/mYGlvfhrpqg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to echoprint+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raluca Ene

unread,
Mar 24, 2015, 12:02:38 PM3/24/15
to echo...@googlegroups.com
Hi, I used it liked that and now I get:
raluca@ubuntu:~/Desktop/echoprint/util$ python fastingest.py -b /home/raluca/Downloads/dump/dump/echoprint-dump*.json
1/5 /home/raluca/Downloads/dump/dump/echoprint-dump-1-1-1.json
Traceback (most recent call last):
  File "fastingest.py", line 63, in <module>
    fp.ingest(codes, do_commit=False)
  File "../API/fp.py", line 586, in ingest
    get_tyrant().multi_set(codes)
  File "../API/pytyrant.py", line 307, in multi_set
    self.t.misc("putlist", opts, lst)
  File "../API/pytyrant.py", line 540, in misc
    return list(self._misc(func, opts, args))
  File "../API/pytyrant.py", line 524, in _misc
    socksuccess(self.sock)
  File "../API/pytyrant.py", line 172, in socksuccess
    raise TyrantError(fail_code)
pytyrant.TyrantError: 1


Do you have any idea why ? Please help

Sudarshini Tyagi

unread,
Jul 7, 2015, 8:08:24 AM7/7/15
to echo...@googlegroups.com
Hello!
I'm trying to do the same thing but when I run 
python ~/echoprint-server-master/util/fastingest.py [-b] allcodes.json
I get the error saying that module fp is unavailable. I tried downloading this module but it seems to be unavailable. I couldn't find it. 

Carlos Covas

unread,
Jul 16, 2015, 12:01:10 PM7/16/15
to echo...@googlegroups.com
When I use python fastingest.py the result is this:

x@ubuntu:/home/echoprintserver/util$ python fastingest.py -b /home/crebelo/Desktop/codegen/allcodes.json

1/1 /home/crebelo/Desktop/codegen/allcodes.json
Traceback (most recent call last):
  File "fastingest.py", line 63, in <module>
    fp.ingest(codes, do_commit=False)
  File "../API/fp.py", line 584, in ingest
    host.add_many(docs)
  File "../API/solr.py", line 798, in add_many
    return self._update(xstr, addHandler=addHandler)
  File "../API/solr.py", line 923, in _update
    rsp = self._post(self.path + addHandler + self.invariant, request, self.xmlheaders)
  File "../API/solr.py", line 1028, in _post
    return check_response_status(self.conn.getresponse())
  File "../API/solr.py", line 1279, in check_response_status
    raise ex
solr.SolrHTTPException: HTTP code=404, reason=Not Found

Anybody can help I ? I'm a beginner... Thank you in Advance!
Reply all
Reply to author
Forward
0 new messages