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

InquirerPy pip package failed on bazel python_rules #57

Open
pyu10055 opened this issue Feb 16, 2023 · 6 comments
Open

InquirerPy pip package failed on bazel python_rules #57

pyu10055 opened this issue Feb 16, 2023 · 6 comments

Comments

@pyu10055
Copy link

pyu10055 commented Feb 16, 2023

@kazhala First I want to thank you for modernizing PyInquirer library, as we are trying to replace PyInquirer (issue), we are facing some issues with our existing build infrastructure. Bazel python rules require the package name to match the WHEEL file directory.
In case of InquirerPy, the pip package is InquirerPy-0.3.4-py3-none-any.whl, bazel will try to parse the WHEEL file at:
InquirerPy-0.3.4.dist-info/WHEEL
Which is different from the real location in the file (inquirerpy-0.3.4.dist-info/WHEEL).

The main problem seems to be the mismatch of case between pip package name InquirerPy and internal directory inquirerpy.
I have tested that if I rename the pip package to inquirerpy-0.3.4-py3-none-any.whl, then everything works.

Can you help to align these two and publish a new version? Thanks

@cabreraalex
Copy link

+1 having the same issue with Poetry and GitHub Actions

@pyu10055
Copy link
Author

@kazhala bumping this thread, thanks

@kazhala
Copy link
Owner

kazhala commented Mar 1, 2023

Ahh okay makes sense. I'll have a look over the weekend and see what I can do.

@thehappydinoa
Copy link

thehappydinoa commented Mar 1, 2023

Same issue here, running the following env on an arm64 machine.

Python 3.10.8
Poetry 1.4.0
pip 22.1.2
setuptools 58.1.0

KeyError "There is no item named 'InquirerPy-0.3.4.dist-info/WHEEL' in the archive"
  at /usr/local/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│ 

@thehappydinoa
Copy link

Actually I just downgraded Poetry 1.3.2 and it seems to have fixed my issue. Something introduce in 1.4.0 seems to be breaking for some wheel based projects.

@pyu10055
Copy link
Author

@kazhala any updates? thanks

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

No branches or pull requests

4 participants