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 in feedparser setup command: use_2to3 is invalid. #40

Open
omar-yehia opened this issue Apr 30, 2023 · 4 comments
Open

error in feedparser setup command: use_2to3 is invalid. #40

omar-yehia opened this issue Apr 30, 2023 · 4 comments

Comments

@omar-yehia
Copy link

I tried to install it
pip install pygooglenews

but I got this error

.
.
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel 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: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@markus-lei
Copy link

Hello,

I have the same issue on Mac OS. Tried downgrading setuptools but did not work :(

@ghost
Copy link

ghost commented May 27, 2023

The error message due to a breaking change in setuptools version 58.0.0. The setuptools package has removed support for 2to3 during builds.
You can try downgrading setup tools by running this command: pip install "setuptools<58.0".
After that, you can try running your pip install command again.
I hope this helps!

@benputman
Copy link

benputman commented Jul 19, 2023

this worked for me. (On Mac OS 13.4.1, Python 3.10.12)

pip install "setuptools<58.0"
pip install feedparser --upgrade
pip install setuptools

first line got it installed and the second resolved the outdated feedparser issue. Last line returns setuptools to normal

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

4 participants