• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
1

Error Installing Dependencies for pdfservices-python-sdk-samples

New Here ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

en-US 

Hello Adobe community and support,

I am encountering an issue while trying to set up the environment to use the pdfservices-python-sdk-samples, available at: https://github.com/adobe/pdfservices-python-sdk-samples. I followed the provided instructions for creating a virtual environment and installing the dependencies specified in the requirements.txt file (which contains only pdfservices-sdk==2.3.0), but I've hit a roadblock that I've been unable to overcome.

After installing the Microsoft Visual C++ Build Tools, as suggested by previous errors, I faced a new problem installing the pdfservices-sdk dependency. The process specifically fails at the step of collecting the PyYAML==6.0 dependency, with the following error:

 

 

Collecting PyYAML==6.0 (from pdfservices-sdk==2.3.0->-r requirements.txt (line 1))
Using cached PyYAML-6.0.tar.gz (124 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

 


I attempted to separately install the PyYAML==6.0 dependency, which resulted in the same error. Interestingly, when installing the version PyYAML==6.0.1, the installation goes through without issues. However, upon returning to the installation of pdfservices-sdk==2.3.0, the problem persists, preventing the completion of the installation. This results in a ModuleNotFoundError when trying to run the samples provided in the repository:

 

 

Traceback (most recent call last):
  File "c:\Users\ligiabicalho\Documents\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'

 

This suggests that the adobe module is not installed correctly due to the mentioned dependency issues.

What has been tried:

  • Installation of Microsoft Visual C++ Build Tools.
  • Update of pip, setuptools, and wheel.
  • Separate installation of the PyYAML dependency in its latest version (6.0.1), which was successful but did not resolve the pdfservices-sdk installation issue.

I am seeking guidance on possible solutions or additional steps that might be attempted to resolve these installation issues. Any help or suggestions from the community or Adobe support would be greatly appreciated.

Thank you in advance for the assistance.

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

Views

446

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
New Here ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

LATEST

Ah! Iā€™m using anaconda3 (conda 23.7.4), Python 3.12.1, pip 24.0, and Windows 10.

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