photoshop-python-api
photoshop-python-api copied to clipboard
Never name your python file "photoshop.py"
Discussed in https://github.com/loonghao/photoshop-python-api/discussions/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.
Wow I did the EXACT same thing. Thanks for saving me some hours!