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

Never name your python file "photoshop.py"

Open muhammad-mobeen opened this issue 3 years ago • 1 comments

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.

muhammad-mobeen avatar Oct 05 '22 18:10 muhammad-mobeen

Wow I did the EXACT same thing. Thanks for saving me some hours!

zimonitrome avatar May 06 '23 22:05 zimonitrome