Package Details: python-basicsr-cuda 1.4.2-1

Git Clone URL: https://aur.archlinux.org/python-basicsr.git (read-only, click to copy)
Package Base: python-basicsr
Description: Open Source Image and Video Restoration Toolbox for Super-resolution, Denoise, Deblurring, etc.
Upstream URL: https://github.com/xinntao/BasicSR
Licenses: Apache 2.0
Conflicts: python-basicsr
Provides: python-basicsr
Submitter: huyz
Maintainer: huyz
Last Packager: huyz
Votes: 2
Popularity: 0.000000
First Submitted: 2021-10-14 13:00 (UTC)
Last Updated: 2022-10-21 12:39 (UTC)

Latest Comments

Tom_B commented on 2024-02-23 12:01 (UTC)

Build fails with error (not the one fixed by Vitruvius suggestion below):

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/tom/python-basicsr/src/BasicSR-1.4.2-cuda/setup.py", line 147, in <module>
    setup(
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.11/site-packages/setuptools/command/install.py", line 78, in run
    return orig.install.run(self)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/install.py", line 697, in run
    self.run_command('build')
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 88, in run
    _build_ext.run(self)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 871, in build_extensions
    build_ext.build_extensions(self)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
    objects = self.compiler.compile(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 684, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2112, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
==> ERROR: A failure occurred in package_python-basicsr-cuda().

Vitruvius commented on 2023-07-29 08:14 (UTC) (edited on 2023-07-29 08:16 (UTC) by Vitruvius)

I ran into a problem when trying to install python-basicsr with yay. It also tried to build python-basicsr-cuda. That might be problem with yay, not this package. I don't know.

But I tracked down the problems with building python-basicsr-cuda anyways:

Compiling objects...
Allowing ninja to set a default number of workers...
[1/3] bin/hipcc  -DWITH_CUDA -I/usr/lib/python3.11/site-packages/torch/include ...
FAILED: /home/vitruvius/.cache/yay/python-basicsr/src/BasicSR-1.4.2-cuda/build/temp.linux-x86_64-cpython-311/basicsr/ops/dcn/src/deform_conv_hip_kernel.o
/bin/sh: line 1: bin/hipcc: No such file or directory
  1. It requires makedepends=('hip') e.g. hip-runtime-amd
  2. The build requires export ROCM_HOME=/opt/rocm/

After ROCM_HOME is set to a director with bin/hipcc, the build completes fine.

hashworks commented on 2023-06-20 00:29 (UTC)

makedepends on python-pip.

Freed commented on 2022-11-17 08:57 (UTC)

I met

running build_ext
error: [Errno 2] No such file or directory: 'which'
==> ERROR: A failure occurred in package_python-basicsr-cuda().
    Aborting...
 -> error making: python-basicsr (python-basicsr-cuda)