Package Details: python-diffusers 0.30.3-1

Git Clone URL: https://aur.archlinux.org/python-diffusers.git (read-only, click to copy)
Package Base: python-diffusers
Description: Pretrained diffusion models for image and audio generation in PyTorch
Upstream URL: https://github.com/huggingface/diffusers
Keywords: diffusers huggingface models toolkit
Licenses: Apache-2.0
Groups: huggingface
Submitter: xyproto
Maintainer: daskol
Last Packager: daskol
Votes: 3
Popularity: 0.000007
First Submitted: 2022-09-06 10:40 (UTC)
Last Updated: 2024-09-27 17:19 (UTC)

Latest Comments

ngruychev commented on 2024-09-24 10:45 (UTC)

Issue: the check() function in the PKGBUILD misspells PYTHONPATH env var as PYHONPATH, preventing the package from being built automatically.

xiota commented on 2024-08-21 22:47 (UTC) (edited on 2024-08-21 22:48 (UTC) by xiota)

@danielmazurkiewi I don't know which exact packages are responsible, but don't think it's this one. Both python-h5py and hdf5 have to be the non-openmpi or openmpi versions. AUR helpers often have difficulty resolving this type of dependency. You probably need to specify the correct packages manually.

danielmazurkiewi commented on 2024-08-20 17:23 (UTC) (edited on 2024-08-20 17:28 (UTC) by danielmazurkiewi)

Looks like I'm getting conflicts with freecad dependencies

AUR Explicit (1): python-diffusers-0.30.0-1
AUR Dependency (2): python-safetensors-0.4.4-1, python-huggingface-hub-1:0.24.6-1
AUR Check Dependency (1): python-flax-0.8.5-1
Sync Check Dependency (6): python-black-24.8.0-1, python-pytest-benchmark-4.0.0-6, python-h5py-3.11.0-5, python-tensorflow-2.17.0-2, flake8-1:7.1.1-1, python-isort-5.13.2-3
Sync Make Dependency (2): python-maturin-1.7.0-1, python-setuptools-rust-1.9.0-3
Sync Dependency (2): python-regex-2024.7.24-1, python-pytorch-2.3.1-5
:: PKGBUILD up to date, skipping download: python-diffusers
:: PKGBUILD up to date, skipping download: python-safetensors
:: PKGBUILD up to date, skipping download: python-huggingface-hub
:: PKGBUILD up to date, skipping download: python-flax
  4 python-safetensors                       (Build Files Exist)
  3 python-huggingface-hub                   (Build Files Exist)
  2 python-flax                              (Build Files Exist)
  1 python-diffusers                         (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  4 python-safetensors                       (Build Files Exist)
  3 python-huggingface-hub                   (Build Files Exist)
  2 python-flax                              (Build Files Exist)
  1 python-diffusers                         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: python-diffusers 0.30.0-1 (Tue 20 Aug 2024 07:18:35 PM CEST)
==> Retrieving sources...
  -> Found diffusers-0.30.0.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    diffusers-0.30.0.tar.gz ... Passed
==> Making package: python-safetensors 0.4.4-1 (Tue 20 Aug 2024 07:18:35 PM CEST)
==> Retrieving sources...
  -> Found python-safetensors-0.4.4.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    python-safetensors-0.4.4.tar.gz ... Passed
==> Making package: python-huggingface-hub 1:0.24.6-1 (Tue 20 Aug 2024 07:18:36 PM CEST)
==> Retrieving sources...
  -> Found huggingface_hub-0.24.6.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    huggingface_hub-0.24.6.tar.gz ... Passed
==> Making package: python-flax 0.8.5-1 (Tue 20 Aug 2024 07:18:36 PM CEST)
==> Retrieving sources...
  -> Found flax-0.8.5.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    flax-0.8.5.tar.gz ... Passed
:: Remove make dependencies after install? [y/N] y
:: (1/4) Parsing SRCINFO: python-diffusers
:: (2/4) Parsing SRCINFO: python-safetensors
:: (3/4) Parsing SRCINFO: python-huggingface-hub
:: (4/4) Parsing SRCINFO: python-flax
resolving dependencies...
looking for conflicting packages...
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict. Remove hdf5-openmpi? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
resolving dependencies...
looking for conflicting packages...
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict. Remove hdf5-openmpi? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
resolving dependencies...
looking for conflicting packages...
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict. Remove hdf5-openmpi? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: python-h5py-3.11.0-5 and hdf5-openmpi-1.14.4.3-1 are in conflict
 -> error installing repo packages
error installing repo packages
error installing repo packages

matcheal commented on 2024-07-03 20:20 (UTC)

Building of python-safetensors fails, probably due to NumPy 2.0 incompatibility

===================================== short test summary info ======================================
ERROR tests/test_tf_comparison.py - AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================= 1 error in 1.90s =========================================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-safetensors-exit status 4

Lucki commented on 2024-07-02 10:45 (UTC)

The check() fails in a clean chroot:

[…]
adding 'diffusers-0.29.2.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built diffusers-0.29.2-py3-none-any.whl
==> Starting check()...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'diffusers'
==> ERROR: A failure occurred in check().
    Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/lucki/build

pekkarr commented on 2023-01-28 18:26 (UTC)

This fails to build in a clean chroot.

Traceback (most recent call last):
  File "/build/python-diffusers/src/diffusers-0.11.1/setup.py", line 74, in <module>
    from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'

Adding makedepends=(python-setuptools) would fix this problem.