Search code examples
pythonurllib3adobe-pdfservices

cannot resolve urllib3 version issue


I am trying to use Adobe's pdfservices-sdk and am getting the following error

ERROR: pip's dependency resolver does not currently take into account all the packages 
that are installed. This behaviour is the source of the following dependency conflicts.
pdfservices-extract-sdk 1.0.0b1 requires urllib3==1.26.3, but you have urllib3 1.26.8 
which is incompatible.
Successfully installed urllib3-1.26.8

When I instead install version 1.26.3, it says that it is incompatible and requires 1.26.8.

I keep going back and forth, it is not working. Any thoughts? Thanks!


Solution

  • It is likely that your Python environment already has urllib3 installed, and something requires its version different than the one needed by pdfservices-sdk. There's two options:

    1. Use venv — Creation of virtual environments or Virtualenv to isolate Python environment for playing with pdfservices-sdk from all the others (I've just installed 1.0.0b1 in venv and it pulled urllib 1.26.3 with no problem).
    2. Install bleeding edge version of pdfservices-sdk directly from Github:
      pip install https://github.com/adobe/pdfservices-python-sdk/archive/master.zip
      
      This bleeding edge version has urllib3 version bumped to 1.26.8