Comments (1)
Hello, thanks for reporting this. It took me a while to figure out what was happening.
So, I think your question is about this entry in the build log:
running py2exe
4 missing Modules
------------------
[...]
? multiprocessing.Pool imported from __SCRIPT__
Usually, these lines are safe to ignore provided that your packaged code runs well. In this case, multiprocessing
mimics a lot of its structure at the package level, probably to avoid having to type too much while using it. The "correct" way to import Pool
should be from multiprocessing.pool import Pool
. You can verify that the warning disappears if you change your script accordingly.
That being said, it took me a while to find this issue because your test script cannot run when packed via py2exe
. At first I thought this was, as usual, a bug on my side, so I spent some time trying to make it work. Lately, I found that multiprocessing
actually provides a dedicated function that must be called from inside any frozen executable (not just one built with py2exe, but also with any other tool): multiprocessing.freeze_support(). By editing your code according to the linked documentation, I was indeed able to run the test and verify that the code was functional.
In summary, you can either safely ignore the "missing Modules" warning or slightly adjust your import statement to make it disappear. However, you must add a call to multiprocessing.freeze_support()
in your code to make it work when packed with py2exe
.
Side note: the zipfile=None
option is not supported anymore. In this case it works well, but there are other packages that will not work with this option enabled.
from py2exe.
Related Issues (20)
- setuptools >= 67: pyparsing has been removed from pkg_resources HOT 4
- freeze module of py2exe does not support building a service anymore HOT 6
- Packages with .libs directories result in don't work HOT 6
- Link on the py2exe wiki page does not go anywhere HOT 2
- Missing LICENSE in wheels HOT 4
- AssertionError with Python embeddable package HOT 1
- Py_OptimizeFlag not set correctly during Python initialization
- OSError: [WinError 87] The parameter is incorrect. HOT 2
- PYTHONPATH module location HOT 1
- Exe is created by doesn't run (opens then closes)
- Simple pygame example tries to lookup files inside of `library.zip` HOT 1
- Support Python 3.12 HOT 23
- Impossible to specify different version info for each of the binaries with the new freeze API. HOT 3
- pynput import break the file HOT 1
- PYTHONIOENCODING is ignored
- pendulum package doesn't initialize when unpacking from zipfile
- add version for python 3.12 too
- usage missing
- Does py2exe support 'QtWebEngineWidgets' of PySide6?
- How do I get an app using jaydebapi to work as an executable ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py2exe.