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>
Copy link to clipboard
Copied
Is the file in the same directory as the Python script? By the file I mean the credentials JSON file.