Skip to content

unit tests using Python 3.13 fails due to pycurl deprecation #55

@golharam

Description

@golharam
Run PYTHONPATH=src coverage run --source=src -m pytest
============================= test session starts ==============================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/runner/work/PAML/PAML
configfile: pyproject.toml
collected 0 items / 2 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_arvados_platform.py ________________
ImportError while importing test module '/home/runner/work/PAML/PAML/tests/test_arvados_platform.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_arvados_platform.py:11: in <module>
    from cwl_platform.arvados_platform import ArvadosPlatform, ArvadosTask
src/cwl_platform/__init__.py:7: in <module>
    from .arvados_platform import ArvadosPlatform
src/cwl_platform/arvados_platform.py:17: in <module>
    import arvados
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/__init__.py:29: in <module>
    from . import api, errors, util
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/api.py:40: in <module>
    from . import retry
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/retry.py:20: in <module>
    import pycurl
E   ImportError: /opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/pycurl.cpython-313-x86_64-linux-gnu.so: undefined symbol: Py_TRASHCAN_SAFE_BEGIN
_____________ ERROR collecting tests/test_sevenbridges_platform.py _____________
ImportError while importing test module '/home/runner/work/PAML/PAML/tests/test_sevenbridges_platform.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_sevenbridges_platform.py:10: in <module>
    from cwl_platform.sevenbridges_platform import SevenBridgesPlatform
src/cwl_platform/__init__.py:7: in <module>
    from .arvados_platform import ArvadosPlatform
src/cwl_platform/arvados_platform.py:17: in <module>
    import arvados
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/__init__.py:29: in <module>
    from . import api, errors, util
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/api.py:40: in <module>
    from . import retry
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/arvados/retry.py:20: in <module>
    import pycurl
E   ImportError: /opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/pycurl.cpython-313-x86_64-linux-gnu.so: undefined symbol: Py_TRASHCAN_SAFE_BEGIN
=============================== warnings summary ===============================
../../../../../opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/pyparsing.py:108
  /opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/site-packages/pyparsing.py:108: DeprecationWarning: module 'sre_constants' is deprecated
    import sre_constants

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