imagededup icon indicating copy to clipboard operation
imagededup copied to clipboard

I can't install it on Fedora41

Open LRoInT opened this issue 11 months ago • 1 comments

Is this package use MS C++? When I install it, it return an error:

  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Running from numpy source directory.
      <string>:394: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      /tmp/pip-install-jg6xzwxp/numpy_64bc8abbc31c42aba3e3387cf29384ad/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
        return is_string(s) and ('*' in s or '?' is s)
      Traceback (most recent call last):
        File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/tmp/pip-build-env-4p6a_had/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-4p6a_had/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-4p6a_had/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 419, in <module>
        File "<string>", line 398, in setup_package
        File "/tmp/pip-install-jg6xzwxp/numpy_64bc8abbc31c42aba3e3387cf29384ad/numpy/distutils/core.py", line 26, in <module>
          from numpy.distutils.command import config, config_compiler, \
          ...<2 lines>...
               install_clib
        File "/tmp/pip-install-jg6xzwxp/numpy_64bc8abbc31c42aba3e3387cf29384ad/numpy/distutils/command/config.py", line 19, in <module>
          from numpy.distutils.mingw32ccompiler import generate_manifest
        File "/tmp/pip-install-jg6xzwxp/numpy_64bc8abbc31c42aba3e3387cf29384ad/numpy/distutils/mingw32ccompiler.py", line 34, in <module>
          from distutils.msvccompiler import get_build_version as get_build_msvc_version
      ModuleNotFoundError: No module named 'distutils.msvccompiler'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

On my Fedora41, Python won't have distutils.msvccompiler. I think MSVC for Windows System, so it can't install on Fedora.

LRoInT avatar Jan 20 '25 02:01 LRoInT

How are you installing it? In the new release, there's also sdists distributed along with wheels- You can try to pip install the package again to see if it works.

tanujjain avatar May 21 '25 11:05 tanujjain