Tested with
D:\>python -m nuitka --version
0.6.7
Python: 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Int
el)]
Executable: C:\Users\i\AppData\Local\Programs\Python\Python36-32\python.exe
OS: Windows
Arch: x86
Installed via pip.
Run my command under D:\BaiduYunDownload\programming\Python\NuitkaTest, and the icon256.ico also resides in this directory.
python -m nuitka --standalone --mingw64 TextEdit.py --windows-icon=icon256.ico
I got
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 71.97 MB (75468800 byte
s):
Nuitka:WARNING:Unresolved '__import__' call at 'C:\Users\i\AppData\Local\Program
s\Python\Python36-32\lib\site-packages\requests\packages.py:7' may require use o
f '--include-plugin-directory' or '--include-plugin-files'.
Nuitka:INFO:Total memory usage before running scons: 82.29 MB (86290432 bytes):
scons: *** [resources.o] Explicit dependency `icon256.ico' not found, needed by
target `resources.o'.
The same command works well with version 0.6.6. Besides, one has to specify the absolute path to windows-icon in order to work, I'd suggest that relative path should also work for --windows-icon
A fix for this is on the factory branch and will be in the next pre-release, that factory branch is currently unstable though and may not work good enough.
This is now in the latest pre-release, and will soon be released.
The release 0.6.8 was just made and contains the correction.
Thank you very much !!!