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

Cannot import name 'NTriplesParser when build dbpedia index #38

Open
HansiZeng opened this issue Nov 15, 2021 · 0 comments
Open

Cannot import name 'NTriplesParser when build dbpedia index #38

HansiZeng opened this issue Nov 15, 2021 · 0 comments

Comments

@HansiZeng
Copy link

When I tried to build the index from dpbedia dump using the following code,

VERSION=2015-10
python -m nordlys.core.data.dbpedia.indexer_dbpedia_types data/config/dbpedia-$VERSION/index_types.config.json

I face the error ImportError: cannot import name 'NTriplesParser' from 'rdflib.plugins.parsers.ntriples'
The traceback is:

File "/home/xxxx/miniconda3/envs/matchmaker/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/xxxx/miniconda3/envs/matchmaker/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/mnt/nfs/scratch1/xxxx/nordlys/nordlys/core/data/dbpedia/indexer_dbpedia_types.py", line 34, in <module>
    from rdflib.plugins.parsers.ntriples import NTriplesParser
ImportError: cannot import name 'NTriplesParser' from 'rdflib.plugins.parsers.ntriples' (/home/xxxx/miniconda3/envs/matchmaker/lib/python3.8/site-packag
es/rdflib/plugins/parsers/ntriples.py)

My package and python versions:
python==3.8.12
rdflib==6.0.2

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