wkentaro / labelme

Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
https://labelme.io
Other
13.52k stars 3.41k forks source link

Installation fails in python 3.12.1 #1389

Closed weicheng-tseng closed 10 months ago

weicheng-tseng commented 10 months ago

Provide environment information

Python 3.12.1

What OS are you using?

Microsoft Windows 10 Enterprise Edition

Describe the Bug

After trying to install labelme with python -m pip install labelme, I get the following error message.

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [22 lines of output] Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\user\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\user\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\user\AppData\Local\Temp\pip-build-env-fqm_q7w7\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\AppData\Local\Temp\pip-build-env-fqm_q7w7\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\user\AppData\Local\Temp\pip-build-env-fqm_q7w7\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "C:\Users\user\AppData\Local\Temp\pip-build-env-fqm_q7w7\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 162, in File "", line 125, in main File "", line 75, in get_long_description UnicodeDecodeError: 'cp950' codec can't decode byte 0xf0 in position 3647: illegal multibyte sequence [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.

Even after I set the encoding to utf-8 and the result of sys.getfilesystemencoding() has shown 'utf-8', the error remains.

Please help.

Expected Behavior

Successful installation

To Reproduce

No response