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

Consistantly getting  ModuleNotFoundError: No module named 'adobe'.

New Here ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

Already tried solution given here (https://community.adobe.com/t5/acrobat-services-api-discussions/modulenotfounderror-no-module-named-...), not working. 

using win 11 64 bit, steps followed:
1) cloned pdfservices-python-sdk-samples repo from github
2) Put my credendials in json file
3) Created enviro variables in user variables (double checked by
print("Client ID:"os.getenv('PDF_SERVICES_CLIENT_ID'))
print("Client Secret:"os.getenv('PDF_SERVICES_CLIENT_SECRET'))
)
4) Created and activated conda environment
5) Installed all dependencies (checked all methods by pip install -r requirements, by pip install pdfservices-sdk, by pip install pdfservices-extract-sdk and by python setup.py install)
5) Checked if api's working fine by requesting Access Token (working)
6) Ran extract_txt_from_pdf.py, getting:

[Running] python -u "c:\Users\hamza\Downloads\CODING\ADOBE\pdfservices-python-sdk-samples\src\extractpdf\extract_txt_from_pdf.py"
Traceback (most recent call last):
  File "c:\Users\hamza\Downloads\CODING\ADOBE\pdfservices-python-sdk-samples\src\extractpdf\extract_txt_from_pdf.py", line 14, in <module>
    from adobe.pdfservices.operation.auth.credentials import Credentials
ModuleNotFoundError: No module named 'adobe'

[Done] exited with code=1 in 0.106 seconds
 
My pip list shows these modules:
alabaster 0.7.13
Babel 2.14.0
build 0.9.0
certifi 2022.12.7
cffi 1.15.1
charset-normalizer 2.0.12
colorama 0.4.6
cryptography 3.4.6
docutils 0.20.1
idna 3.6
imagesize 1.4.1
importlib-metadata 7.0.1
Jinja2 3.1.3
MarkupSafe 2.1.5
multipart 0.2.4
packaging 21.3
pdfservices-sdk 2.3.0
pep517 0.13.0
pip 23.3.1
polling 0.3.2
polling2 0.5.0
pycparser 2.21
Pygments 2.14.0
PyJWT 2.4.0
pyparsing 3.0.9
pytz 2024.1
PyYAML 6.0
requests 2.27.1
requests-toolbelt 0.10.1
setuptools 68.2.2
six 1.16.0
snowballstemmer 2.2.0
Sphinx 7.1.2
sphinxcontrib-applehelp 1.0.4
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 2.0.1
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.5
toml 0.10.2
tomli 2.0.1
urllib3 1.26.13
wheel 0.41.2
zipp 3.17.0


Does anyone know why am I getting this error. Any help will be highly appreciated.
TOPICS
PDF Extract API , PDF Services API , Python SDK

Views

377

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 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

LATEST

I love Python, but have consistently struggled with pip installs. That being said. In a new folder, I did: python -m venv env, source env/bin/activate, pip instlal pdfservices-sdk, and then sample code worked from the Quick Start. I did have to fix indentation (I've got as reported bug on it).

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