1,860 questions
-1
votes
1
answer
66
views
Including an executable python package into an uv project
I want to publish a python executable that depends on the j2lint CLI. I'd like to include it directly on installation without requiring the user to install the CLI utility separately.
Since I'm using ...
3
votes
2
answers
178
views
twine error with recent setuptools build but previous ones fine "InvalidDistribution: Metadata is missing required fields: Name, Version"
I'm trying to upload the python module I maintain to pypi (as I have done every few months for the last twelve years) but when I run twine check I get:
$ twine check dist/pi3d-2.55*
Checking dist/pi3d-...
0
votes
0
answers
118
views
Is the exclude-newer setting in uv sufficient for determinism and reproducibility without a lockfile?
The Python package management tool uv has an exclude-newer setting, documented as follows:
Limit candidate packages to those that were uploaded prior to a given point in time.
Accepts a superset of ...
0
votes
1
answer
45
views
Grayskull slow in GitLab CI with local sdist
I’m generating a conda recipe from a local source distribution (sdist) using Grayskull. On my laptop (inside company intranet) it completes in ~30 seconds. In our GitLab CI pipeline (also inside the ...
5
votes
2
answers
256
views
pypi caching in Artifactory
we're evaluating using Artifactory as a proxy for pypi.org so we can whitelist packages for our developers, and prevent things like typosquatting.
I was pleasantly surprised when inital setup of the ...
0
votes
2
answers
160
views
Where is the dependency error, when installing python package from PyPi?
I am trying to release a package on PyPi. When I test the package I get the following error:
The conflict is caused by:
bw2calc 2.1 depends on fsspec
bw2calc 2.0.2 depends on fsspec
...
1
vote
1
answer
85
views
How can I detect all missing packages at once when installing from a private PyPI index?
I'm working in a Python project that uses a private Artifactory PyPI index. When I run:
pip install -e ".[dev]" \
--index-url https://<my-artifactory>/artifactory/api/pypi/pypi-local/...
0
votes
0
answers
52
views
Timed out error at upload to PyPi with pdm
When I try to upload a new version 0.8.2 of my python software with pdm to PyPi I get the error
[WriteTimeout]: The write operation timed out
while the upload works for another project with very ...
1
vote
1
answer
231
views
PyPI publishing GitHub Action works with token but not trusted provider
This pull request modifies our open source package batfish/docker GitHub actions to use PyPI trusted publishing on Test PyPI instead of a password. I'm talking about the dev_whl step that pushes a ...
0
votes
1
answer
100
views
How to share configuration for custom PyPI indexes?
Is there a way to include configuration with a python package source so that it is able to properly resolve dependencies from private registries using a standard build/install chain?
For example, I ...
0
votes
0
answers
97
views
Why does Ray attempt to install ray wheels from ray-wheels.s3-us-west-2.amazonaws.com?
When submitting a Ray job using a conda runtime env (runtime_env = {"conda": "environment.yml"}), Ray attempts to install the ray wheel from ray-wheels.s3-us-west-2.amazonaws.com ...
0
votes
1
answer
57
views
Get the real python package names [duplicate]
How can I get Pypi package name with the name uses in import?
for example:
import allauth
But its name in Pypi is django-allauth and this name must be used to install with pip.
I don't want to use ...
1
vote
1
answer
130
views
Image size inconsistency between GitHub and PyPI in README.md
I created some simple console games in Python(Oyna Project) and took screenshots of each game to showcase them in the README.md file. I wanted to display these images in a table format both on GitHub ...
0
votes
1
answer
38
views
Is it possible to automatically regenerate auth token for PyPi?
I have a CI-CD pipeline which builds and release a Python package into PyPi.
An auth token is used for this and I have a new requirement to rotate/regenerate this token relatively regularly, maybe ...
-1
votes
1
answer
227
views
How does one get pypi package metadata for an uninstalled package - preferably in JSON?
pip show doesn't work for packages that aren't installed and does not output in JSON. Is there a way to make it do so?
pip show django
WARNING: Package(s) not found: django
Is there any way of ...
0
votes
0
answers
35
views
Using hunter to trace test calls misses certain invocations — how to capture more complete code dependencies?
I’m working on a project with the following goal: extract a self-contained set of Python modules and their corresponding test cases from a PyPI package, so that this extracted code (plus tests) can ...
1
vote
0
answers
117
views
'pdm build' adds date to scm version number, TestPyPI rejects it
My distribution project is managed with git, The last tag is 0.1.2.dev1. I use PDM (https://pdm-project.org). The relevant snipped in pyproject.toml is:
[build-system]
requires = ["pdm-backend&...
4
votes
1
answer
126
views
Why does some unknown codes appeared in standard library after using pip to install mstplotlib (not matplotlib)
When I entered the typo pip install mstplotlib accidentally, the mstplotlib automatically installs its requirement matplotlib and other dependencies, and the installation seems successful.
C:\Users\...
0
votes
1
answer
58
views
PyPi Server on windows: 503 Forbidden
I have a windows server with pypiserver running as a schedule task and am accessing it via a reverse proxy.
My pypi server is running as a scheduled task under user X.
I have .htpasswd setup.
The ...
0
votes
0
answers
138
views
How to distribute multiple variations of a package on PyPI?
I have a Python package with two variations: a CPU-only, and a GPU-enabled build. I would like to distribute both versions on PyPI, where users could maybe do something like the following (it doesn't ...
2
votes
1
answer
230
views
How to avoid invalid version numbers when publishing to TestPyPI in GitHub Actions?
I want to set up my Python project on GitHub for automatic publications to PyPI using GitHub Actions following this guide. This includes publishing to the TestPyPI server with every push. For this, I ...
1
vote
0
answers
38
views
Poetry configuration for installing local and remote package versions together
I want to create a Poetry configuration that installs my local package during development and installs my package from PyPI for other users.
I try to create fake localdev optional dependency that ...
0
votes
3
answers
446
views
How to define external dependencies in DLT pipeline definitions?
In order to deploy DLT tables I am using yaml files that define Delta Live Tables Pipeline. Here is an example configuration.
resources:
pipelines:
bronze:
name: ${var.stage_name}_bronze
...
0
votes
1
answer
362
views
windows pip cant install concurrent due to 'could not find a version that satisfies the requirement' but pycharm can
I am writing a small script to do multithreading examples, but I can't get it to work outside the pycharm environment. When I run it in pycharm (community edition) it is able to install the concurrent....
0
votes
1
answer
162
views
cannot install latest mysqlclient on ubuntu
I have read pip install mysql-python fails with EnvironmentError: mysql_config not found and mysql_config not found when installing mysqldb python interface and I am sure it is not a duplicate ...
0
votes
1
answer
51
views
SMAC3 conda dependency
Are there any caveats to take into consideration before installing AutoML's SMAC3 using pip inside a regular venv rather than within a conda environment, as recommended by the docs?
The docs suggest ...
0
votes
1
answer
254
views
Is it possible to configure a virtual python Google Artifact Repository so that 'pip install' respects the priorities without package version?
The Google Artifact Registry documentation to Manage Python packages says that when running pip install PACKAGE against a virtual repository:
If you request a version that is available in more than ...
0
votes
1
answer
72
views
How to determine the ITAR compatibility of a PyPI package?
I have used multiple PyPI packages in my project. I want to know whether each of them is ITAR compatible.
I have tried to find this information for tensorflow. I couldn't find the information in the ...
0
votes
2
answers
115
views
How to use eval() in a function from library with functions which are defined outside of this library?
I have recently developed and uploaded to PyPI a library which has a function where eval() is used:
def adv_prod(start,end,rule):
ending_seq = list_prod([eval(rule) for i in range(start,end+1)])
...
0
votes
0
answers
100
views
PIP installing lowest possible version of dependency without explanation
AFAIK, pip's default behavior is to install latest released versions of subdependencies, which satisfy all requirements. However, I'm observing quite the opposite behavior when trying to install my ...
0
votes
0
answers
95
views
How can I install scikit-learn from source using my locally modified clone
I have made modifications to the scikit-learn codebase that I want to test locally, but when I run pytest, I get the error "scikit-learn is not built correctly".
So I try to build it by ...
0
votes
1
answer
66
views
specify different required python version for users vs. contributors
When building the following pyproject.toml:
[build-system]
requires = [ "poetry-core",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "sigfig"
version = ...
1
vote
0
answers
52
views
Unsupported platform tag manylinux_2_31_riscv64
When trying to upload a wheel distribution to PyPI, all other architectures were accepted, except for manylinux_2_31_riscv64. I could not find any documentation on how to submit packages targeting the ...
0
votes
1
answer
355
views
Podman Error Creating Container: [POST operation failed]
I have a podman container which has a python file to run a script that creates a container of a specific image_name and container_name.
Recreate the issue by folwing the below instaructions:
mkdir ...
0
votes
0
answers
40
views
How to get rid of existing dist folder (or files in the folder) after building a Python package so that there's no file use conflict? [duplicate]
I'm working on a package for Python, and currently am manually building and uploading my package (to testpypi) each time I make a change. I'm using setuptools as my backend, and twine to upload the ...
-1
votes
3
answers
105
views
Differences between download a library form PyPi and CLI
What is the difference between directly downloading flask-3.0.3.tar.gz or
flask-3.0.3-py3-none-any.whl from https://pypi.org/ and run the command pip install flask?
I tried to download some libraries ...
1
vote
1
answer
156
views
How to install IBEIS software in python 3.12.3
I've been attempting to follow the instructions on the software website, which states the software is available in pypi for Linux (I'm using Ubuntu 24.04) but all methods I've tried are prompting ...
1
vote
1
answer
335
views
GitHub Actions fails to publish distribution package to test PyPI
I've been following the tutorial for automating the push of latest packages on pip from here. I'm trying to do it on Test PyPI for now.
My YAML configure release.yml file is:
name: Publish Python 🐍 ...
6
votes
2
answers
1k
views
Could not upload to pypi: 400 Bad Request from https://upload.pypi.org/legacy/
I have build a python package and prepared to make a distributable using twine using python setup.py sdist bdist_wheel. This created two files in the dist directory:
PACKAGENAME-0.1.1-py3-none-any.whl
...
2
votes
1
answer
84
views
How to automatically download or warn about a non-PyPi dependency of a Python package?
I have a Python package, which is distributed on PyPi. It depends on number of other packages available on PyPi and on Psi4, which is only distributed on Conda repositories (https://anaconda.org/psi4/...
-1
votes
2
answers
379
views
package python module with pybind11 extension that depends on shared libraries
I'm using pybind11 to create cross platform bindings to the c++ library named piper-phonemize.
The library depends on 2 native libraries - onnxruntime and espeak-ng.
There's cmake file which produce ...
2
votes
1
answer
269
views
How can I build / distribute / install Python packages with limited access to packages from PyPI?
At my workplace pip is not able to access the outside world to download packages. I'm not sure what system exactly is preventing this, but ideally I shouldn't be installing any old packages from the ...
0
votes
1
answer
306
views
Why does Github not use my id-token permissions, but sets other permissions correctly?
I am trying to set up Github actions to push to Pypi automatically.
However, for some reason, Github isn't setting the permissions of the token correctly. In the job logs, they show up as only:
...
1
vote
0
answers
495
views
which build-system shall be used with pyproject.toml to install system packages (Linux only, no windows)
I want to transition existing python 2.7 code base (2 .py files, nothing big) from 10+ years ago to python3 and more modern level of project handling. Python2 to python3 steps are out of scope here.
...
0
votes
1
answer
326
views
Is it possible to change the index URL for fetching `rules_python` itself in bazel?
I am currently attempting to do a custom build of envoy on a machine that does not have access to PyPi. My company's security team requires us to use a corporate proxy with a different URL to access ...
1
vote
1
answer
851
views
Does PyPI no longer allow uploads with username and password?
I've just republished one of my packages, but to do so, I had to give the username as __token__ and use an API Token I generated from the website as my password. Is there another way to authenticate ...
-1
votes
1
answer
740
views
Having problems with pip install: packaging.specifiers.InvalidSpecifier: Invalid specifier: '>="3.8"'
I'm totally new to coding in general. I was trying to run "pip install vision" command on my CMD which runs as administrator. I have following messages appearing for me:
C:\Windows\system32&...
0
votes
1
answer
77
views
How could the content of pip install and PyPI download be different? is pip broken?
Today I tried to install the latest pymavlink package:
https://pypi.org/project/pymavlink/
pip install pymavlink
Collecting pymavlink
Using cached pymavlink-2.4.41-py3-none-any.whl.metadata (6.2 kB)
...
0
votes
1
answer
395
views
Unable to install PYPI Package from Sonatype-Nexus in Docker container: "No matching distribution found"
I have a hosted PyPI Sonatype Nexus Repository named pypi, where I store several packages, including pillow.
On my local machine, I can install pillow without any issues from the self-hosted pypi ...
1
vote
1
answer
79
views
custom python package not importing
I wrote a package to collect data and now im trying to interact with it to store and serve said data, but it's not importing, even though I have installed it on pip. This is the PyPI page: https://...