kotartemiy / pygooglenews

If Google News had a Python library
https://newscatcherapi.com
MIT License
1.26k stars 134 forks source link

Unable to install: error in feedparser setup command: use_2to3 is invalid. #28

Closed ghost closed 2 years ago

ghost commented 2 years ago

I got this error while downloading package using pip3 install pygooglenews :

Collecting feedparser<6.0.0,>=5.2.1
  Using cached feedparser-5.2.1.zip (1.2 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in feedparser setup command: use_2to3 is invalid.
      [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.

Tried with pip3 install feedparser but no results

ghost commented 2 years ago

https://programmerah.com/solved-error-in-pycallgraph-setup-command-use_2to3-is-invalid-47341/ pip install setuptools==57.5.0 fixed