so we can't just "not encode" it. But we need to use urlencoding or something *and* some kind of string encoding, right?
Mineo joined the channel
alastairp: I would start using urllib.quote_plus() and see if that helps already with the tomahawk problem
not sure if I can test that myself, since I don't know how fast I can setup an acousticbrainz test server
TBH i have no clue how I get that to work that repository at all :-D
looks like flask, and I don't have a clue about flask
Mineo
you need to clone the repository and then use admin/setup.sh in the admin folder to setup the db
JonnyJD
Mineo: but I don't have to download the complete db, right?
JonnyJD is a bit tight on space..
Mineo
no, you don't need the complete db
JonnyJD
cool, trying it then
Mineo
you can just generate a json file by running the extractor manually and then submit it to your locally running server with "curl -d @<json-file-name> localhost:8080/<track-mbid-here>/low-level"
JonnyJD
thx
Freso
JonnyJD: I have a PR with a slightly fleshed out README you can follow for install instructions.
In abz-server.
It doesn't mention how to do the db, but that's mostly because there are no db dumps yet. Rob has a smaller db dump available, but you should also be able to hack -client to submit to your local test server.
JonnyJD
Freso: thanks, although I got that far by now already :-D
except I was calling server.py inside acousticbrainz folder
still missing the css somehow, at least it looks like missing all formatting
yes, everything from /static gives 404, regardless of me doing "python2 acousticbrainz/server.py" or just "python2 server.py" (not that this is relevant for my tests.. though)
Freso
Everything? Or CSS?
For CSS, you need to compile the less.
JonnyJD
oh, yes. non-css only gives 304, not 404
JonnyJD is not doing the less stuff for now, doesn't really matter
Freso
JonnyJD: Do you have the db running?
JonnyJD
"essentia_build_sha' was not found in submitted data" is that something introduced later or because of not using abzsubmit?
Freso: yes, db and server running
(self-built essentia, same commit as the first linux binary released)
JonnyJD tries fixing a abzsubmit conf that submits to localhost
reosarevok joined the channel
Freso
JonnyJD: I tihnk the build_sha is part of the JSON file generated by the submitter and not part of the essentia output.
*think
JonnyJD
Mineo: submitting per curl doesn'
t work
submitting per abzsubmit (changing [acousticbrainz] host) works
Mineo
it did work for me
but if abzsubmit works, then everything's okay :)
JonnyJD
hm, were you using the essentia-acousticbrainz from AUR or something different?
JonnyJD will check that out later
Mineo
no, a locally built one - `git describe HEAD` prints "v2.1_beta2-3-gd5e3a6e"
JonnyJD
Mineo: so you have a later build, possibly that includes the build_sha by itself (notes that for later to check)
anyways, thanks guys, I have a running acousticbrainz server now and will check out that encoding problem
Freso
JonnyJD: Also, if essentia-acousticbrainz is still using the Git SHA of the original Linux "release", it probably ought to get updated anyway...