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
ImportError: cannot import name 'process' #230
Comments
Original comment by Graham Jones (Bitbucket: grahamrjuk, GitHub: grahamrjuk): Is this the same as #214 ? |
I also have this problem with
|
I have my own (new) solution which works for me at the moment (assuming the detail is the same as in #214). I forked cx_Freeze and pushed a branch named proceess_import: I give no guarantee that it is the right solution. Since it may not be the best solution I haven't raised a pull-request for it at the moment. Perhaps that is the best way to find out if I am close to a sensible solution. |
I think creating a pull-request is a good idea, even if it doesn't get merged. |
The problem is that the multiprocessing package has both Process (class) and process (submodule) but the imp.find_module() function on Windows finds both of them as submodules! I have pushed a change to cx_Freeze that tells it to ignore multiprocessing.Process. You can see more details on pull request #241 . |
I knew there would be a better solution than my original go. Thanks for working this out. |
No problem. Thanks for creating the pull request. It was helpful in that it pointed to the problem that was taking place! |
Hi everyone, Still, I get the same error : Has the problem actually been fixed ? Thanks ! |
I think its not fixed. Same actually happens for multiprocessing.pool. |
Originally reported by: zaazbb (Bitbucket: zaazbb, GitHub: zaazbb)
import Process from multiprocessing, build a exe and run it, met a import error.
The text was updated successfully, but these errors were encountered: