-
Notifications
You must be signed in to change notification settings - Fork 5
example gives error #4
Comments
@cysouw sorry to have put you in the early adopter role yet again. Release 1.3.1 should have fixed this problem. |
No problem: I like guinea pigs :-) However, also the 1.3.1 version gives an error with the example from the readme: Traceback (most recent call last): |
Ok, I see you are on python 3.5. Haven't done any tests with this so far. On python 3.4 all tests pass - although I'm not sure the exception you are seeing would be covered by the tests. |
@cysouw What version of rdflib are you using? |
Ah, ok. This particular error message was improved in Python 3.5. What I'm seeing in 3.2 and 3.4 is
|
Just verified that clldclient 1.3.2 with python 3.4 and the following packages works:
|
perfect! works now as expected, also on my machine
|
I tried the bash example in the readme
clld-download-table wals.info value --parameter 1A | in2csv -f json | csvstat
It gives the following error:
Traceback (most recent call last):
File "/usr/local/bin/clld-download-table", line 11, in
sys.exit(download_table())
File "/usr/local/lib/python3.5/site-packages/clldclient/cli.py", line 40, in download_table
*_{name: getattr(args, name) for name in constraints if getattr(args, name)})
File "/usr/local/lib/python3.5/site-packages/clldclient/database.py", line 251, in table
return Table(rsc, self, strip_html=strip_html, *_constraints)
File "/usr/local/lib/python3.5/site-packages/clldclient/table.py", line 18, in init
if name in self.client.dataset.resource_types:
File "/usr/local/lib/python3.5/site-packages/clldclient/database.py", line 212, in dataset
self._dataset = Dataset(self.get(), self, 'dataset')
File "/usr/local/lib/python3.5/site-packages/clldclient/database.py", line 48, in init
assert res.mimetype == 'application/rdf+xml'
File "/usr/local/lib/python3.5/site-packages/clldclient/cache.py", line 67, in mimetype
return self.content_type.split(';')[0].strip()
File "/usr/local/lib/python3.5/site-packages/clldclient/cache.py", line 63, in content_type
return self.headers['content-type']
KeyError: 'content-type'
Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: