Dear Sir, thanks for your reply, my numpy version is 1.17.4 my python version is 3.6.3
I've tried different version:1.17.4 &1.17.4+mkl M. Agus Setiadi於 2019年12月19日星期四 UTC+8上午6時25分56秒寫道: > > Have you tried to uninstall numpy and tried to build exe again. > > Perhaps you need to pip list fist to know what version of numpy you used. > > On Thu, Dec 19, 2019, 02:58 蔡耀寬 <[email protected] <javascript:>> wrote: > >> I find that not only numpy & win32com will cause Unable to find >> "d:\python36\pythoncom36.dll >> openpyxl will infect that too, >> >> I really don't know what are these module relatives. >> >> please someone help me~ thanks >> >> 蔡耀寬於 2019年11月27日星期三 UTC+8下午4時40分41秒寫道: >>> >>> Dear ALL, >>> >>> python version: 3.6.8 (64bit) >>> >>> my python script is tried to fetch data from csv and sort out then >>> output the excel file as result. >>> >>> i got receive these error log when i tried to pack it up my python >>> files. these are my modules that i used >>> >>> import tkinter as tk >>> from tkinter import ttk >>> import csv >>> import glob,os >>> import sys >>> import xlsxwriter >>> import datetime >>> import numpy as np >>> from win32com.client import Dispatch >>> from PIL import * >>> >>> >>> >>> then when I do the cmd: pyinstaller -F test.py, I receive the following >>> error log: >>> >>> D:\Python test>pyinstaller -F old.py >>> Could not open file mapping object (2). >>> 98 INFO: PyInstaller: 3.5 >>> 98 INFO: Python: 3.6.8 >>> 99 INFO: Platform: Windows-10-10.0.17763-SP0 >>> 100 INFO: wrote D:\Python test\old.spec >>> 101 INFO: UPX is not available. >>> 102 INFO: Extending PYTHONPATH with paths >>> ['D:\\Python test', 'D:\\Python test'] >>> 103 INFO: checking Analysis >>> 111 INFO: Building because D:\Python test\old.py changed >>> 111 INFO: Initializing module dependency graph... >>> 114 INFO: Initializing module graph hooks... >>> 116 INFO: Analyzing base_library.zip ... >>> 2622 INFO: running Analysis Analysis-00.toc >>> 2624 INFO: Adding Microsoft.Windows.Common-Controls to dependent >>> assemblies of final executable >>> required by d:\python36\python.exe >>> 3004 INFO: Caching module hooks... >>> 3009 INFO: Analyzing D:\Python test\old.py >>> 4369 INFO: Processing pre-find module path hook distutils >>> 5147 INFO: Processing pre-find module path hook site >>> 5147 INFO: site: retargeting to fake-dir >>> 'd:\\python36\\lib\\site-packages\\PyInstaller\\fake-modules' >>> 6143 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 7259 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 8463 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 11618 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 12791 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 13917 INFO: Processing pre-safe import module hook >>> setuptools.extern.six.moves >>> 15677 INFO: Processing pre-safe import module hook win32com >>> 16008 INFO: Loading module hooks... >>> 16008 INFO: Loading module hook "hook-distutils.py"... >>> 16010 INFO: Loading module hook "hook-encodings.py"... >>> 16102 INFO: Loading module hook "hook-lib2to3.py"... >>> 16105 INFO: Loading module hook "hook-numpy.core.py"... >>> 20326 INFO: Loading module hook "hook-numpy.py"... >>> 20328 INFO: Loading module hook "hook-PIL.py"... >>> 20329 INFO: Import to be excluded not found: 'FixTk' >>> 20329 INFO: Import to be excluded not found: 'PyQt4' >>> 20330 INFO: Excluding import 'tkinter' >>> 20331 INFO: Import to be excluded not found: 'PyQt5' >>> 20331 INFO: Import to be excluded not found: 'PySide' >>> 20331 INFO: Loading module hook "hook-pkg_resources.py"... >>> 21592 WARNING: Hidden import "object" not found! >>> 21592 WARNING: Hidden import "(2)." not found! >>> 21593 WARNING: Hidden import "not" not found! >>> 21594 WARNING: Hidden import "open" not found! >>> 21656 WARNING: Hidden import "file" not found! >>> 21657 WARNING: Hidden import "Could" not found! >>> 21658 WARNING: Hidden import "mapping" not found! >>> 21658 INFO: Loading module hook "hook-pydoc.py"... >>> 21659 INFO: Loading module hook "hook-pythoncom.py"... >>> Unable to find "d:\python36\pythoncom36.dll >>> Could not open file mapping object (2)." when adding binary and data >>> files. >>> >>> >>> I tried some several test, block some import module, tried to discover >>> which module will cause the error: >>> >>> #import numpy as np >>> #from win32com.client import Dispatch >>> >>> after I block these two module. the old.exe can be created(I haven't >>> tried that work functionally or not) >>> >>> so is there something else that i need to modified ? please I've been >>> stuck for weeks~ thanks! >>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "PyInstaller" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pyinstaller/5ea5655f-b2d9-445a-858c-08774adb4067%40googlegroups.com >> >> <https://groups.google.com/d/msgid/pyinstaller/5ea5655f-b2d9-445a-858c-08774adb4067%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/47c2c866-b183-48e4-83a8-bc993fa69061%40googlegroups.com.
