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

MultiProcess error #44

Open
19kobayashi opened this issue Apr 10, 2022 · 4 comments
Open

MultiProcess error #44

19kobayashi opened this issue Apr 10, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@19kobayashi
Copy link

I want to run OpenPIVgui using MultiProcess but it doesn’t work.(I can run this program using only 1 core)

This is the error message
‘PIV evaluation thread stopped. cannot pickle '_tkinter.tkapp' object’

I found this error occurs at line 224 in ‘OpenPivGui.py’ (line 496 in ’openpiv.tools’ exactly).
‘mp.run(func=mp.process, n_cpus=cpu_count)’ in ‘OpenPivGui.py’.
‘res = pool.map(func, image_pairs)’ in ‘openpiv.tools.py’

Would you teach me how can I run OpenPIVgui using MultiProcess?

Version
Python: 3.9
Windows:10
OpenPIVgui:0.4.11

@ErichZimmer
Copy link
Collaborator

I am not sure if the GUI runs on Python > 3.9, so I'll investigate once I'll get time.

@ErichZimmer
Copy link
Collaborator

I am able to replicate the issue on python 3.8.5 and 3.9 with the following environment:
OS: Windows 10 Pro (unactivated)
Python: 3.8.5, 3.9
OpenPIV: 0.23.8
OpenPivGui: 0.4.11
Note: I installed OpenPIV first, then OpenPivGui due to cellular data restrictions

The question is why did the GUI work before, but not now?

@ErichZimmer ErichZimmer added the bug Something isn't working label Apr 12, 2022
@ErichZimmer
Copy link
Collaborator

Error is traced back to openpiv.tools.multiprocessor, but nothing seemed to have been changed. I can't figure out a way around it other than using alternative process-based parallel processing packages.
Perhaps, @GregorBecker can help with this specific issue?

@alexlib
Copy link
Member

alexlib commented Jun 29, 2022

I think that since we have 0.4.13 - we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants