pytest-echo icon indicating copy to clipboard operation
pytest-echo copied to clipboard

bug: `pytest` failed on Python 3.9, Windows 10 caused by deprecated pyreadline

Open cutekibry opened this issue 11 months ago • 3 comments

The pyreadline is no longer actively maintained (last update of any kind was in 2015) and cannot work in Python 3.9+.

I think this caused pytest to fail running on Windows, since I searched pyreadline in pytest-dev and only this repository referenced pyreadline.

Consider use other packages instead (e.g. pyreadline3 or gnureadline), otherwise the user needs to fix manually like https://github.com/jlowin/fastmcp/blob/main/Windows_Notes.md.

Reference:

  • Pyreadline Issue: https://github.com/pyreadline/pyreadline/issues/65
  • Hy Issue: https://github.com/hylang/hy/issues/2114
  • FastMCP Windows_Notes.md: https://github.com/jlowin/fastmcp/blob/main/Windows_Notes.md

cutekibry avatar Apr 25 '25 05:04 cutekibry

pyreadline is not a direct dependency of pytest-echo and is a requirement of pdbpp, which is only needed if it is installed with dev dependencies. What exactly is the error you get, and how is pytest-echo installed?

saxix avatar Apr 26 '25 11:04 saxix

pyreadline is not a direct dependency of pytest-echo and is a requirement of pdbpp, which is only needed if it is installed with dev dependencies. What exactly is the error you get, and how is pytest-echo installed?

:thinking:

Simply clone FastMCP and install dev dependencies, then run pytest, it will raise exceptions about pyreadline. See also: https://github.com/jlowin/fastmcp?tab=readme-ov-file#contributing

My machine is Python 3.12.3 + Windows 11 (26100.3775).

cutekibry avatar Apr 26 '25 11:04 cutekibry

Can you try v2.0.1 (https://pypi.org/project/pytest-echo/2.0.1/) ?

saxix avatar Apr 27 '25 09:04 saxix