New submission from Martin Forster <[email protected]>:
pyth10n 3.10.1, windows x64 install of yodbc-4.0.32-cp310-cp310-win_amd64.whl
crashes.
<zipfile._SharedFile object at 0x0000023B4C7E5900> pos: 74196
<zipfile._SharedFile object at 0x0000023B4C7E5900> pos: 74226
<zipfile._SharedFile object at 0x0000023B4C7E5B40> pos: -3
ERROR: Could not install packages due to an OSError.
Traceback (most recent call last):
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\commands\install.py",
line 390, in run
installed = install_given_reqs(
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\req\__init__.py",
line 73, in install_given_reqs
requirement.install(
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\req\req_install.py",
line 758, in install
install_wheel(
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\operations\install\wheel.py",
line 794, in install_wheel
_install_wheel(
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\operations\install\wheel.py",
line 637, in _install_wheel
file.save()
File
"C:\git\idfunctiondb\venv\lib\site-packages\pip\_internal\operations\install\wheel.py",
line 404, in save
with self._zip_file.open(zipinfo) as f:
File "C:\Python310\lib\zipfile.py", line 1520, in open
fheader = zef_file.read(sizeFileHeader)
File "C:\Python310\lib\zipfile.py", line 743, in read
self._file.seek(self._pos)
OSError: [Errno 22] Invalid argument
Please note i added the line 742 with the content: print(str(self) + ' pos: ' +
str(self._pos) )
to help to find the root cause.
it Looks like that file.tell, returns a negative number, which kill file.seek.
----------
components: Windows
messages: 411750
nosy: Martin-Forster, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: zipfile crash on windows, detected during pip install
pyodbc-4.0.32-cp310-cp310-win_amd64.whl
type: crash
versions: Python 3.10
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46537>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com