Failed to build python app in Heroku; can't find newscatcher - python

In trying to push to heroku I am getting a "build failed" error.
In checking the logs I see it's because of the following:
ERROR: Could not find a version that satisfies the requirement newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13)) (from versions: none)
ERROR: No matching distribution found for newscatcher==0.1.0 (from -r /tmp/build_3ad91c7bdb0b7ae3e65e7d3b8ae455f7/requirements.txt (line 13))
! Push rejected, failed to compile Python app.
! Push failed
It looks like there's an incorrect version of the "newscatcher" library I am trying to use. However, this is the correct version according to PyPi.
In addition I have already performed a pip3 freeze > requirements.txt in order to collect all dependencies I know to be relevant. How come the correct version of a git supported pip package is throwing this error? How do I fix this?

Related

Could not find a version that satisfies requirements aptural==0.5.2 in heroku

I trying to deploy heroku my django app and got a error like this I
don’t know why the says that could not find version in apturl version
in requirements.txt but there is apturl in there.And also I’m using a
ubuntu os to deploy to deploy this app.I have found a previous question
like this I tried that also and it didn’t work either.
ERROR: Could not find a version that satisfies the requirement
apturl==0.5.2 (from -r /tmp/build_750f707f/requirements.txt (line 1))
(from versions: none)
And also in my requirements.txt file has apturl==0.5.2 in first line.Please help in advance thanks.

can't find my packages from pycharm/heroku

I have deployed a package into https://pypi.org/project/core-lib/0.0.1.dev1/
But pycharm or heroku can't find my package with this error message
Can you help me, please?
Thank you
Pycharm
No matching package version found: 'core-lib==0.0.1.dev1' (required: ==0.0.1.dev1, installed: <nothing>, latest: <nothing>)
heroku deploy
-----> Installing requirements with pip
ERROR: Could not find a version that satisfies the requirement core-lib==0.0.0.8 (from -r /tmp/build_c6b601b1/requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for core-lib==0.0.0.8 (from -r /tmp/build_c6b601b1/requirements.txt (line 1))
! Push rejected, failed to compile Python app.
! Push failed
Installed your package from pypi using PyCharm, and I am able to find it
(randomtesting) C:\Users\User\PycharmProjects\randomtesting>pip list
Package Version
---------------------- -------------------
core-lib 0.0.1.dev1
Perhaps the file was released into pypi very recently?
And I checked the link again, now it has the latest version.
Maybe try this?
pip install core-lib
You've declared that your package must be used under Python >= 3.7. Please make sure you use Python with high enough version. For example, I tried to install the package with Python 2.7 and pip failed to find the project. With Python 3.7 it was installed successfully.

ERROR: Could not find a version that satisfies the requirement get in requirement.text

I tried running git push heroku master in cmd but got the following error:
ERROR: Could not find a version that satisfies the requirement get (from -r /tmp/build_8801ce40/requirements.txt (line 2)) (from versions: none)
ERROR: No matching distribution found for get (from -r /tmp/build_8801ce40/requirements.txt (line 2))
remote: ! Push rejected, failed to compile Python app.
I have listed in my requirements.txt as below:
Flask==0.11.1
get
gunicorn==19.6.0
post
requests
wikipedia
line-bot-sdk
pandas==0.20.3
googletrans
What is the problem, and how can I fix it?
Your requirements.txt should only contain modules that you need to install. get and post almost certainly don't belong here.
If you are doing something like
from requests import get
you'll need requests in your file. But you don't need get—it comes with requests. That's what the from requests part means.
Try editing your requirements.txt to something more like this:
Flask==0.11.1
gunicorn==19.6.0
requests
wikipedia
line-bot-sdk
pandas==0.20.3
googletrans
Then commit and redeploy.
A good way to make sure that your requirements.txt contains what it should is to use it in development, too. Add new dependencies directly to that file and then pip install -r requirements.txt. In this case, you would have caught the problem earlier.

Cloud Function Package won't download

I have a little (big) problem that I can't solve , I tried to find a solution to it but I can't get anything. Maybe you will see it better than me. it seems it can't import a package, Here is the error :
Build failed: `pip_download_wheels` had stderr output:
ERROR: Could not find a version that satisfies the requirement fr-core-news-md==2.2.5 (from -r requirements.txt (line 38)) (from versions: none)
ERROR: No matching distribution found for fr-core-news-md==2.2.5 (from -r requirements.txt (line 38))
error: `pip_download_wheels` returned code: 1; Error ID: D670E3AB
my main.py file:
import fr_core_news_md
my requirements.txt:
fr-core-news-md==2.2.5
Thank you
Cloud Functions is failing to install the fr-core-news-md dependency because there is no fr-core-news-md on PyPI: https://pypi.org/project/fr-core-news-md/

Why can't Heroku find a version of 'os' that satisfies the requirement?

I am trying to deploy my bot on Heroku through GitHub.
In requirements.txt, I have 'os'. I tried to deploy the bot so Heroku would recognise the Procfile. It gave me this error.
Collecting os (from -r /tmp/build_e656b8b6627c307b02ef77c47e6bb725/requirements.txt (line 3))
Could not find a version that satisfies the requirement os (from -r /tmp/build_e656b8b6627c307b02ef77c47e6bb725/requirements.txt (line 3)) (from versions: )
No matching distribution found for os (from -r /tmp/build_e656b8b6627c307b02ef77c47e6bb725/requirements.txt (line 3))
! Push rejected, failed to compile Python app.
! Push failed
How to fix it?
You don't need to include os in your requirements.txt - it's a built-in module. Just remove it.
You don't need to install/require os. It isn't on the package index, it's a built-in package.
Simply remove the os line from your requirements.txt file to fix this issue.

Categories

Resources