Python Poetry Builds Failing

I had a tiny change (not at all related to this error) in one of my projects and now my build is failing for strange reasons. Even reverting back to previous (working) commits does not fix the issue. I’m running python 3.10.8 with poetry to install. I’m not sure if it has something to do with the connection pull being full?

Mar 1 03:58:25 PM    • Installing loguru (0.6.0)
Mar 1 03:58:25 PM  Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
Mar 1 03:58:25 PM  Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
Mar 1 03:58:26 PM    • Installing mypy (1.0.0)
Mar 1 03:58:27 PM  
Mar 1 03:58:27 PM    KeyError
Mar 1 03:58:27 PM  
Mar 1 03:58:27 PM    "There is no item named 'Hypercorn-0.14.3.dist-info/WHEEL' in the archive"
Mar 1 03:58:27 PM  
Mar 1 03:58:27 PM    at ~/project/python/Python-3.10.8/lib/python3.10/zipfile.py:1441 in getinfo
Mar 1 03:58:27 PM        1437│     def getinfo(self, name):
Mar 1 03:58:27 PM        1438│         """Return the instance of ZipInfo given 'name'."""
Mar 1 03:58:27 PM        1439│         info = self.NameToInfo.get(name)
Mar 1 03:58:27 PM        1440│         if info is None:
Mar 1 03:58:27 PM      → 1441│             raise KeyError(
Mar 1 03:58:27 PM        1442│                 'There is no item named %r in the archive' % name)
Mar 1 03:58:27 PM        1443│
Mar 1 03:58:27 PM        1444│         return info
Mar 1 03:58:27 PM        1445│
Mar 1 03:58:27 PM  

I did not pin poetry and it looks like the latest release has strange behavior. Downgrading to 1.3.2 fixed the issue.

3 Likes

man i looooove you.
you just provided my daily dose of dopamine.
thank you for guidance.
i was trying to build the required dependencies for running the “skybrush-server” (an open source project to sync drones) and “poetry install” command used to throw this error. i downgraded to 1.3.2 as you said and it worked.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.