Package Details: python-mmcv 1:2.2.0-4

Git Clone URL: https://aur.archlinux.org/python-mmcv.git (read-only, click to copy)
Package Base: python-mmcv
Description: OpenMMLab Computer Vision Foundation(cpu version, without cuda ops)
Upstream URL: https://github.com/open-mmlab/mmcv
Licenses: Apache-2.0
Submitter: hottea
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 1
Popularity: 0.000000
First Submitted: 2020-08-04 06:48 (UTC)
Last Updated: 2024-12-23 09:06 (UTC)

Latest Comments

hottea commented on 2024-02-19 01:22 (UTC)

@MarsSeed To build this pkg in a clean environment, you could follow this wiki, run cmd like this:

extra-x86_64-build -- -I python-addict.pkg.tar.xz -I python-mmengine.pkg.tar.xz

MarsSeed commented on 2024-02-18 12:56 (UTC)

And please make sure this can be built in a clean environment. Currently it fails:

==> Making package: python-mmcv 1:2.1.0-1 (2024-02-17, 13:47:48 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
* Getting build dependencies for wheel...
<string>:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup
    super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
  File "/usr/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 477, in <module>
  File "<string>", line 434, in get_extensions
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1074, in CUDAExtension
    library_dirs += library_paths(cuda=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1201, in library_paths
    if (not os.path.exists(_join_cuda_home(lib_dir)) and
                           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2407, in _join_cuda_home
    raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-mmcv

MarsSeed commented on 2024-02-17 12:40 (UTC)

Please kindly implement testing in PKGBUILD check(), using pytest.

acgtyrant commented on 2022-12-31 15:46 (UTC)

Add python-opencv as a dependence please. Because when I import mmcv in python it comlains importing cv2 failed.

sl1pkn07 commented on 2022-11-11 14:37 (UTC)

this build ok with gcc 11 (provided by cuda from [community]). gcc 10 is not needed

hottea commented on 2021-10-24 13:34 (UTC)

@skerit How did you install it? You could install it from here. According to the latest build log here, I don't see any error related to what you said.

skerit commented on 2021-10-23 23:26 (UTC)

I get this error when installing:

CUDA_HOME environment variable is not set. Please set it to your CUDA install root

I thought mmcv lite didn't need cuda?