question

DhananjaySharma-7367 avatar image
0 Votes"
DhananjaySharma-7367 asked ryanchill commented

Deploying a flask web app with using azure web app service from github. Requirements.txt is throwing an error

The requirements.txt file has 'numpy' yet when it comes to 'pybf' i get the "no module named numpy" error. I even tried installing numpy separately in the yaml file. Still it won't work! I've tried a variety of methods but my deployment keeps on failing!

azure-webapps-content-deployment
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can provide a snippet of the failure in the log file @DhananjaySharma-7367? A snippet of your requirements.txt would also be help so I can see if I can repo the issue. Is your app service being hosted on a Linux or Windows app service plan? What version of Python?

0 Votes 0 ·

Hi im posting the details:
python version: 3.7.10
Service Plan: Linux (memory allocation: B3 (the 7gb one))
Error log, requirements.txt and yaml file screenshots are uploaded on this drive link:

https://drive.google.com/drive/folders/1vnTE4OxtiPAsohBBlyXKyCbYJmrIxAaH?usp=sharing

Thank you for all your help!

0 Votes 0 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ryanchill commented

Hi @DhananjaySharma-7367, sorry for the delayed response. When I tried setting up a local environment, I ran into the same error on that you encountered on your build pipeline. This occurred against all major versions of the library, 0.2.2 to 0.2.5. I'm using pip 21.1.3 against Python 3.7.8. The issue isn't with your GitHub action. Checking pypi.org only shows 0.2.5. Since this hasn't been updated 5 years and the author has stated moving on from python, I would advise finding a library that's better supported.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hii, i will check it out, but I was also adviced to install it through a startup script and that seems to be working as of now

0 Votes 0 ·
ryanchill avatar image ryanchill DhananjaySharma-7367 ·
0 Votes 0 ·