konstantint / matplotlib-venn

Area-weighted venn-diagrams for Python/matplotlib
MIT License
507 stars 68 forks source link

Installation issue: Setuptools update #80

Closed affanadly closed 1 month ago

affanadly commented 1 month ago

I can't get matplotlib-venn installed, due to a setuptools issue on its recent update (probably related to https://github.com/pypa/setuptools/issues/4519). The following is the output when I try to install it via pip:

Collecting matplotlib-venn
  Using cached matplotlib-venn-1.0.0.tar.gz (34 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Affan\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Affan\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Affan\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Affan\AppData\Local\Temp\pip-build-env-pbypuf86\overlay\Lib\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Affan\AppData\Local\Temp\pip-build-env-pbypuf86\overlay\Lib\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "C:\Users\Affan\AppData\Local\Temp\pip-build-env-pbypuf86\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 14, in <module>
      ModuleNotFoundError: No module named 'setuptools.command.test'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
asif7adil commented 1 month ago

Hi @affanadly,

try installing setuptools with a specific version like following: pip install --force-reinstall -v "setuptools == 72.0.0"

and then try installing matplotlib-venn

Best, Asif

affanadly commented 1 month ago

Works now, thank you!