Issue364

Title Problems with importing Tkinter and Pydub modules, doesn't create executable.
Priority bug Status resolved
Superseder Nosy List Bionicobot
Assigned To Keywords standalone, windows

Created on 2017-05-16.15:33:31 by Bionicobot, last changed by kayhayen.

Messages
msg2353 (view) Author: kayhayen Date: 2018-03-27.20:22:34
Lack of feedback
msg2182 (view) Author: kayhayen Date: 2017-07-19.09:27:51
I do not have a reproducer, do i?
msg2147 (view) Author: Bionicobot Date: 2017-05-17.13:18:45
Alright, I managed to get it working on my computer, (I had mixed 32 bit python 
with 64 bit kings), however, the program doesn't work on other computers, crashing 
at startup. I have portable and standalone both enabled, and put all required 
files with the exe.
msg2146 (view) Author: Bionicobot Date: 2017-05-16.16:33:36
Alright, I figured out the error with the imports, but the compilation crash 
still occurs.
msg2145 (view) Author: Bionicobot Date: 2017-05-16.16:03:00
Here's the output:

E:\Python\Scripts>call nuitka --standalone --mingw --show-progress --
recurse-all
 E:\Python\Things_I_Made\Prism_Planet\Prism_Planet.py
Nuitka:INFO:PASS 1:
Next global optimization pass.
Optimizing module '__main__', 0 more modules to go after that.
Doing module local optimizations for '__main__'.
Nuitka:WARNING:E:\Python\Things_I_Made\Prism_Planet\Prism_Planet.py:6: 
Cannot fi
nd 'Tkinter' as absolute import.
Optimizing module 'pydub.playback', 1 more modules to go after that.
Doing module local optimizations for 'pydub.playback'.
Optimizing module 'pyaudio', 2 more modules to go after that.
Doing module local optimizations for 'pyaudio'.
Optimizing module '__internal__', 3 more modules to go after that.
Doing module local optimizations for '__internal__'.
Optimizing module '_portaudio', 2 more modules to go after that.
Optimizing module 'pydub.utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.utils'.
Nuitka:WARNING:E:\Python\Lib\site-packages\pydub\utils.py:14: Cannot find 
'pyaud
ioop' in package 'pydub' as absolute import.
Optimizing module 'pydub.audio_segment', 1 more modules to go after that.
Doing module local optimizations for 'pydub.audio_segment'.
Optimizing module 'pydub.effects', 3 more modules to go after that.
Doing module local optimizations for 'pydub.effects'.
Optimizing module 'pydub.silence', 3 more modules to go after that.
Doing module local optimizations for 'pydub.silence'.
Optimizing module 'pydub.exceptions', 2 more modules to go after that.
Doing module local optimizations for 'pydub.exceptions'.
Optimizing module 'pydub.logging_utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.logging_utils'.
Optimizing module 'pydub', 0 more modules to go after that.
Doing module local optimizations for 'pydub'.
Next global optimization pass.
Optimizing module '__main__', 0 more modules to go after that.
Doing module local optimizations for '__main__'.
Optimizing module 'pydub.playback', 1 more modules to go after that.
Doing module local optimizations for 'pydub.playback'.
Optimizing module 'pyaudio', 2 more modules to go after that.
Doing module local optimizations for 'pyaudio'.
Optimizing module '__internal__', 3 more modules to go after that.
Doing module local optimizations for '__internal__'.
Optimizing module '_portaudio', 2 more modules to go after that.
Optimizing module 'pydub.utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.utils'.
Optimizing module 'pydub.audio_segment', 1 more modules to go after that.
Doing module local optimizations for 'pydub.audio_segment'.
Optimizing module 'pydub.effects', 3 more modules to go after that.
Doing module local optimizations for 'pydub.effects'.
Optimizing module 'pydub.silence', 3 more modules to go after that.
Doing module local optimizations for 'pydub.silence'.
Optimizing module 'pydub.exceptions', 2 more modules to go after that.
Doing module local optimizations for 'pydub.exceptions'.
Optimizing module 'pydub.logging_utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.logging_utils'.
Optimizing module 'pydub', 0 more modules to go after that.
Doing module local optimizations for 'pydub'.
Nuitka:INFO:PASS 2 ... :
Initial optimization pass.
Optimizing module '__main__', 0 more modules to go after that.
Doing module local optimizations for '__main__'.
Optimizing module 'pydub.playback', 1 more modules to go after that.
Doing module local optimizations for 'pydub.playback'.
Optimizing module 'pyaudio', 2 more modules to go after that.
Doing module local optimizations for 'pyaudio'.
Optimizing module '__internal__', 3 more modules to go after that.
Doing module local optimizations for '__internal__'.
Optimizing module '_portaudio', 2 more modules to go after that.
Optimizing module 'pydub.utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.utils'.
Optimizing module 'pydub.audio_segment', 1 more modules to go after that.
Doing module local optimizations for 'pydub.audio_segment'.
Optimizing module 'pydub.effects', 3 more modules to go after that.
Doing module local optimizations for 'pydub.effects'.
Optimizing module 'pydub.silence', 3 more modules to go after that.
Doing module local optimizations for 'pydub.silence'.
Optimizing module 'pydub.exceptions', 2 more modules to go after that.
Doing module local optimizations for 'pydub.exceptions'.
Optimizing module 'pydub.logging_utils', 1 more modules to go after that.
Doing module local optimizations for 'pydub.logging_utils'.
Optimizing module 'pydub', 0 more modules to go after that.
Doing module local optimizations for 'pydub'.
Total memory usage before running scons: 48.32 MB (50671616 bytes):
Prism_Planet.build\module.pydub.cpp:402:1: fatal error: Compiler/include: No 
suc
h file or directory
 }
 ^
compilation terminated.
scons: *** [Prism_Planet.build\module.pydub.o] Error 1
Prism_Planet.build\module.pydub.effects.cpp:16275:1: fatal error: 
Compiler/inclu
de: No such file or directory
 }
 ^
compilation terminated.
scons: *** [Prism_Planet.build\module.pydub.effects.o] Error 1
Prism_Planet.build\module.pyaudio.cpp:22329:1: fatal error: 
Compiler/include: No
 such file or directory
 }
 ^
compilation terminated.
scons: *** [Prism_Planet.build\module.pyaudio.o] Error 1
Prism_Planet.build\module.pydub.audio_segment.cpp:52897:1: fatal error: 
Compiler
/include: No such file or directory
 }
 ^
compilation terminated.
scons: *** [Prism_Planet.build\module.pydub.audio_segment.o] Error 1
Press any key to continue . . .
msg2144 (view) Author: Bionicobot Date: 2017-05-16.15:33:30
Alright, so this may have to do with errors with my python version on my portable 
hard drive not being part of the path, but even with specific directories and 
stuff like that, it won't compile, and Tkinter and Pydub show up as having been 
unable to import through absolute import. Also, I use MingW, in case that has to 
do with it. No exe file is made.
History
Date User Action Args
2018-03-27 20:22:34kayhayensetstatus: chatting -> resolved
messages: + msg2353
2017-07-19 09:27:51kayhayensetmessages: + msg2182
keyword: - compiler_crash, develop, compiler, Error : ImportError No module named
2017-05-17 13:18:45Bionicobotsetmessages: + msg2147
2017-05-16 16:33:36Bionicobotsetmessages: + msg2146
2017-05-16 16:03:01Bionicobotsetstatus: unread -> chatting
messages: + msg2145
2017-05-16 15:33:31Bionicobotcreate