Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding own dataset fails #2

Open
fesu42 opened this issue Feb 18, 2020 · 0 comments
Open

Adding own dataset fails #2

fesu42 opened this issue Feb 18, 2020 · 0 comments

Comments

@fesu42
Copy link

fesu42 commented Feb 18, 2020

Hi, I set up the container as described in the readme. Since the sample csv file is missing (see #1) I added a simple csv file on my own. Requests to the endpoint responded with an error (list index out of range), so I assumed, I had a wrong format in my csv file...

To be sure about the format and RML mapping, I added my own dataset as described in the README, I adjusted the config, added mapper and template files (basically copy-paste-edit of the original files, see attached) and copied them into the container. But when I restart the container, the log says, that the json files could not be decoded. Is there something wrong in the structure? Any help is appreciated.

2020-02-18T17:24:10.180+0000 I NETWORK  [thread1] waiting for connections on port 27017
Traceback (most recent call last):
  File "/usr/local/bin/OntarioServer.py", line 4, in <module>
    __import__('pkg_resources').run_script('ontario==0.1', 'OntarioServer.py')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/ontario-0.1-py2.7.egg/EGG-INFO/scripts/OntarioServer.py", line 108, in <module>
    
  File "build/bdist.linux-x86_64/egg/ontario/config/__init__.py", line 10, in __init__
  File "build/bdist.linux-x86_64/egg/ontario/config/__init__.py", line 84, in getAllMolecules
  File "build/bdist.linux-x86_64/egg/ontario/config/__init__.py", line 110, in readJsonFile
  File "/usr/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

mysetup.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant