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

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 this issue Feb 22, 2023 · 1 comment

Comments

@shubote
Copy link

shubote commented Feb 22, 2023

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
Copy link
Author

shubote commented Feb 22, 2023

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

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