Cloud Function Package won't download - python

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/

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.

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.

How to use BeautifulSoup4 in Heroku

I'm wondering how to use BeautifulSoup4 on the Heroku Server.
In my requirements.txt file I have written: "BeautifulSoup==4.9.1",
but I get an Error:
ERROR: Could not find a version that satisfies the requirement BeautifulSoup==4 (from -r /tmp/build_d624b770_/requirements.txt (line 1)) (from versions: 3.2.0, 3.2.1, 3.2.2)
ERROR: No matching distribution found for BeautifulSoup==4 (from -r /tmp/build_d624b770_/requirements.txt (line 1))
So how can I use BeautifulSoup4 then?
Since I cant see your requirements.txt file, from seeing the error I am assuming it has something like BeautifulSoup==4, but the way of installing BeautifulSoup is pip install bs4 since its not like version 4 of BS, its is bs4 itself, so you requirements.txt must contain bs4==0.0.0 or bs4==0.0.1 or just plain bs4 with any other dependencies
Learn more about BS4 releases here

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

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?

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