Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Dec 22, 2022 · 1 comment
Open

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

ghost opened this issue Dec 22, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 22, 2022

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
@Wang-Walexr
Copy link

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

You are missing the ".api" after photoshop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant