990 questions
0
votes
0
answers
70
views
How to specify interpreter, platform, and ABI for cross-platform Python wheel installation with uv install?
I am trying to download and install Python wheel packages into a uv virtual environment for a non-native (cross-platform) target environment.
When using pip, I would typically use flags like --...
1
vote
1
answer
99
views
How to deploy a file to the system from a wheel?
For given project:
.
├── demo
│ └── __init__.py
├── demo.bin
└── setup.py
demo/__init__.py:
if __name__ == "__main__":
print("You're in demo")
demo.bin:
#!/bin/bash
echo &...
0
votes
1
answer
47
views
Unable to authorize databricks from Azure Devops Stage
I'm trying to build a devops pipeline that allows to upload a python wheel file to my databricks volume.
However I keep getting the error : "Error: Authorization failed. Your token may be expired ...
0
votes
0
answers
98
views
Create a Pip Wheel for OpenCV Built from Source to Prevent Overwriting with Library Dependencies
I have a Dockerfile that builds OpenCV from source with cuda. The build itself succeeds, but pip doesn’t recognize this custom installation. As a result, when I later install a Python package that ...
1
vote
1
answer
407
views
Installing Custom Python Wheel Packages in a Databricks Serverless Notebook
I have some custom functions and classes that I packaged as a Python wheel. I want to use them in my python notebook (with a .py extension) that runs on a serverless Databricks cluster.
I have read ...
0
votes
0
answers
97
views
PEX Build Fails Due to Missing manylinux_2_17 or manylinux_2_27 Wheels for numpy and pandas on Python 3.12
I’m building a PEX file for a Python 3.12 project (system-monitor) targeting Amazon Linux 2023 (glibc 2.34) on both x86_64 and aarch64 architectures. I’m using PEX with --platform options to enforce ...
2
votes
1
answer
81
views
pip install using a separate build machine
I have two same-architecture Linux boxes running identical versions of pypy, installed via pyenv. Consider one a "production" machine and one a "build" machine, such that the ...
1
vote
1
answer
151
views
How to use pyproject.toml with python-3.6?
I created my simple Python-module. The pyproject.toml reads:
[project]
authors = [
{name = "Me Me", email = "[email protected]"}
]
name = "Mysms"
description = "...
0
votes
0
answers
63
views
Can I specify a different directory for transient files, when invoking Python build-module?
I currently build my simple Python module with a command like:
python3 -m build --wheel --outdir /tmp .
This creates the /tmp/mypackage-0.1-py3-none-any.whl -- as one would expect. However, it also ...
0
votes
0
answers
75
views
How to freeze Python build tools for repeatable builds?
TL;DR: When pip install builds and installs wheels, how do I determine which versions of build tool packages (e.g. Cython) it used? How do I force it to use the same versions of those packages in the ...
1
vote
1
answer
108
views
Python builds wheel file with restricted permissions/access list in Windows
I'm building a python wheel file using a toml file on both Linux and Windows. Linux seems to work ok, but on Windows (using clion/cmake) the wheel file is getting built with a very restricted access ...
0
votes
2
answers
73
views
Locally installed Python wheel throwing ModuleNotFoundError
Recently I've been trying to learn a bit more about how to build python modules and share code amongst my personal projects. This is my first attempt and I'm running into errors and I'm having a tough ...
2
votes
2
answers
501
views
Fails new wheel version [closed]
10 hours ago Python Packaging Authority release wheel of version 0.46.1. It fails in our pipeline. Do you have same problem?
It returns this error:
error: invalid command 'bdist_wheel'
Therefore, we ...
1
vote
0
answers
145
views
How to preserve autocompletion and docstrings when building a .whl with Nuitka?
I'm building a .whl package for a Python library using Nuitka.
To generate the wheel, I use the following command:
python setup.py bdist_nuitka
The wheel is created successfully, and after installing ...
0
votes
1
answer
111
views
Polars wheel file
The provided whl files for polars library are tagged as abi3. I am working with specific setup that needs ABI tag to be cp39. I tried unpacking and packing again while changing the tag but still not ...
0
votes
1
answer
982
views
How to compile FlashAttention wheels faster?
Currently the compilation of the Python wheel for the FlashAttention 2 (Dao-AILab/flash-attention) Python package takes several hours, as reported by multiple users on GitHub (see e.g. this issue). ...
2
votes
2
answers
151
views
Can't install matplotlib in Python 3.6
I've created a Python 3.6 environment in my WSL Ubuntu 22.04 operating system using virtualenv -p python3.6 <my_env>. I need to download some packages, particularly matplotlib, but I'm having ...
0
votes
0
answers
157
views
Pytsk3 installed with .whl file does not work
I tried to use pytsk3 in my python project to extract files from .img files. Pytsk3 (https://github.com/py4n6/pytsk) is a python binding for the Sleuth Kit. It works fine on my laptop (windows 11 pro ...
0
votes
1
answer
292
views
Failed building wheel for pyarrow
I'm using Python 3.9.18 on my Mac 14.0.6. I tried to install skimpy by running
!pip install skimpy. However, I kept getting the same error "ERROR: Could not build wheels for pyarrow, which is ...
0
votes
0
answers
93
views
Buiding wheels in github actions using a dependency on other local wheels
Context:
I have a first private github repository with a release containing one python wheel.
In a second public repository I have a python module depending on this wheel, I am using github actions to ...
0
votes
0
answers
223
views
Which python pillow wheel for my system? Can't tell
I tried to install Python pillow via pip and it failed to create a wheel. I'm trying to guess which downloadable wheel I can use, but the first four I tried give me:
C:\Users\dcorn\Downloads>python ...
1
vote
0
answers
83
views
How do I implement 2 different builds for my python project? One for uploading to pypi and another for local usage and mypycify optimizations
I have built a basic python project. The project at its core is using a toml file to store all the configurations and build rules (see below):
[project]
authors = [{ name = "name", email = &...
0
votes
1
answer
249
views
Wheel File Not Including templates Directory and Root Files in Python Package
Background:
I am new to using the standard Python packaging tools and have typically relied on custom tooling. However, I’ve decided to get a better understanding of the packaging process, but I’m ...
0
votes
0
answers
155
views
Is egg-info still the recommended way to manage python packages installed in editable mode?
I am installing local python package in editable mode, using a pyproject.toml file to configure it. The pyproject.toml looks like this:
[build-system]
requires = ["setuptools", "...
1
vote
2
answers
3k
views
error: command '/usr/bin/g++' failed with exit code 1
I have the error "error: command '/usr/bin/g++' failed with exit code 1" when trying to install python package QuTip via Juyter notebook:
and below "error: command '/usr/bin/g++' ...
1
vote
2
answers
742
views
Failed building wheel for pillow-heif with error Pointer is missing a nullability type specifier
While trying to install Wagtail on MacOS Monterey with pip the build fails with many errors like these:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdlib.h:134:25: error: ...
0
votes
1
answer
217
views
How to switch off automatic wheel building in databricks asset bundle python wheel task
I have the following databricks asset bundle job defintion:
- task_key: test-model-from-wheel
python_wheel_task:
entry_point: run # Entry point of the wheel
...
0
votes
1
answer
960
views
Generate and Deploy Wheel file to the Databricks Cluster from VS Code
I have a scenario where I need to generate a versioned Wheel file and upload it automatically to a Databricks cluster using VS Code, without creating workflows or jobs like those in Databricks Bundles....
3
votes
1
answer
80
views
Build a wheel and Install package version depending on OS
I have several python packages that need to be installed on various os/environments. These packages have dependencies and some of them like Polars needs a different package depending on the OS, for ...
3
votes
1
answer
96
views
Python wheel entry point not working as expected on Windows
I'm tryring to setup a python wheel for my testrunner helper script to make it easyly acessible from everywhere on my Windows machine. Therefore I configure a console entry point in my setup.py. I can ...
0
votes
3
answers
117
views
Why is pyproject-build.exe not on PATH in Anaconda, and how can I ensure both .tar.gz and .whl distributions are created with py -m build?
I am trying to package a Python project using py -m build within an Anaconda environment. However, I noticed that only the .tar.gz source distribution is being created, and the .whl (wheel) ...
2
votes
2
answers
410
views
picframe Install on Raspberry Pi 3B, Bullseye OS, pi-heif wheel fails to build
Novice Raspberry Pi user here trying to build a digital picture frame. The problem I'm running into is the pi-heif wheel won't successfully build.
I'm using Python3.11.2, the latest libheif library is ...
0
votes
0
answers
220
views
How to cross-compile Rust-based Python wheel
I want to create a Python wheel that will run on both Windows and Linux (x86_64 and possibly ARM). I want to write the data processing code in Rust and have Python call the Rust code, so I am going to ...
1
vote
1
answer
144
views
Trying to install package: ERROR filename.whl is not a supported wheel on this platform
I am trying to install a package for Python, I think I have the right .whl but I'm not good at this.
I'm trying to install pycryptodome-3.21.0-pp310-pypy310_pp73-win_amd64.whl which is saved on my ...
1
vote
0
answers
48
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 ...
1
vote
1
answer
19k
views
Identify the full path to xxx/library/bin in python
I have an application that depends on intel-fortran-rt
When installed via pip install intel-fortran-rt==2021.3.0, the intel fortran runtime dlls are copied into xxx\Library\bin
The problem is to ...
0
votes
1
answer
162
views
How to include a directory with compiled binaries in a Python wheel using pyproject.toml?
I want to create a Python wheel that contains a single Python module (script.py) and a directory of compiled C++ binaries. Below is my project structure:
root/
│
├── bin/
│ ├── binary1
│ ├── ...
1
vote
0
answers
106
views
Databricks logging for a wheel task
I'm trying to run a Databricks wheel task and print some logs. I created a logging utility:
# log_utils.py
import sys
import logging
from typing import Optional
def setup_logging(
name: Optional[...
0
votes
0
answers
108
views
How to check, the metadat of a WHL file (python library package) in order to know what it wants for : platform, interpreter and version
I know, you'd ask why I would want to this, so I have a WHL file to install on windows with a title like :
nameAndVersion-cp38-cp38-win_amd64.whl
Sadly, it does not install the result is :
Error "...
0
votes
0
answers
55
views
How should I include a 3rd party program into python platform-wheels?
There's a 3rd party program (VeraCrypt) that'd I'd like to use in python, so I'm looking at creating a python package around it. I want to make it so if you download the package, it will "just ...
-1
votes
2
answers
332
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
726
views
Failed building wheel for tflite-support
Using pip install tflite-support, this is the full output and error message:
Collecting tflite-support
Using cached tflite-support-0.1.0a1.tar.gz (390 kB)
Preparing metadata (setup.py) ... done
...
0
votes
1
answer
6k
views
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (fisher)
I am trying to install fisher in Python using
pip install fisher
but I keep getting the following error:
Collecting fisher
Using cached fisher-0.1.14.tar.gz (22 kB)
Installing build ...
1
vote
0
answers
465
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.
...
-1
votes
1
answer
157
views
How to publish multi platform python package
For our projects we need our own developped python package but it's currently compiled only for python 3.7. For many reason we would like to bypass this restriction and use it with any >=3.7 python ...
0
votes
0
answers
200
views
How to add files outside of src directory to Python wheel
I have a Python package with the following directory structure:
project_root_dir/
├── config/
│ └── (config files)
├── src/
│ ├── sophios/
│ │ └── (source files)
├── setup.py
├── MANIFEST.in
...
1
vote
1
answer
145
views
Wheels created by "pip freeze" and "pip wheel" not usable with --no-index and --find-links?
I created wheels from an existing venv, that resulted in, among others, the following wheel. The wheel was created within docker, with a Python version of 3.9 (the smallest possible versions were ...
0
votes
2
answers
2k
views
cuDF installation failure: "Didn't find wheel for cudf-cu12 24.6.1"
I'm trying to install cuDF to gain the glorious powers of multithreading my NVIDIA GPU in my python scripts. However, I can't install cuDF.
To install cuDF, i went to https://docs.rapids.ai/install ...
1
vote
0
answers
150
views
vsruntime DLLs conflict after delvewheel repair
I am building wheel package for pypi, that usually is OK, but after updating some thirdparties I've got an error:
>>> from meshlib import mrmeshpy as mm
Traceback (most recent call last):
...
1
vote
0
answers
69
views
How to ensure that at least one optional dependency is specified during installation of a python wheel?
I have a unique use case where my python package specifies 3 optional dependencies to setuptools.setup using the extras_require argument. While each of those individual dependencies is kind of ...