Skip to content

ImportError: cannot import name 'OptionError' from 'distutils.errors' #858

@nehaljwani

Description

@nehaljwani
(dev) wani@lenovo /t/nwani_1650475278 ❯❯❯ pip install babel
Collecting babel
  Using cached Babel-2.10.0-py2.py3-none-any.whl (9.5 MB)
Collecting pytz>=2015.7
  Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Installing collected packages: pytz, babel
Successfully installed babel-2.10.0 pytz-2022.1

(dev) wani@lenovo /t/nwani_1650475278 ❯❯❯ pip freeze                                                                                                                                                 
Babel==2.10.0
pytz==2022.1

(dev) wani@lenovo /t/nwani_1650475278 ❯❯❯ pip check
No broken requirements found.

(dev) wani@lenovo /t/nwani_1650475278 ❯❯❯ pybabel --help
Traceback (most recent call last):
  File "/tmp/nwani_1650475278/dev/lib64/python3.9/site-packages/babel/messages/frontend.py", line 39, in <module>
    from setuptools import Command as _Command
ModuleNotFoundError: No module named 'setuptools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/nwani_1650475278/dev/bin/pybabel", line 5, in <module>
    from babel.messages.frontend import main
  File "/tmp/nwani_1650475278/dev/lib64/python3.9/site-packages/babel/messages/frontend.py", line 50, in <module>
    from distutils.errors import OptionError as OptionError, DistutilsSetupError as SetupError, DistutilsError as BaseError
ImportError: cannot import name 'OptionError' from 'distutils.errors' (/usr/lib64/python3.9/distutils/errors.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions