Skip to content

Python 3.13 compatibility #795

Closed
Closed
@xylar

Description

@xylar

Based on the attempt to build with python 3.13 on conda-forge, it seems like some work may be needed before python-igraph is compatible. We're seeing failures in a lot of tests with messages like the following:

======================================================================
ERROR: testAdjacency (tests.test_basic.BasicTests.testAdjacency)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/python-igraph_1725317163812/test_tmp/tests/test_basic.py", line 350, in testAdjacency
    self.assertTrue(g.get_adjlist(IN) == [[2], [0], [1], [2]])
                    ~~~~~~~~~~~~~^^^^
  File "/home/conda/feedstock_root/build_artifacts/python-igraph_1725317163812/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pl/lib/python3.13/site-packages/igraph/adjacency.py", line 135, in _get_adjlist
    return [self.neighbors(idx, mode) for idx in range(self.vcount())]
            ~~~~~~~~~~~~~~^^^^^^^^^^^
SystemError: <method 'neighbors' of 'igraph._igraph.GraphBase' objects> returned NULL without setting an exception

======================================================================
ERROR: testEdgeIncidence (tests.test_basic.BasicTests.testEdgeIncidence)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/python-igraph_1725317163812/test_tmp/tests/test_basic.py", line 356, in testEdgeIncidence
    self.assertTrue(g.incident(2, IN) == [1])
                    ~~~~~~~~~~^^^^^^^
SystemError: <method 'incident' of 'igraph._igraph.GraphBase' objects> returned NULL without setting an exception

See conda-forge/python-igraph-feedstock#91

Also likely relevant:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions