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

SPARQL processor update not importing #1702

Closed
alex-randles opened this issue Feb 1, 2022 · 2 comments
Closed

SPARQL processor update not importing #1702

alex-randles opened this issue Feb 1, 2022 · 2 comments

Comments

@alex-randles
Copy link

Hi I have been using the following module for some time, however, it has randomly stopped working . The import statement is below.

from rdflib.plugins.sparql.processor import processUpdate

I get the following import error.

Traceback (most recent call last):
  File "API.py", line 22, in <module>
    from modules.refinements import Refinements
  File "/home/alex/Desktop/Mapping-Quality-Framework/modules/refinements.py", line 7, in <module>
    from modules.validation_report import ValidationReport
  File "/home/alex/Desktop/Mapping-Quality-Framework/modules/validation_report.py", line 9, in <module>
    from rdflib.plugins.sparql.processor import processUpdate
  File "/home/alex/.local/lib/python3.6/site-packages/rdflib/plugins/sparql/__init__.py", line 33, in <module>
    from . import parser
  File "/home/alex/.local/lib/python3.6/site-packages/rdflib/plugins/sparql/parser.py", line 184, in <module>
    Param('prefix', PN_PREFIX)) + Suppress(':').leaveWhitespace()
  File "/home/alex/.local/lib/python3.6/site-packages/rdflib/plugins/sparql/parserutils.py", line 114, in __init__
    self.name = name
AttributeError: can't set attribute

@aucampia
Copy link
Member

aucampia commented Feb 2, 2022

@alex-randles this problem was already fixed:

You can try to downgrade the version of pyparsing to 2.x or upgrade to the latest RDFLib, the fix should be included in RDFLib 6.1.1.

Please let me know if it works so I can close this issue.

@alex-randles
Copy link
Author

Perfect its fixed, thanks for your help

I will close the issue

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

2 participants