DidYouMean-Python icon indicating copy to clipboard operation
DidYouMean-Python copied to clipboard

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

Open SylvainDe opened this issue 2 years ago • 1 comments

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 avatar May 30 '23 15:05 SylvainDe

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

SylvainDe avatar May 30 '23 15:05 SylvainDe