Comments (7)
I am facing the same issue with the same package. I removed the package pypdfium2 from requirements.txt but it is trying to use the cached copy and giving the same error. In local it works correctly and while deployment I am facing this issue.
from oryx.
I tried deploying the same version today and it worked....
I don't know what changed in Oryx or Azure during that time, but the problem is solved for me.
from oryx.
I am facing the same issue. Any chance you know (by now) what has been changed to make it work?
from oryx.
@guillaumedelande Sorry, as I said, I just waited for a while without touching the project. During that time I was using the docker-deployed version. And after that I just re-deployed the exact same version to the exact same azure function service.
The only thing that was changed is that I recreated venv and reinstalled the azure functions plugin in vscode, but I don't think that was the case.
from oryx.
What I found is, there are list of packages that Azure considers as whitelisted packages, if the package installed does not belong to list of whitelisted packages we kind these kind of errors. I resolved it by replacing this package with an alternative package. The package pdfplumber caused this issue in my case.
from oryx.
Did you explicitly add pypdfium2 in the requirements.txt file? At first I didn't because I was using pdfplumber, which seemed to need that dependency. It seems to have solved the issue by adding pypdfium2 to the requirements.txt (not 100% sure because I also have issues with installing torch, hence unable to test the library). Then you might have to try a couple of different versions. In my case this version works (machine is Linux with python 3.9.7):
3:39:05 PM XXX: [14:39:05+0000] Collecting pypdfium2
3:39:05 PM XXX: [14:39:05+0000] Downloading pypdfium2-3.21.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB)
from oryx.
You are right, python version played a role in this. Made the local python version and the one on Azure the same but still was able to solve using pdfplumber. But pypdfium2 helped and able to proceed. thanks.
from oryx.
Related Issues (20)
- Authentication to private Nuget Feed fails in Azure Pipelines (via Static Web App) HOT 1
- How can I upgrade pip (Local Git, App Service) to a specific version and then make the Oryx use that pip? HOT 1
- Oryx Compression runs for over hour then gives rsync errors HOT 4
- GitHub action failing HOT 2
- AzureStaticWebApp@0 insist of installing older node version which lead to failure HOT 4
- Oryx does not support node version 18 HOT 9
- oryx is running the composer install command by default
- Deploying an app through github actions workflow, Oryx issu. HOT 1
- Release 20240312.3 doesn't support node 18.19.1 HOT 2
- Error: Platform 'golang' version '1.21.6' is unsupported
- Issue with nodejs deployment HOT 2
- Remote build failed!
- PHP detected on node project because node_modules directory is scanned HOT 2
- Error: Platform 'php' version '8.0' is unsupported for node app HOT 2
- Dotnet not installed - NX Monorepo
- Python Package Built in Oryx Pointing to Wrong Python Installation HOT 1
- When we try to deploy our code to Function app using DevOps Pipeline we are getting connection reset error. HOT 2
- Django app fails during deployment on Azure after collectstatic after 40 minutes HOT 1
- Scripts in appsvc.yaml are mangled by replacing newlines with semicolons
- Add main.js as a startup candidate for Node.js toolset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oryx.