fortunately, i have 2 versions of python on my machine.
*python 3.6.0 and 3.7.1*

my previous successful import screenshot from python 3.7.1
but when i tried to execute from python 3.6.0, i got error (different error)

what i was doing in my python 3.6.0 :

pip install pypiwin32==223
pip install pywin32==227
pip install pywinpty==0.5.5

below are lists of package in my python 3.6.0 (check the bold lines):

C:\Python360\Scripts>pip freeze
altgraph==0.16.1
astroid==2.3.3
colorama==0.4.1
future==0.18.2
isort==4.3.20
lazy-object-proxy==1.4.1
mccabe==0.6.1
pefile==2019.4.18
PyInstaller==3.5
pylint==2.4.4



*pypiwin32==223pywin32==227pywin32-ctypes==0.2.0pywinpty==0.5.5*
six==1.12.0
typed-ast==1.4.0
wrapt==1.11.2

and then import successful

[image: image.png]

another things you need check is inside below folder (are those files exist
in your machine)

[image: image.png]

Thanks



Pada tanggal Kam, 2 Jan 2020 pukul 17.47 蔡耀寬 <[email protected]> menulis:

> Dear Sir,
>
> Wish you got a happy new year~
>
> and here is my following pip list
> Package         Version
> --------------- ----------
> altgraph        0.16.1
> et-xmlfile      1.0.1
> future          0.18.2
> jdcal           1.4.1
> lxml            4.4.2
> mysql-connector 2.2.9
> mysqlclient     1.4.6
> numpy           1.17.4+mkl
> openpyxl        3.0.2
> pefile          2019.4.18
> Pillow          6.2.1
> pip             19.3.1
> PyInstaller     3.5
> pypiwin32       223
> python-pptx     0.6.18
> pywin32         227
> pywin32-ctypes  0.2.0
> setuptools      42.0.2
> xlrd            1.2.0
> XlsxWriter      1.2.6
>
>
> M. Agus Setiadi於 2019年12月31日星期二 UTC+8下午8時22分58秒寫道:
>>
>> What version of pywin32 you are using?
>>
>> I've tried running on my machine and successful.
>>
>> Try upgrade pywin32 version 227
>>
>> [image: image.png]
>> [image: image.png]
>>
>>
>>
>> Pada tanggal Sel, 24 Des 2019 pukul 19.56 蔡耀寬 <[email protected]>
>> menulis:
>>
>>> it shows up "Could not open file mapping object (2)."
>>>
>>> M. Agus Setiadi於 2019年12月22日星期日 UTC+8下午7時45分29秒寫道:
>>>>
>>>> Try to use python shell then type:
>>>>
>>>> from win32com.client import Dispatch
>>>>
>>>> Then see what error shows up.
>>>>
>>>> Thanks
>>>>
>>>> On Sun, Dec 22, 2019, 01:32 蔡耀寬 <[email protected]> wrote:
>>>>
>>>>> 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]> 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].
>>>>>>> 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
>>>>> <https://groups.google.com/d/msgid/pyinstaller/47c2c866-b183-48e4-83a8-bc993fa69061%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/0a6750a5-169c-483b-89cb-3b4279691cca%40googlegroups.com
>>> <https://groups.google.com/d/msgid/pyinstaller/0a6750a5-169c-483b-89cb-3b4279691cca%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/9502a3dc-4da0-45da-93b0-8961792bfd70%40googlegroups.com
> <https://groups.google.com/d/msgid/pyinstaller/9502a3dc-4da0-45da-93b0-8961792bfd70%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/CAF8BCF1p%2Bs9xEjibnhjC826N1bOp8yiB8tfTRXnE8bkPziEWaQ%40mail.gmail.com.

Reply via email to