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

pip installation broken #2

Open
GuessWhoSamFoo opened this issue Mar 22, 2017 · 12 comments
Open

pip installation broken #2

GuessWhoSamFoo opened this issue Mar 22, 2017 · 12 comments

Comments

@GuessWhoSamFoo
Copy link

GuessWhoSamFoo commented Mar 22, 2017

I'm not sure if this API wrapper is still being actively maintained.

Running pip install NYTimesArticleAPI results in this error.

Collecting NYTimesArticleAPI
  Could not find a version that satisfies the requirement NYTimesArticleAPI (from versions: )
No matching distribution found for NYTimesArticleAPI

EDIT:
Temporary workaround by installing via pip locally

pip install -e <Path to NYTimesArticleAPI>
@prateeky2806
Copy link

The pip install is not working and while installing pip locally I am getting an error

"python setup.py egg_info" failed with error code 1 in /tmp/pip-ADB9WL-build/

Can anyone please fix this or suggest me some way to install this package.

@GuessWhoSamFoo
Copy link
Author

Did you try updating setuptools yet?

@prateeky2806
Copy link

prateeky2806 commented Apr 4, 2017

@GuessWhoSamFoo
Yes, I have tried all the thing mentioned on this page including upgrading setuptools. Can it be some problem with C compiler? I am using bash on windows but also tried it on ubuntu and it didn't work for me.

@GuessWhoSamFoo
Copy link
Author

@prateeky2806 Hmm... I doubt it is the C compiler. Maybe try running sudo pip , that works sometimes. Other than that, I would check the logs to see if any dependencies are missing.

@nkramer44
Copy link

Did anyone ever figure out why pip install isn't working? The package shows up in pip search, but can't be installed for the same reason as @prateeky2806 was having. setuptools and requests are both updated

@GuessWhoSamFoo
Copy link
Author

Not really sure. I just did an install on a new virtual environment using Anaconda on Ubuntu 16.04 without any issues.

@ChampeBarton
Copy link

ChampeBarton commented Nov 4, 2017

Has anybody figured this one out yet? Setuptools and requests are both updated and I'm getting

Could not find a version that satisfies the requirement nytimesarticleapi (from versions: ) No matching distribution found for nytimesarticleapi

The package shows up in a pip install search, and shows up online @ https://pypi.python.org/pypi/nytimesarticleapi, too; however, that link says the package was authored by Brendan Ryan and his github homepage gives a 404error. Could really use some help!

I also notice in Matt's Progress Tracking he has yet to check off "upload to PyPI" ... could that be the problem?

@people-can-fly
Copy link

people-can-fly commented Jan 31, 2018

Basically i copied the code from NYTimesArticleAPI/NYTimesArticleAPI/search_api.py and replaced it with my installed nytimesarticle file nytimesarticle.py

Thus it removed

def _utf8_encode(self, d): ......

which prevented nytimesarticle module to work with python3, throwing TypeError:must be str,not bytes on search function of the api.

@cbjrobertson
Copy link

cbjrobertson commented Feb 21, 2018

Has anyone solved this?

Update: I replaced the nytimesarticle file nytimesarticle.py with NYTimesArticleAPI/NYTimesArticleAPI/search_api.py and it seems to be working fine, with no Type Error: must be str, not bytes. I don't know if this is a good solution, but it's working for me.

@ChampeBarton
Copy link

ChampeBarton commented Feb 21, 2018 via email

@deveArt
Copy link

deveArt commented Jun 6, 2019

This
ModuleNotFoundError: No module named 'ez_setup'

caused an installation error:
pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-s52oqssv/NYTimesArticleAPInew/

installation of ez_setup doesn't help. I think it should be removed from setup.py

@lud0
Copy link

lud0 commented Jul 2, 2019

@deveArt the same for me, I've removed it in my fork and now it's working.

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

8 participants