adrienverge / PhotoCollage

Graphical tool to make photo collage posters
GNU General Public License v2.0
425 stars 70 forks source link

Can the code realize batch processing of pictures in each subfolder and generate collage in pycharm? Why do I give an error? #93

Open shubote opened 1 year ago

shubote commented 1 year ago

At the beginning, I was prompted to make a mistake. I found no answer to this mistake in many places. I hope the author can help me.

from photocollage import photocollage from PIL import Image

The following error occurred: Traceback (most recent call last): File "C:\Users\schubert\PycharmProjects\pythonProject1\33.py", line 1, in from photocollage import photocollage ImportError: cannot import name 'photocollage' from 'photocollage' (C:\Users\schubert\PycharmProjects\pythonProject1\venv\lib\site-packages\photocollage__init__.py)

I don't know what went wrong.

shubote commented 1 year ago

run python3 -m unittest tests/test_*.py

The returned information is normal. Testing started at 10:56 ... Launching unittests with arguments python -m unittest 临时.TestCollage.test_bottom_hole_B1 in C:\Users\schubert\PycharmProjects\pythonProject1

Ran 1 test in 0.003s

OK