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

PyAthena extra with version prior to 2.11.0 fails to install via latest Poetry (1.4.0) #7491

Closed
jrouly opened this issue Mar 3, 2023 · 2 comments
Labels
bug Bug report stale

Comments

@jrouly
Copy link

jrouly commented Mar 3, 2023

Describe the bug

Installing the acryl-datahub package with the athena extras brings in pyathena@2.4.1. However, Poetry 1.4.0 is unable to install this version of pyathena, likely due to pypa/installer#97 but directly caused by python-poetry/poetry#7572.

To Reproduce
Steps to reproduce the behavior:

  1. Add acyrl-datahub with the athena extras at the latest version v0.10.0 to pyproject.toml.
  2. Attempt to poetry install with a fresh virtual environment.
  3. Notice the following error:
  KeyError

  "There is no item named 'PyAthena-2.4.1.dist-info/WHEEL' in the archive"

  at /usr/local/Cellar/python@3.9/3.9.15/Frameworks/Python.framework/Versions/3.9/lib/python3.9/zipfile.py:1438 in getinfo
      1434│     def getinfo(self, name):
      1435│         """Return the instance of ZipInfo given 'name'."""
      1436│         info = self.NameToInfo.get(name)
      1437│         if info is None:
    → 1438│             raise KeyError(
      1439│                 'There is no item named %r in the archive' % name)
      1440│
      1441│         return info
      1442│

Expected behavior

Successful installation.

@jrouly jrouly added the bug Bug report label Mar 3, 2023
@jrouly jrouly changed the title PyAthena prior to 2.11.0 fails to install via latest Poetry (1.4.0) PyAthena extra with version prior to 2.11.0 fails to install via latest Poetry (1.4.0) Mar 3, 2023
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

This issue is stale because it has been open for 30 days with no activity. If you believe this is still an issue on the latest DataHub release please leave a comment with the version that you tested it with. If this is a question/discussion please head to https://slack.datahubproject.io. For feature requests please use https://feature-requests.datahubproject.io

@github-actions github-actions bot added the stale label Apr 3, 2023
@hsheth2
Copy link
Collaborator

hsheth2 commented Apr 3, 2023

As per python-poetry/poetry#7572 (comment), this should be resolved?

Either way, I'm not sure we can really do anything about this one - we're at the mercy of poetry / python installer.

@hsheth2 hsheth2 closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report stale
Projects
None yet
Development

No branches or pull requests

2 participants