Skip to content
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

20.15.0 - 'PythonInfo' object has no attribute 'version_nodot' (Jenkins / tox / py35) #2367

Closed
matthuisman opened this issue Jun 26, 2022 · 10 comments

Comments

@matthuisman
Copy link

matthuisman commented Jun 26, 2022

Suddenly getting the below with the latest virtualenv 20.15.0
This is on a work jenkins build so I am unable to provide any more details / logs than below.
Hopefully its enough.

unittest-py35 uses C:\Python35\python.exe
unittest-py35 start: getenv C:\jenkins\workspace\omation_report_generators_master@2\.tox\unittest-py35
unittest-py35 cannot reuse: no previous config C:\jenkins\workspace\omation_report_generators_master@2\.tox\unittest-py35\.tox-config1
unittest-py35 create: C:\jenkins\workspace\omation_report_generators_master@2\.tox\unittest-py35
[49544] C:\jenkins\workspace\omation_report_generators_master@2\.tox$ 'C:\jenkins\workspace\omation_report_generators_master@2\venv\Scripts\python.exe' -m virtualenv --no-download --python 'C:\Python35\python.exe' unittest-py35
AttributeError: 'PythonInfo' object has no attribute 'version_nodot'
ERROR: invocation failed (exit code 1)
ERROR: InvocationError for command 'C:\jenkins\workspace\omation_report_generators_master@2\venv\Scripts\python.exe' -m virtualenv --no-download --python 'C:\Python35\python.exe' unittest-py35 (exited with code 1)
unittest-py35 finish: getenv C:\jenkins\workspace\omation_report_generators_master@2\.tox\unittest-py35 after 9.27 seconds
___________________________________ summary ___________________________________
ERROR:   unittest-py35: InvocationError for command 'C:\jenkins\workspace\omation_report_generators_master@2\venv\Scripts\python.exe' -m virtualenv --no-download --python 'C:\Python35\python.exe' unittest-py35 (exited with code 1)
cleanup C:\jenkins\workspace\omation_report_generators_master@2\.tox\.tmp\package\1\report_generators-1.0.42+4c3f2cb-py2.py3-none-any.whl

The py27 and py37 steps still work fine. So appears to be just py35
Maybe TOX needs to be updated to support?

@matthuisman matthuisman changed the title 'PythonInfo' object has no attribute 'version_nodot' (Jenkins / tox) 20.15.0 - 'PythonInfo' object has no attribute 'version_nodot' (Jenkins / tox) Jun 26, 2022
@matthuisman matthuisman changed the title 20.15.0 - 'PythonInfo' object has no attribute 'version_nodot' (Jenkins / tox) 20.15.0 - 'PythonInfo' object has no attribute 'version_nodot' (Jenkins / tox / py35) Jun 26, 2022
@gaborbernat
Copy link
Contributor

Probably the cache is not forward compatible. Can you clear the app data for virtualenv and try again as a quick workaround until we fix this?

@matthuisman
Copy link
Author

matthuisman commented Jun 27, 2022

python -m virtualenv api -vvv --reset-app-data correct for doing that?

@gaborbernat
Copy link
Contributor

Yeah, or rm -rf the folder pointed out in virtualenv --help

@matthuisman
Copy link
Author

Yes, that fixed the issue.
Would you like me to close this issue or keep it open?

@gaborbernat
Copy link
Contributor

Let's keep it open.

@teamshortcut
Copy link

I was getting this for py36 as well, although the --reset-app-data command, or removing the cache manually, did solve it.

@bparzella
Copy link

bparzella commented Jul 8, 2022

It seems like this issue is Windows specific, I have not seen it on the Linux nodes.

Are there any plans for automatic cache migration or deletion? It is a pain to run the command on 50+ Windows build nodes 😅.

@gaborbernat
Copy link
Contributor

I'll try to put in a fix release that would address this 😮 been just busy with other stuff, would help if you could put in that PR 👍

@gaborbernat
Copy link
Contributor

Downgrade isn't a good solution, please instead do the python -m virtualenv api -vvv --reset-app-data to solve it.

@gaborbernat
Copy link
Contributor

I think this is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants