photoshop-python-api icon indicating copy to clipboard operation
photoshop-python-api copied to clipboard

module 'photoshop' has no attribute 'Application'

Open ghost opened this issue 3 years ago • 1 comments

When I run the example code it prints out AttributeError: module 'photoshop' has no attribute 'Application'

Traceback (most recent call last):
  File "c:\Users\lidor\Documents\אישי\CryptoC\עדכון מחירים\start.py", line 22, in <module>  
    hello_world()
  File "c:\Users\lidor\Documents\אישי\CryptoC\עדכון מחירים\start.py", line 5, in hello_world
    app = ps.Application()
          ^^^^^^^^^^^^^^
AttributeError: module 'photoshop' has no attribute 'Application'

image

  • OS: Windows 10
  • Photoshop Version: Photoshop-2023
  • Python Version: python-3.11.2

ghost avatar Dec 22 '22 11:12 ghost

Line 1 should be "import photoshop.api as ps"

You are missing the ".api" after photoshop

Wang-Walexr avatar Dec 22 '22 14:12 Wang-Walexr