AttributeError: can't set attribute
Thank you for sharing the code. I tried it but got an error. Could you please give me a hint about it?

Hi, can you try the rdflib version in the readme file?
I have pip installed the exact version in the Dependencies part of README.md.

Thanks for your attention. Have you solved this error successfully ? Can you please tell me your handling method by any chance?
I met the exact same problem and run some tests here:
This test got an identical result as above code :
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?
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.