Giter Site home page Giter Site logo

Comments (7)

chandru4ni avatar chandru4ni commented on August 20, 2024

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.

Krayushkin68 avatar Krayushkin68 commented on August 20, 2024

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.

guillaumedelande avatar guillaumedelande commented on August 20, 2024

I am facing the same issue. Any chance you know (by now) what has been changed to make it work?

from oryx.

Krayushkin68 avatar Krayushkin68 commented on August 20, 2024

@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.

chandru4ni avatar chandru4ni commented on August 20, 2024

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.

guillaumedelande avatar guillaumedelande commented on August 20, 2024

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.

chandru4ni avatar chandru4ni commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.