Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "python setup.py egg_info did not run successfully" while installing googletrans==3.1.0a0 #407

Open
Dnyana opened this issue May 22, 2024 · 0 comments

Comments

@Dnyana
Copy link

Dnyana commented May 22, 2024

We are getting following error on RHEL 8.4 server while installing specific googletrans==3.1.0a0.

 pip install googletrans==3.1.0a0

Collecting googletrans==3.1.0a0

Using cached googletrans-3.1.0a0.tar.gz (19 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

×python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [29 lines of output] /usr/sap/PD2/dataservices/DataQuality/python/lib/python3.8/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options !!

      ********************************************************************************
      Usage of dash-separated 'description-file' will not be supported in future
      versions. Please use the underscore name 'description_file' instead.

      By 2024-Sep-26, you need to update your project and remove deprecated calls
      or your builds will no longer be supported.

      See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
      ********************************************************************************

!!
opt = self.warn_dash_deprecation(opt, section)
/usr/sap/PD2/dataservices/DataQuality/python/lib/python3.8/site- packages/setuptools/_distutils/dist.py:266: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
/usr/sap/PD2/dataservices/DataQuality/python/lib/python3.8/site-packages/setuptools/_distutils/dist.py:266: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/sap/PD2/dataservices/DataQuality/python/lib/python3.8/site-packages/setuptools/_distutils/dist.py:266: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/usr/sap/PD2/dataservices/DataQuality/python/lib/python3.8/site-packages/setuptools/dist.py:318: InformationOnly: Normalizing '3.1.0-alpha' to '3.1.0a0'
self.metadata.version = self._normalize_version(self.metadata.version)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'egg_info'
[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.`

Our Environment pd2adm@gcppcsdsl02a:/usr/sap/PD2/home#pip -V pip 24.0 from XX/python/lib/python3.8/site-packages/pip (python 3.8) python3 -V Python 3.8.13

I also ran pip check and following is output.

pip check

No broken requirements found.

pip show setuptools

Name: setuptools Version: 70.0.0 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: ``https:/pypa/setuptools Author: Python Packaging Authority Author-email: [email protected]

pip show wheel

Name: wheel Version: 0.43.0 Summary: A built-package format for Python Home-page:

Please help to troubleshoot the issue.

I was expecting a successful installation of package. This has been installed successfully in QA environment but failing in production environment.

Thanks, Dnyandev Kondekar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant