• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

ModuleNotFoundError: 'urllib3.packages.six.moves' in pdfservices-extract-sdk (python)

New Here ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

Hello Adobe Developer Community and Support Team,

I'm experiencing a problem trying to run the samples from the "Adobe PDFServices Extract Python SDK" (pdfservices-extract-python-sdk-samples) repository I downloaded from this link. According to the documentation, the only required dependency is pdfservices-extract-sdk.

After setting up and activating a virtual environment using Anaconda3 (conda version 23.7.4), Python 3.12.1 and Windows 10, I installed the dependencies. However, when attempting to execute a script, such as extractpdf/extract_txt_from_pdf.py, I encounter the following error:

 

(extract-pdf-sdk) C:\Users\<username>\Documents\pdfservices-extract-python-sdk-samples>python extractpdf/extract_txt_table_info_from_pdf.py
Traceback (most recent call last):
  ...
    import requests
  ...
    import urllib3
  ...
    from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

 

I followed advice to uninstall and reinstall urllib and six, and was informed that I should install specific versions (urllib3==1.26.3 and six==1.15.0). I did so, but the error persists.

Could anyone provide guidance on how to resolve this issue? It seems like there might be a compatibility issue with the urllib3 and six modules within the specified environment. Despite trying the recommended versions, the error regarding ModuleNotFoundError for urllib3.packages.six.moves continues to prevent the sample scripts from running.

Any suggestions or insights from the community or the Adobe support team would be greatly appreciated. I'm looking forward to getting these SDK samples up and running to explore the capabilities of the Adobe PDFServices Extract SDK.

Thank you in advance for any help provided.

TOPICS
Bug , PDF Extract API , PDF Services API , Python SDK

Views

2.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources