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

AttributeError: can't set attribute #8

Open
boywaiter opened this issue Jul 2, 2022 · 5 comments
Open

AttributeError: can't set attribute #8

boywaiter opened this issue Jul 2, 2022 · 5 comments

Comments

@boywaiter
Copy link

Thank you for sharing the code. I tried it but got an error. Could you please give me a hint about it?
image

@acharkq
Copy link
Collaborator

acharkq commented Jul 2, 2022

Hi, can you try the rdflib version in the readme file?

@boywaiter
Copy link
Author

I have pip installed the exact version in the Dependencies part of README.md.
1656810353(1)

@xinxinzi
Copy link

xinxinzi commented Feb 8, 2023

Thanks for your attention. Have you solved this error successfully ? Can you please tell me your handling method by any chance?

@Vinkinsky
Copy link

I met the exact same problem and run some tests here:
image
This test got an identical result as above code :
image
so I'm thinking maybe there are some package conflict in my env? Is there any chance i can get your detailed package list for comparison?

@JunzheShen
Copy link

For anyone who's still bothered with this error:
Inspired by Vinkinsky, I realized there might be problem with package conflicts.

so I'm thinking maybe there are some package conflict in my env? Is there any chance i can get your detailed package list for comparison?

The error occurs in a class defined in site-packages/rdflib/plugins/sparql/parseutils.py that inherits from a class in pyparsing. During the installation of rdflib, the latest version of pyparsing was automatically installed (in my case). Thus downgrading pyparsing via pip uninstall pyparsing and pip install pyparsing==2.4 works for me.

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

5 participants