btyd icon indicating copy to clipboard operation
btyd copied to clipboard

Python 3.10 support

Open cppntn opened this issue 3 years ago • 3 comments

Can you add release a new version of the package with python 3.10 support?

cppntn avatar Sep 22 '22 13:09 cppntn

Hey @antocapp,

There were some issues encountered with SciPy when testing on 3.10 a few months ago; possibly because the latest version was still a release candidate at the time. I've been meaning to set up a Nox file for dependency version testing, and this seems like a good opportunity to do so. I'll see if I can add this to the v0.1b2 release.

ColtAllen avatar Sep 22 '22 13:09 ColtAllen

Thanks @ColtAllen!

cppntn avatar Sep 23 '22 08:09 cppntn

Python 3.10 is still having scipy issues, but they seem to be isolated to the legacy fitters.py module:

Installing the current project: btyd (0.1b2)
poetry run pytest
ImportError while loading conftest '/home/runner/work/btyd/btyd/tests/conftest.py'.
tests/conftest.py:3: in <module>
    import btyd
btyd/__init__.py:3: in <module>
    from .fitters import BaseFitter
btyd/fitters/__init__.py:10: in <module>
    from scipy.optimize import minimize
../../../.cache/pypoetry/virtualenvs/btyd-PO_kXCdc-py3.10/lib/python3.10/site-packages/scipy/optimize/__init__.py:421: in <module>
    from ._shgo import shgo
../../../.cache/pypoetry/virtualenvs/btyd-PO_kXCdc-py3.10/lib/python3.10/site-packages/scipy/optimize/_shgo.py:9: in <module>
    from scipy import spatial
../../../.cache/pypoetry/virtualenvs/btyd-PO_kXCdc-py3.10/lib/python3.10/site-packages/scipy/spatial/__init__.py:107: in <module>
    from . import distance, transform
../../../.cache/pypoetry/virtualenvs/btyd-PO_kXCdc-py3.10/lib/python3.10/site-packages/scipy/spatial/transform/__init__.py:19: in <module>
    from .rotation import Rotation, Slerp
E   ImportError: /home/runner/.cache/pypoetry/virtualenvs/btyd-PO_kXCdc-py3.10/lib/python3.10/site-packages/scipy/spatial/transform/rotation.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send

This module is in the process of being deprecated and will be removed before the Release Candidate is published. There are a few more Beta releases I need to first publish before fitters.py can be deleted, but I'm targeting end of the year for the official release.

ColtAllen avatar Oct 07 '22 00:10 ColtAllen