helpful-van-10149
04/24/2024, 4:28 PMpip install -U flytekit
but got the error below:
root@8c31a56d6646:/# pyflyte
Traceback (most recent call last):
File "/usr/local/bin/pyflyte", line 5, in <module>
from flytekit.clis.sdk_in_container.pyflyte import main
File "/usr/local/lib/python3.8/dist-packages/flytekit/__init__.py", line 305, in <module>
load_implicit_plugins()
File "/usr/local/lib/python3.8/dist-packages/flytekit/__init__.py", line 299, in load_implicit_plugins
discovered_plugins = entry_points(group="flytekit.plugins")
TypeError: entry_points() got an unexpected keyword argument 'group'
Does anyone can help to debug?proud-answer-87162
04/24/2024, 4:39 PMhelpful-van-10149
04/24/2024, 5:26 PMproud-answer-87162
04/24/2024, 5:36 PMpyflyte info
), so if you're getting the error with a simple command i don't think it's related to py versionhelpful-van-10149
04/24/2024, 5:54 PMhelpful-van-10149
04/24/2024, 8:05 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
helpful-van-10149
04/24/2024, 8:26 PMhelpful-van-10149
04/24/2024, 8:26 PMthankful-minister-83577
thankful-minister-83577
$ docker run -ti python:3.8-slim-buster bash
root@8a2499a9bba2:/# pip install importlib_metadata
Collecting importlib_metadata
Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB)
Collecting zipp>=0.5
Downloading zipp-3.18.1-py3-none-any.whl (8.2 kB)
Installing collected packages: zipp, importlib_metadata
Successfully installed importlib_metadata-7.1.0 zipp-3.18.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
root@8a2499a9bba2:/# python
Python 3.8.17 (default, Jun 13 2023, 12:24:40)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib_metadata import entry_points
>>> entry_points(group="flytekit.plugins")
EntryPoints(())
thankful-minister-83577
importlib_metadata
?thankful-minister-83577
pip show importlib_metadata
helpful-van-10149
04/24/2024, 8:37 PMhelpful-van-10149
04/24/2024, 8:40 PMpip install -U importlib_metadata
then the pyflyte works!helpful-van-10149
04/24/2024, 8:41 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
helpful-van-10149
04/24/2024, 9:02 PMthankful-minister-83577
thankful-minister-83577
freezing-airport-6809