pypi

Finding the minimum supported Python version for a package

Finding the minimum supported Python version for a package Question: I’ve just made a Python package and to help me in managing it, I’m using some relatively new features in Python for typings. Given that this is just typings, will my package work for lower versions? Here’s an example of the package: from __future__ import …

Total answers: 1

Python, package exists on PyPi but cant install it via pip

Python, package exists on PyPi but cant install it via pip Question: The package PyAudioWPatch is shown as available on PyPi with a big old green check mark. https://pypi.org/project/PyAudioWPatch/ However when I try to install it, I am getting the following error: % pip install PyAudioWPatch ERROR: Could not find a version that satisfies the …

Total answers: 1

Package Publishing (Python) failing through Poetry

Package Publishing (Python) failing through Poetry Question: I am new to this, trying to publish a package to pypi.org using Poetry package. on my local the build is working, I am able to import the package test run it, it’s all good. but when I try to publish it to pypi.org, I get below error …

Total answers: 1

Installing my project from testpypi gives me an error

Installing my project from testpypi gives me an error Question: I am learning how to package python projects and publish them and I ran into a problem I have been trying to solve ,but failed. I have this small project and I am trying to upload it to Testpypi I managed to upload it there …

Total answers: 1

How to check if a pip package exists in certain given custom index?

How to check if a pip package exists in certain given custom index? Question: I’ve to check whether a package exists in the given index-url (authenticated) using python script. For example: I’ve to check if package package-1 exists in index https://mytestdomain.com/pypi/pypi/simple/ Is there any method to achieve this? What I’ve tried? I’ve tried the cli …

Total answers: 2

Identify forks of a Python package from within

Identify forks of a Python package from within Question: I have a Python package (a PyQt GUI app) on Github, published via PyPI. It has a crash reporting facility. Ever once in a while, I receive crashes that are subtly, but unmistakably inconsistent with my code. Examples: a "class X not found in module Y" …

Total answers: 1

Pipenv package hash does not match lock file

Pipenv package hash does not match lock file Question: We have a lock file which has not changed since April 2021. Recently, we have started seeing the following error on pipenv install –deploy: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the …

Total answers: 1

Importing Python libraries with hyphen in the name

Importing Python libraries with hyphen in the name Question: I create a Python library. It requires a Git repository and a name. I name it my-library and also inside the package folder my-package. How should I: install library my-library after I upload it to PyPI? import the package my-package after I install the library? Asked …

Total answers: 1

I want to know the url pip has used to download a package (.whl file)

I want to know the url pip has used to download a package (.whl file) Question: I need a list of URLs that pip is using to download packages from the internet preferably using a list of python packages in a requirements.txt file. Do you know a quick and easy solution to this problem? Maybe …

Total answers: 3

ERROR HTTPError: 400 Bad Request when building PyPi package

ERROR HTTPError: 400 Bad Request when building PyPi package Question: I’m trying to build my PyPi package and after I ran this command python3 -m twine upload –verbose –repository testpypi dist/* it gave me this error: Response from https://test.pypi.org/legacy/: 400 ‘0+untagged.2.g592d0aa’ is an invalid value for Version. Error: Can’t use PEP 440 local versions. See …

Total answers: 1