Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with Python 3.10 #36

Closed
fabaff opened this issue Jan 17, 2022 · 3 comments
Closed

Test failure with Python 3.10 #36

fabaff opened this issue Jan 17, 2022 · 3 comments

Comments

@fabaff
Copy link

fabaff commented Jan 17, 2022

While the tests are passing with Python 3.9, are they failing with Python 3.10.

============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /build/commoncode-30.0.0, configfile: pyproject.toml
plugins: xdist-2.5.0, forked-1.4.0
collected 415 items / 2 errors / 413 selected                                  

==================================== ERRORS ====================================
___________________ ERROR collecting src/commoncode/fetch.py ___________________
src/commoncode/fetch.py:12: in <module>
    import requests
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/nix/store/chwjpc7aq97ihs7isn966dwcw5qzn6ah-python3.10-pytest-6.2.5/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/__init__.py:133: in <module>
    from . import utils
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/nix/store/chwjpc7aq97ihs7isn966dwcw5qzn6ah-python3.10-pytest-6.2.5/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/utils.py:41: in <module>
    DEFAULT_CA_BUNDLE_PATH = certs.where()
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/certs.py:30: in where
    return certifi.where()
/nix/store/bnxl1yg8nzqvhlg3sh57dffddj9zz8s6-python3.10-certifi-2021.10.08/lib/python3.10/site-packages/certifi/core.py:37: in where
    _CACERT_PATH = str(_CACERT_CTX.__enter__())
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/contextlib.py:135: in __enter__
    return next(self.gen)
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/_common.py:89: in _tempfile
    os.write(fd, reader())
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/abc.py:371: in read_bytes
    with self.open('rb') as strm:
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/_adapters.py:54: in open
    raise ValueError()
E   ValueError
___________________ ERROR collecting src/commoncode/fetch.py ___________________
src/commoncode/fetch.py:12: in <module>
    import requests
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/nix/store/chwjpc7aq97ihs7isn966dwcw5qzn6ah-python3.10-pytest-6.2.5/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/__init__.py:133: in <module>
    from . import utils
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/nix/store/chwjpc7aq97ihs7isn966dwcw5qzn6ah-python3.10-pytest-6.2.5/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/utils.py:41: in <module>
    DEFAULT_CA_BUNDLE_PATH = certs.where()
/nix/store/92b2sgh6v6dflkwnb3csg2ks0nbgr3ix-python3.10-requests-2.26.0/lib/python3.10/site-packages/requests/certs.py:30: in where
    return certifi.where()
/nix/store/bnxl1yg8nzqvhlg3sh57dffddj9zz8s6-python3.10-certifi-2021.10.08/lib/python3.10/site-packages/certifi/core.py:37: in where
    _CACERT_PATH = str(_CACERT_CTX.__enter__())
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/contextlib.py:135: in __enter__
    return next(self.gen)
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/_common.py:89: in _tempfile
    os.write(fd, reader())
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/abc.py:371: in read_bytes
    with self.open('rb') as strm:
/nix/store/b798fp24zf2fdafmyyc4sxfr48ly5yy9-python3-3.10.1/lib/python3.10/importlib/_adapters.py:54: in open
    raise ValueError()
E   ValueError
=========================== short test summary info ============================
ERROR src/commoncode/fetch.py - ValueError
ERROR src/commoncode/fetch.py - ValueError
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 3.43s ===============================
@AyanSinhaMahapatra
Copy link
Member

We have python 3.10 tested in the CI though, see. Could you provide more details on your OS and how to reproduce this

@fabaff
Copy link
Author

fabaff commented Apr 19, 2022

The build and the tests for 30.1.1 (NixOS/nixpkgs#169192) are passing. I guess that the failure is related to a different packages.

@fabaff fabaff closed this as completed Apr 19, 2022
@pombredanne
Copy link
Member

pombredanne commented Apr 19, 2022

@fabaff lately Click 8.1 has been a bit of a mild PITA and broke a lot of dependent packages. Though that's unlikely the case here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants