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

i Can't Install it!!! #33

Open
shred66 opened this issue Jan 3, 2023 · 7 comments
Open

i Can't Install it!!! #33

shred66 opened this issue Jan 3, 2023 · 7 comments

Comments

@shred66
Copy link

shred66 commented Jan 3, 2023

i tried pip install pygooglenews on the cmd, and also on the terminal of VisualStudio Code but it gives me this error everytime:

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.

i tried different methods, such as to upgrade pip, pip3, and various solutions people propose here: facebook/prophet#418

but nothing works....

If someone has any help, it would be helpful!
Thanks

@andrewten45
Copy link

Hey, this might be helpful since I also had the same issue. I found out through a little digging that setuptools versions after v58 break use_2to3 functionality in certain packages. After running pip install setuptools==58, pip install pygooglenews --upgrade went through without any issue.

@shred66
Copy link
Author

shred66 commented Jan 7, 2023

@andrewten45 thank you!!
Due to time limit i also tried using another similar package gnews , from gnews import GNews and it worked fine with python 3.11 and pip/pip3 22.3.1

@GuguJow
Copy link

GuguJow commented Feb 17, 2023

@andrewten45 you saved my life

@ak7991
Copy link

ak7991 commented Apr 23, 2023

Generally updating setuptools or wheel or ez_setup resolves such bugs... But apparently in this case setuptools of the particular version number <=58 was needed as @andrewten45.... Thanks for the guidance and bug analysus @andrewten45

@tyson-ni
Copy link

tyson-ni commented May 3, 2023

I ran into the same issue on Macbook, however pip install setuptools==58 didn't solve it for me.

@m4ttgit
Copy link

m4ttgit commented Jun 12, 2023

@JackDance
Copy link

I attempted the following steps and succeeded.

  1. install specified version of setuptools
    pip install setuptools==57.5.0
  2. install pygooglenews
    pip install pygooglenews

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

7 participants