bug: `pytest` failed on Python 3.9, Windows 10 caused by deprecated pyreadline
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
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?
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).
Can you try v2.0.1 (https://pypi.org/project/pytest-echo/2.0.1/) ?