-
Notifications
You must be signed in to change notification settings - Fork 23
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
Could not display the source user interface #19
Comments
The source user interface closes immediately because of Python's garbage collection. The solution I found for this is to use
Edit (11/15/2020): |
sir can you help me about multiple file scan and saving |
Hello
I am implementing an application with Epson scan.
I tried to use this command "ss.RequestAcquire(1,0)" to show the UI. but the UI was not completely opened and was closed again automatically.
How to keep the UI windows alive and trigger the scan directly on the UI?
I added a "while True" loop after "ss.RequestAcquire(1,0)", in order to keep the python program running while the UI is displayed. Only a partial of the UI is able to be displayed and the program crashed.
Could you please help me out here? What could be the problem? Thank you so much.
p.s. how can I avoid the following exception?
Exception ignored in: <bound method SourceManager.del of <twain.SourceManager object at 0x002D5A50>>
Traceback (most recent call last):
File "C:\Users\AppData\Local\conda\conda\envs\py35_32\lib\site-packages\twain.py", line 2066, in del
File "C:\Users\AppData\Local\conda\conda\envs\py35_32\lib\site-packages\twain.py", line 2073, in close
File "C:\Users\AppData\Local\conda\conda\envs\py35_32\lib_weakrefset.py", line 101, in pop
KeyError: 'pop from empty WeakSet'
Best regards,
lisha
The text was updated successfully, but these errors were encountered: