Skip to content

Tests are not running: E AttributeError: can't set attribute #12

Open
@georghildebrand

Description

@georghildebrand

Hi guys, thanks for working on this. RDFLib is great!

To Reproduce
Follow install instructions (install requirements etc)

Run tests python -m pytest tests

Expected behavior
Tests should pass

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS, pvenv, python 3.9

`============================= test session starts ==============================
platform darwin -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /workdir/RDFLib/rdflib-hdt
collected 29 items / 2 errors / 27 selected

==================================== ERRORS ====================================
___________________ ERROR collecting tests/hdt_store_test.py ___________________
tests/hdt_store_test.py:4: in
from rdflib_hdt import HDTStore, optimize_sparql
rdflib_hdt/init.py:12: in
from rdflib_hdt.sparql_op import optimize_sparql
rdflib_hdt/sparql_op.py:6: in
import rdflib.plugins.sparql.evaluate as sparql_evaluate
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/init.py:35: in
from . import parser
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/parser.py:182: in
Param('prefix', PN_PREFIX)) + Suppress(':').leaveWhitespace()
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/parserutils.py:113: in init
self.name = name
E AttributeError: can't set attribute
___________________ ERROR collecting tests/wrappers_test.py ____________________
tests/wrappers_test.py:3: in
from rdflib_hdt import HDTDocument
rdflib_hdt/init.py:12: in
from rdflib_hdt.sparql_op import optimize_sparql
rdflib_hdt/sparql_op.py:6: in
import rdflib.plugins.sparql.evaluate as sparql_evaluate
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/init.py:35: in
from . import parser
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/parser.py:182: in
Param('prefix', PN_PREFIX)) + Suppress(':').leaveWhitespace()
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/parserutils.py:113: in init
self.name = name
E AttributeError: can't set attribute
=============================== warnings summary ===============================
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/compat.py:8
pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/compat.py:8
/workdir/RDFLib/rdflib-hdt/pyhdt_venv/lib/python3.9/site-packages/rdflib/plugins/sparql/compat.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Mapping, MutableMapping # was added in 2.6

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR tests/hdt_store_test.py - AttributeError: can't set attribute
ERROR tests/wrappers_test.py - AttributeError: can't set attribute
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions