LiberAI / NSpM

🤖 Neural SPARQL Machines for Knowledge Graph Question Answering.
http://aksw.org/Projects/NeuralSPARQLMachines
MIT License
222 stars 86 forks source link

Issues while running pipeline 1 #30

Closed KShivendu closed 4 years ago

KShivendu commented 4 years ago

I tried running the pipelines but because of some python version related issues I was getting errors in pipeline 1.

The solution which worked was using from urllib.request import urlopen and then urlopen(<url>) instead of import urlliband then using urllib.request.urlopen(<url>) Make sure to use python3.7 to run the pipelines as @panchbhai1969 's code uses it.

It works becuase The urllib and urllib2 modules from Python 2.x have been combined into the urllib module in Python 3 as mentioned here

Also, while setting up the project I realised it will be better to have a requirements.txt file. I would like to do it too as my initial contribution.

panchbhai1969 commented 4 years ago

Hi @KShivendu ,

Okay, I understand the issue. Adding a requirement.txt will be a very useful add-on in making the repository more user friendly. Please raise this issue in: https://github.com/dbpedia/neural-qa instead, as the code you are referring to is present in that repository which is forked from this one.

KShivendu commented 4 years ago

Sure, I will do that.