-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
pytest 7.2.0: ModuleNotFoundError: No module named 'py.xml'; 'py' is not a package #10428
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
Comments
See pytest-dev/pytest-html#555 and #10420 for some context. Not a pytest issue. |
Pinning this too, as this mentions |
I have
https://github.com/ddterm/gnome-shell-extension-ddterm/actions/runs/3330468879/jobs/5509011844 |
@amezin I suggest you open a new issue, since this will get lost here otherwise - that one does seem like a pytest issue on first glance. |
pytest old version may use 'py' which has some CVE [1]. So it is advised to use pytest latest version 7.2.0 which completely removes usage of py. Also, pytest-html version is bumped to the latest version 3.2.0 to include [2] fix. The next step will be updating the pytest version in the horizon and any other places. [1] https://nvd.nist.gov/vuln/detail/CVE-2022-42969 [2] pytest-dev/pytest#10428 Co-Authored-By: mitya-eremeev-2 <[email protected]> Change-Id: Ia4b554d5acb1e4586b3d058908cec53d46243dc9
* Update requirements from branch 'master' to 5053de6c19be69d4b088d4825dd4d7748e2a900d - Bump pytest version to the latest version to avoid py usage. pytest old version may use 'py' which has some CVE [1]. So it is advised to use pytest latest version 7.2.0 which completely removes usage of py. Also, pytest-html version is bumped to the latest version 3.2.0 to include [2] fix. The next step will be updating the pytest version in the horizon and any other places. [1] https://nvd.nist.gov/vuln/detail/CVE-2022-42969 [2] pytest-dev/pytest#10428 Co-Authored-By: mitya-eremeev-2 <[email protected]> Change-Id: Ia4b554d5acb1e4586b3d058908cec53d46243dc9
Note that pytest relies on the fact that A potential problem with this approach is that it assumes that both pytest and py are installed under the same Minimal repro:
|
pytest old version may use 'py' which has some CVE [1]. So it is advised to use pytest latest version 7.2.0 which completely removes usage of py. Also, pytest-html version is bumped to the latest version 3.2.0 to include [2] fix. The next step will be updating the pytest version in the horizon and any other places. [1] https://nvd.nist.gov/vuln/detail/CVE-2022-42969 [2] pytest-dev/pytest#10428 Co-Authored-By: mitya-eremeev-2 <[email protected]> Change-Id: Ia4b554d5acb1e4586b3d058908cec53d46243dc9
When running pytest 7.2.0, I am getting this error (output truncated):
If I revert back to pytest 7.1.3, the error goes away.
I have these testing related modules in my requirements.txt (full pip list below):
pip list
from the virtual environment you are using (see below)Possibly related to:
pip list:
The pip list difference from the working and not working is this:
I first noticed this error in my pipelines where I don't have the version pinned.
The text was updated successfully, but these errors were encountered: