Skip to content

Never name your python file "photoshop.py" #191

@muhammad-mobeen

Description

@muhammad-mobeen

Discussed in #190

Originally posted by muhammad-mobeen October 5, 2022
I just pip-installed this API and was testing it with the hello world template but it was giving me the following error:-

"No module named 'photoshop.api'; 'photoshop' is not a package"

I wasted countless hours to find the solution with no luck and then a eureka moment happened I changed the file name from "photoshop.py" to "ps.py" and it worked like a charm. The problem was probably because the file name confused python on what to import. So silly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions