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
Problems with python in new version from 2021-05-04 #3330
Comments
Hi @rikardn! |
@rikardn and same for 3.9 — it was updated from 3.9.4 to 3.9.5 the same day as 3.8 |
Thanks @miketimofeev . This is indeed the problem. I changed from python "3.8" to "3.8.9" and all tests pass again. Still failing with python 3.9 so I will test also 3.9.4. |
Python 3.9.4 also works. So going back to python 3.9.4 and python 3.8.9 resolved the issues. The passing workflow: |
I suppose the identical changes, which cause the issue, were introduced both in 3.8.10 and 3.9.5. Could you try to run the same tests locally in either 3.8.10 or 3.9.5 to confirm the theory? |
I built python 3.8.10 from source and ran the tests with that locally. Now I get the same errors as with Github Actions. The problem indeed seems to be connected to the new python versions. I'll do some debugging to see if I can pinpoint the exact cause. |
Ok, I can confirm that it is a regression in python 3.8.10 This snippet: import pkgutil
from pathlib import Path
for _, modname, ispkg in pkgutil.iter_modules([Path("/home/mypath")], 'somepackage.somesubpackage'):
print(modname, ispkg) runs fine using python 3.8.9, but not with python 3.8.10. Changing from I'll check if it was reported on the python issue tracker. |
I filed this: https://bugs.python.org/issue44061 Since this issue is not directly related to the github actions virtual environment you can close it if you like. |
@rikardn thanks for the confirmation! I'm going to close the issue as it's not related to the images. |
Description
This workflow started to fail after the latest update of the virtual environment
https://github.com/pharmpy/pharmpy/actions/runs/817030678
The issue is with python and this error shows up multiple times:
Nothing was changed in the call to
pkgutil
and the error message is between internal calls of the standard library.Here is the last run without these issues: https://github.com/pharmpy/pharmpy/actions/runs/816357539
Area for Triage:
Python
Question, Bug, or Feature?:
Bug
Virtual environments affected
Image version
20210504.1
Expected behavior
All tests should pass and the exception should not appear. Running locally works fine.
Actual behavior
A python exception is raised.
Repro steps
Failing workflow: https://github.com/pharmpy/pharmpy/actions/runs/817030678
The text was updated successfully, but these errors were encountered: