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

Importing fails #1

Open
LionFat opened this issue May 11, 2021 · 1 comment
Open

Importing fails #1

LionFat opened this issue May 11, 2021 · 1 comment

Comments

@LionFat
Copy link

LionFat commented May 11, 2021

Greeting!

from PIL import _imaging
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name '_imaging' from 'PIL' (C:\Users\%username%\AppData\Roaming\Python\Python38\site-packages\PIL\__init__.py)

And could you please answer a couple of questions?

  1. Why do you want to import _imaging? It's an internal PIL's stuff
  2. Why did you decide to build another bike? (https://pypi.org/project/Lackey/)

named funny, +1

@nvoronchev
Copy link
Member

Hi!

Thank you for the report! We will fix this issue.

As for the questions:

  1. Yes, looks not good. Will check it.
  2. Historical reason. We have used Sikuli to proof of automation tests concept in out project. Then we decided to use Python for this purpose. It was 2015. Thus we develop our own tool based on OpenCV. Some time later we migrated from computer vision method to UIA API approach.

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

2 participants