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

Errors in code on https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/howtos

New Here ,
Feb 22, 2023 Feb 22, 2023

Copy link to clipboard

Copied

I have been unsuccessul in running the exampe code found at the above link.  I followed the instructions to the letter.  I get this error:

PS C:\Users\stand> & C:/Users/stand/AppData/Local/Programs/Python/Python311/python.exe c:/Users/stand/PDFExtractTest/venv/extract.py
C:\Users\stand\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
Traceback (most recent call last):
File "c:\Users\stand\PDFExtractTest\venv\extract.py", line 24, in <module>
.from_file("./pdfservices-api-credentials.json") \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stand\AppData\Local\Programs\Python\Python311\Lib\site-packages\adobe\pdfservices\operation\auth\service_account_credentials.py", line 186, in from_file
config_json_str = file_utils.read_conf_file_content(credentials_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\stand\AppData\Local\Programs\Python\Python311\Lib\site-packages\adobe\pdfservices\operation\internal\util\file_utils.py", line 15, in read_conf_file_content
with open(get_file_path(file_path)) as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\stand\\./pdfservices-api-credentials.json'
PS C:\Users\stand>

 

 

TOPICS
PDF Extract API , PDF Services API

Views

162

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
Adobe Employee ,
Feb 24, 2023 Feb 24, 2023

Copy link to clipboard

Copied

LATEST

Is the file in the same directory as the Python script? By the file I mean the credentials JSON file.

Votes

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
Resources