python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.28k stars 581 forks source link

Unable to install eel with error: python setup.py egg_info did not run successfully. #727

Closed Gh0strab closed 4 months ago

Gh0strab commented 4 months ago

I am trying to install eel, I currently have windows 10 and python 3.8. Ran "pip install eel" and only get errors. I have tried upgrading pip and setuptools, as well as installing it using venv. None of these attempts have gotten the package to install. Here is the full error: `Microsoft Windows [Version 10.0.19045.4046] (c) Microsoft Corporation. All rights reserved.

C:\Users\willi>pip install eel Collecting eel Using cached Eel-0.16.0.tar.gz (24 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [22 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\willi\AppData\Local\Temp\pip-install-urvb1ukp\eel_569bda6b60294826b069105bb2ff009f\setup.py", line 7, in setup( File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools__init.py", line 102, in setup _install_setup_requires(attrs) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools__init__.py", line 70, in _install_setup_requires dist = MinimalDistribution(attrs) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools__init.py", line 52, in init super().init(filtered) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools\dist.py", line 297, in init for ep in metadata.entry_points(group='distutils.setup_keywords'): File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools_vendor\importlib_metadata\init__.py", line 856, in entry_points return EntryPoints(eps).select(**params) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools_vendor\importlib_metadata\init.py", line 854, in dist.entry_points for dist in _unique(distributions()) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools_vendor\importlib_metadata\init.py", line 454, in entry_points return EntryPoints._from_text_for(self.read_text('entry_points.txt'), self) File "C:\Users\willi\AppData\Local\Programs\Python\Python38\Lib\site-packages\setuptools_vendor\importlib_metadata\init__.py", line 762, in read_text return self._path.joinpath(filename).read_text(encoding='utf-8') AttributeError: 'WindowsPath' object has no attribute 'read_text' [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

[notice] A new release of pip is available: 23.1.2 -> 24.0 [notice] To update, run: python.exe -m pip install --upgrade pip

C:\Users\willi>`