This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Martin-Forster
Recipients Martin-Forster, paul.moore, steve.dower, tim.golden, zach.ware
Date 2022-01-26.14:14:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643206492.89.0.988860575159.issue46537@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-01-26 14:14:52Martin-Forstersetrecipients: + Martin-Forster, paul.moore, tim.golden, zach.ware, steve.dower
2022-01-26 14:14:52Martin-Forstersetmessageid: <1643206492.89.0.988860575159.issue46537@roundup.psfhosted.org>
2022-01-26 14:14:52Martin-Forsterlinkissue46537 messages
2022-01-26 14:14:52Martin-Forstercreate