loonghao / photoshop-python-api

Python API for Photoshop.
https://loonghao.github.io/photoshop-python-api/
MIT License
625 stars 71 forks source link

module 'photoshop' has no attribute 'Application' #216

Open ghost opened 1 year ago

ghost commented 1 year ago

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

Wang-Walexr commented 1 year ago

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

You are missing the ".api" after photoshop