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

Continous Integration on Python 3.12.0 versions: TypeError: startswith first arg must be bytes or a tuple of bytes, not str #62

Open
SylvainDe opened this issue May 30, 2023 · 1 comment

Comments

@SylvainDe
Copy link
Owner

First failure

Date: 30th May 2023
Build: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5116309715
Jobs: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5116309715/jobs/9213186118

Python 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='alpha', serial=7)
  coverage run -m unittest discover --start-directory=didyoumean --pattern=*.py
  coverage run -m unittest2 discover --start-directory=didyoumean --pattern=*.py || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/coverage", line 8, in <module>
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 973, in main
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 684, in command_line
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 858, in do_run
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 638, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/collector.py", line 364, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/threading.py", line 83, in settrace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/threading.py", line 1553, in _shutdown
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in atexit callback: <bound method Coverage._atexit of <coverage.control.Coverage object at 0x7fb7fcfe7fb0>>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 652, in _atexit
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Error: Process completed with exit code 1.

Last success

Date:
Build: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5107199492
Jobs: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5107199492/jobs/9179893427

 Python 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='alpha', serial=7)
@SylvainDe
Copy link
Owner Author

SylvainDe commented May 30, 2023

Back trace suggest an issue in Coverage.
Also:

  • last success: Successfully installed coverage-7.2.6
  • first failure: Successfully installed coverage-7.2.7

https://coverage.readthedocs.io/en/latest/changes.html#version-7-2-7-2023-05-29

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

1 participant