質問編集履歴

8

補足図追加

2021/03/09 14:55

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -295,3 +295,11 @@
295
295
  pip:21.0.1
296
296
 
297
297
  pyinstaller:4.2
298
+
299
+
300
+
301
+ ### Marusoftware様へ回答 補足画像
302
+
303
+ exe実行後に表示された画像は下図の通りです。
304
+
305
+ ![イメージ説明](8a98a4c1b74b67e5373d1cc3e85d7600.png)

7

ログ修正

2021/03/09 14:55

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -270,6 +270,20 @@
270
270
 
271
271
 
272
272
 
273
+
274
+
275
+ ↓ コマンドプロンプト実行時ログ
276
+
277
+
278
+
279
+ ```CommandPromptLog
280
+
281
+ [12960] LOADER: Error activating the context: ActivateActCtx:
282
+
283
+ 既定のアクティブ化コンテキストのプロセスは既に設定されていたため、既定のアクティブ化コンテキストのプロセスを設定する試みは失敗しました。
284
+
285
+ ```
286
+
273
287
  ### 補足情報(環境)
274
288
 
275
289
 

6

ログ修正

2021/03/07 14:25

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -108,179 +108,163 @@
108
108
 
109
109
  ```PyinstallerLog
110
110
 
111
- (base) PS C:\Users\user\RPA> pyinstaller excel_test.spec --onefile --noconsole
111
+ (base) PS C:\Users\user\RPA> pyinstaller excel_test.ipynb --onefile --additional-hooks-dir=./hooks/ --debug all
112
-
112
+
113
- 1549 INFO: PyInstaller: 4.2
113
+ 2104 INFO: PyInstaller: 4.2
114
-
114
+
115
- 1549 INFO: Python: 3.8.3 (conda)
115
+ 2104 INFO: Python: 3.8.3 (conda)
116
-
116
+
117
- 1549 INFO: Platform: Windows-10-10.0.19041-SP0
117
+ 2106 INFO: Platform: Windows-10-10.0.19041-SP0
118
+
118
-
119
+ 2116 INFO: wrote C:\Users\user\RPA\excel_test.spec
120
+
119
- 1549 INFO: UPX is not available.
121
+ 2122 INFO: UPX is not available.
120
-
122
+
121
- 1564 INFO: Extending PYTHONPATH with paths
123
+ 2137 INFO: Extending PYTHONPATH with paths
122
124
 
123
125
  ['C:\Users\user\RPA', 'C:\Users\user\RPA']
124
126
 
125
- 1635 INFO: checking Analysis
127
+ 2237 INFO: checking Analysis
126
-
128
+
127
- 1635 INFO: Building Analysis because Analysis-00.toc is non existent
129
+ 2257 INFO: Building because noarchive changed
128
-
130
+
129
- 1635 INFO: Initializing module dependency graph...
131
+ 2257 INFO: Initializing module dependency graph...
130
-
132
+
131
- 1651 INFO: Caching module graph hooks...
133
+ 2271 INFO: Caching module graph hooks...
132
-
134
+
133
- 1667 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
135
+ 2288 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
134
-
136
+
135
- 1682 INFO: Analyzing base_library.zip ...
137
+ 2303 INFO: Analyzing base_library.zip ...
136
-
138
+
137
- 7019 INFO: Processing pre-find module path hook distutils from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
139
+ 9276 INFO: Processing pre-find module path hook distutils from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
138
-
140
+
139
- 7019 INFO: distutils: retargeting to non-venv dir 'c:\users\user\anaconda3\lib'
141
+ 9278 INFO: distutils: retargeting to non-venv dir 'c:\users\user\anaconda3\lib'
140
-
142
+
141
- 11185 INFO: Caching module dependency graph...
143
+ 14795 INFO: Caching module dependency graph...
142
-
144
+
143
- 11373 INFO: running Analysis Analysis-00.toc
145
+ 15069 INFO: running Analysis Analysis-00.toc
144
-
146
+
145
- 11404 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
147
+ 15099 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
146
148
 
147
149
  required by c:\users\user\anaconda3\python.exe
148
150
 
149
- 11685 INFO: Analyzing excel_test.ipynb
150
-
151
- 11701 INFO: Processing module hooks...
152
-
153
- 11701 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
154
-
155
- 11701 INFO: Excluding import of doctest from module difflib
156
-
157
- 11701 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
158
-
159
- 11701 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
160
-
161
- 11701 INFO: Excluding import of lib2to3.refactor from module distutils.util
162
-
163
- 11701 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
164
-
165
- 11826 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
166
-
167
- 11826 INFO: Excluding import of doctest from module heapq
168
-
169
- 11826 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
170
-
171
- 11873 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
172
-
173
- 11873 INFO: Excluding import of test.support from module multiprocessing.util
174
-
175
- 11873 INFO: Excluding import of test from module multiprocessing.util
176
-
177
- 11873 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
178
-
179
- 11873 INFO: Excluding import of argparse from module pickle
180
-
181
- 11873 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
182
-
183
- 11889 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
184
-
185
- 11889 INFO: Loading module hook 'hook-xml.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
186
-
187
- 12094 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
188
-
189
- 12298 INFO: checking Tree
190
-
191
- 12298 INFO: Building Tree because Tree-00.toc is non existent
192
-
193
- 12298 INFO: Building Tree Tree-00.toc
194
-
195
- 12376 INFO: checking Tree
196
-
197
- 12376 INFO: Building Tree because Tree-01.toc is non existent
198
-
199
- 12376 INFO: Building Tree Tree-01.toc
200
-
201
- 12501 INFO: checking Tree
202
-
203
- 12501 INFO: Building Tree because Tree-02.toc is non existent
204
-
205
- 12501 INFO: Building Tree Tree-02.toc
206
-
207
- 12532 INFO: Looking for ctypes DLLs
208
-
209
- 12595 INFO: Analyzing run-time hooks ...
210
-
211
- 12595 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
212
-
213
- 12595 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
214
-
215
- 12626 INFO: Looking for dynamic libraries
216
-
217
- 12845 INFO: Looking for eggs
218
-
219
- 12845 INFO: Using Python library c:\users\user\anaconda3\python38.dll
220
-
221
- 12845 INFO: Found binding redirects:
151
+ 15498 INFO: Analyzing C:\Users\user\RPA\excel_test.ipynb
152
+
153
+ 15502 INFO: Processing module hooks...
154
+
155
+ 15503 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
156
+
157
+ 15513 INFO: Excluding import of doctest from module difflib
158
+
159
+ 15514 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
160
+
161
+ 15517 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
162
+
163
+ 15528 INFO: Excluding import of lib2to3.refactor from module distutils.util
164
+
165
+ 15529 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
166
+
167
+ 15663 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
168
+
169
+ 15667 INFO: Excluding import of doctest from module heapq
170
+
171
+ 15667 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
172
+
173
+ 15732 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
174
+
175
+ 15735 INFO: Excluding import of test.support from module multiprocessing.util
176
+
177
+ 15735 INFO: Excluding import of test from module multiprocessing.util
178
+
179
+ 15743 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
180
+
181
+ 15747 INFO: Excluding import of argparse from module pickle
182
+
183
+ 15748 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
184
+
185
+ 15750 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
186
+
187
+ 15760 INFO: Loading module hook 'hook-xml.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
188
+
189
+ 16015 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
190
+
191
+ 16253 INFO: checking Tree
192
+
193
+ 16320 INFO: checking Tree
194
+
195
+ 16466 INFO: checking Tree
196
+
197
+ 16498 INFO: Looking for ctypes DLLs
198
+
199
+ 16568 INFO: Analyzing run-time hooks ...
200
+
201
+ 16577 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
202
+
203
+ 16584 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
204
+
205
+ 16617 INFO: Looking for dynamic libraries
206
+
207
+ 16901 INFO: Looking for eggs
208
+
209
+ 16902 INFO: Using Python library c:\users\user\anaconda3\python38.dll
210
+
211
+ 16904 INFO: Found binding redirects:
222
212
 
223
213
  []
224
214
 
225
- 12845 INFO: Warnings written to C:\Users\user\RPA\build\excel_test\warn-excel_test.txt
226
-
227
- 12907 INFO: Graph cross-reference written to C:\Users\user\RPA\build\excel_test\xref-excel_test.html
228
-
229
- 12923 INFO: checking PYZ
230
-
231
- 12923 INFO: Building PYZ because PYZ-00.toc is non existent
232
-
233
- 12923 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz
234
-
235
- 13751 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz completed successfully.
236
-
237
- 13766 INFO: checking PKG
238
-
239
- 13782 INFO: Building PKG because PKG-00.toc is non existent
240
-
241
- 13782 INFO: Building PKG (CArchive) PKG-00.pkg
242
-
243
- 13813 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
244
-
245
- 13813 INFO: Bootloader c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
246
-
247
- 13813 INFO: checking EXE
248
-
249
- 13813 INFO: Building EXE because EXE-00.toc is non existent
250
-
251
- 13813 INFO: Building EXE from EXE-00.toc
252
-
253
- 13813 INFO: Copying icons from ['c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-console.ico']
254
-
255
- 13891 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
256
-
257
- 13891 INFO: Writing RT_ICON 1 resource with 3752 bytes
258
-
259
- 13891 INFO: Writing RT_ICON 2 resource with 2216 bytes
260
-
261
- 13891 INFO: Writing RT_ICON 3 resource with 1384 bytes
262
-
263
- 13891 INFO: Writing RT_ICON 4 resource with 37019 bytes
264
-
265
- 13891 INFO: Writing RT_ICON 5 resource with 9640 bytes
266
-
267
- 13891 INFO: Writing RT_ICON 6 resource with 4264 bytes
268
-
269
- 13891 INFO: Writing RT_ICON 7 resource with 1128 bytes
270
-
271
- 13907 INFO: Appending archive to EXE C:\Users\user\RPA\build\excel_test\excel_test.exe
272
-
273
- 13985 INFO: Building EXE from EXE-00.toc completed successfully.
274
-
275
- 13985 INFO: checking COLLECT
276
-
277
- 13985 INFO: Building COLLECT because COLLECT-00.toc is non existent
278
-
279
- 13985 INFO: Building COLLECT COLLECT-00.toc
280
-
281
- 14501 INFO: Building COLLECT COLLECT-00.toc completed successfully.
282
-
283
- (base) PS C:\Users\user\RPA>
215
+ 17344 INFO: Warnings written to C:\Users\user\RPA\build\excel_test\warn-excel_test.txt
216
+
217
+ 17427 INFO: Graph cross-reference written to C:\Users\user\RPA\build\excel_test\xref-excel_test.html
218
+
219
+ 17446 INFO: checking PYZ
220
+
221
+ 17466 INFO: Building because toc changed
222
+
223
+ 17467 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz
224
+
225
+ 17468 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz completed successfully.
226
+
227
+ 17485 INFO: checking PKG
228
+
229
+ 17504 INFO: Building because toc changed
230
+
231
+ 17504 INFO: Building PKG (CArchive) PKG-00.pkg
232
+
233
+ 20434 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
234
+
235
+ 20452 INFO: Bootloader c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe
236
+
237
+ 20452 INFO: checking EXE
238
+
239
+ 20468 INFO: Building because debug changed
240
+
241
+ 20469 INFO: Building EXE from EXE-00.toc
242
+
243
+ 20482 INFO: Copying icons from ['c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-console.ico']
244
+
245
+ 20584 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
246
+
247
+ 20585 INFO: Writing RT_ICON 1 resource with 3752 bytes
248
+
249
+ 20586 INFO: Writing RT_ICON 2 resource with 2216 bytes
250
+
251
+ 20596 INFO: Writing RT_ICON 3 resource with 1384 bytes
252
+
253
+ 20597 INFO: Writing RT_ICON 4 resource with 37019 bytes
254
+
255
+ 20597 INFO: Writing RT_ICON 5 resource with 9640 bytes
256
+
257
+ 20598 INFO: Writing RT_ICON 6 resource with 4264 bytes
258
+
259
+ 20599 INFO: Writing RT_ICON 7 resource with 1128 bytes
260
+
261
+ 20604 INFO: Updating manifest in C:\Users\user\RPA\build\excel_test\run_d.exe.0zcjq27_
262
+
263
+ 20698 INFO: Updating resource type 24 name 1 language 0
264
+
265
+ 20704 INFO: Appending archive to EXE C:\Users\user\RPA\dist\excel_test.exe
266
+
267
+ 20806 INFO: Building EXE from EXE-00.toc completed successfully.
284
268
 
285
269
  ```
286
270
 

5

ログ追加

2021/03/07 14:21

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -46,113 +46,241 @@
46
46
 
47
47
 
48
48
 
49
- - エラー確認
50
-
51
- コマンドプロンプトやAnaconda Powershellでexeファイル実行し
52
-
53
- 特にエラー表示はされません。
54
-
55
-
56
-
57
-
58
-
59
- ### 補足情報:specファイル
60
-
61
- 念のため、pyinstaller実行時に生成されるspecファイルを添付します。(下参照)
62
-
63
-
64
-
65
- 冒頭の「エラーなしでexeファイルを開くところまでできた」の記載に関して、
66
-
67
- この時のエラーはjupyter Notebookで空白の行
68
-
69
- (という表現で合っているのかわかりませんが)があった事が原因であったため、
70
-
71
- specファイルは特に操作していません。
72
-
73
-
74
-
75
-
76
-
77
- excel_test.specファイルの中身
78
-
79
- ```ExcelTestSpec
80
-
81
- # -*- mode: python ; coding: utf-8 -*-
82
-
83
-
84
-
85
- block_cipher = None
86
-
87
-
88
-
89
-
90
-
91
- a = Analysis(['excel_test.ipynb'],
92
-
93
- pathex=['C:\Users\user\RPA'],
94
-
95
- binaries=[],
96
-
97
- datas=[],
98
-
99
- hiddenimports=[],
100
-
101
- hookspath=[],
102
-
103
- runtime_hooks=[],
104
-
105
- excludes=[],
106
-
107
- win_no_prefer_redirects=False,
108
-
109
- win_private_assemblies=False,
110
-
111
- cipher=block_cipher,
112
-
113
- noarchive=False)
114
-
115
- pyz = PYZ(a.pure, a.zipped_data,
116
-
117
- cipher=block_cipher)
118
-
119
- exe = EXE(pyz,
120
-
121
- a.scripts,
122
-
123
- [],
124
-
125
- exclude_binaries=True,
126
-
127
- name='excel_test',
128
-
129
- debug=False,
130
-
131
- bootloader_ignore_signals=False,
132
-
133
- strip=False,
134
-
135
- upx=True,
136
-
137
- console=True )
138
-
139
- coll = COLLECT(exe,
140
-
141
- a.binaries,
142
-
143
- a.zipfiles,
144
-
145
- a.datas,
146
-
147
- strip=False,
148
-
149
- upx=True,
150
-
151
- upx_exclude=[],
152
-
153
- name='excel_test')
154
-
155
-
49
+ ### 追記:hookファイル(3月7日)
50
+
51
+ こちらの記事参考に進めいます。
52
+
53
+ https://teratail.com/questions/184343
54
+
55
+
56
+
57
+ 元々Pyinstaller実行時に下記エラーが発生していました。
58
+
59
+
60
+
61
+ ↓ Pyinstaller実行時のエラー
62
+
63
+ ```pyinstaller
64
+
65
+ WARNING: lib not found:
66
+
67
+
68
+
69
+ ```
70
+
71
+
72
+
73
+ 上記記事を参考に下記コードのファイルを作成しました。
74
+
75
+ ```Python
76
+
77
+ from PyInstaller.utils.hooks import collect_data_files
78
+
79
+ datas = collect_data_files('pyautogui')
80
+
81
+
82
+
83
+ ```
84
+
85
+ 保存場所及びファイル名:
86
+
87
+ ./hooks/hook-pyautogui.ipynb
88
+
89
+
90
+
91
+ pyinstaller実行時のコードは下記で行いました。
92
+
93
+ ```AnacondaPowerShell
94
+
95
+ pyinstaller excel_test.ipynb --onefile --additional-hooks-dir=./hooks/ --debug all
96
+
97
+ ```
98
+
99
+ 元々発生していた「lib not found」は発生していないので、
100
+
101
+ pyautoguiをimportできたと考えています。
102
+
103
+ しかし、exeファイルを実行しても「exe化テスト」のポップアップは表示されません。
104
+
105
+
106
+
107
+ pyinstaller実行時のログは下記通りです。
108
+
109
+ ```PyinstallerLog
110
+
111
+ (base) PS C:\Users\user\RPA> pyinstaller excel_test.spec --onefile --noconsole
112
+
113
+ 1549 INFO: PyInstaller: 4.2
114
+
115
+ 1549 INFO: Python: 3.8.3 (conda)
116
+
117
+ 1549 INFO: Platform: Windows-10-10.0.19041-SP0
118
+
119
+ 1549 INFO: UPX is not available.
120
+
121
+ 1564 INFO: Extending PYTHONPATH with paths
122
+
123
+ ['C:\Users\user\RPA', 'C:\Users\user\RPA']
124
+
125
+ 1635 INFO: checking Analysis
126
+
127
+ 1635 INFO: Building Analysis because Analysis-00.toc is non existent
128
+
129
+ 1635 INFO: Initializing module dependency graph...
130
+
131
+ 1651 INFO: Caching module graph hooks...
132
+
133
+ 1667 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
134
+
135
+ 1682 INFO: Analyzing base_library.zip ...
136
+
137
+ 7019 INFO: Processing pre-find module path hook distutils from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
138
+
139
+ 7019 INFO: distutils: retargeting to non-venv dir 'c:\users\user\anaconda3\lib'
140
+
141
+ 11185 INFO: Caching module dependency graph...
142
+
143
+ 11373 INFO: running Analysis Analysis-00.toc
144
+
145
+ 11404 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
146
+
147
+ required by c:\users\user\anaconda3\python.exe
148
+
149
+ 11685 INFO: Analyzing excel_test.ipynb
150
+
151
+ 11701 INFO: Processing module hooks...
152
+
153
+ 11701 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
154
+
155
+ 11701 INFO: Excluding import of doctest from module difflib
156
+
157
+ 11701 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
158
+
159
+ 11701 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
160
+
161
+ 11701 INFO: Excluding import of lib2to3.refactor from module distutils.util
162
+
163
+ 11701 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
164
+
165
+ 11826 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
166
+
167
+ 11826 INFO: Excluding import of doctest from module heapq
168
+
169
+ 11826 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
170
+
171
+ 11873 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
172
+
173
+ 11873 INFO: Excluding import of test.support from module multiprocessing.util
174
+
175
+ 11873 INFO: Excluding import of test from module multiprocessing.util
176
+
177
+ 11873 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
178
+
179
+ 11873 INFO: Excluding import of argparse from module pickle
180
+
181
+ 11873 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
182
+
183
+ 11889 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
184
+
185
+ 11889 INFO: Loading module hook 'hook-xml.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
186
+
187
+ 12094 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
188
+
189
+ 12298 INFO: checking Tree
190
+
191
+ 12298 INFO: Building Tree because Tree-00.toc is non existent
192
+
193
+ 12298 INFO: Building Tree Tree-00.toc
194
+
195
+ 12376 INFO: checking Tree
196
+
197
+ 12376 INFO: Building Tree because Tree-01.toc is non existent
198
+
199
+ 12376 INFO: Building Tree Tree-01.toc
200
+
201
+ 12501 INFO: checking Tree
202
+
203
+ 12501 INFO: Building Tree because Tree-02.toc is non existent
204
+
205
+ 12501 INFO: Building Tree Tree-02.toc
206
+
207
+ 12532 INFO: Looking for ctypes DLLs
208
+
209
+ 12595 INFO: Analyzing run-time hooks ...
210
+
211
+ 12595 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
212
+
213
+ 12595 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
214
+
215
+ 12626 INFO: Looking for dynamic libraries
216
+
217
+ 12845 INFO: Looking for eggs
218
+
219
+ 12845 INFO: Using Python library c:\users\user\anaconda3\python38.dll
220
+
221
+ 12845 INFO: Found binding redirects:
222
+
223
+ []
224
+
225
+ 12845 INFO: Warnings written to C:\Users\user\RPA\build\excel_test\warn-excel_test.txt
226
+
227
+ 12907 INFO: Graph cross-reference written to C:\Users\user\RPA\build\excel_test\xref-excel_test.html
228
+
229
+ 12923 INFO: checking PYZ
230
+
231
+ 12923 INFO: Building PYZ because PYZ-00.toc is non existent
232
+
233
+ 12923 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz
234
+
235
+ 13751 INFO: Building PYZ (ZlibArchive) C:\Users\user\RPA\build\excel_test\PYZ-00.pyz completed successfully.
236
+
237
+ 13766 INFO: checking PKG
238
+
239
+ 13782 INFO: Building PKG because PKG-00.toc is non existent
240
+
241
+ 13782 INFO: Building PKG (CArchive) PKG-00.pkg
242
+
243
+ 13813 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
244
+
245
+ 13813 INFO: Bootloader c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
246
+
247
+ 13813 INFO: checking EXE
248
+
249
+ 13813 INFO: Building EXE because EXE-00.toc is non existent
250
+
251
+ 13813 INFO: Building EXE from EXE-00.toc
252
+
253
+ 13813 INFO: Copying icons from ['c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-console.ico']
254
+
255
+ 13891 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
256
+
257
+ 13891 INFO: Writing RT_ICON 1 resource with 3752 bytes
258
+
259
+ 13891 INFO: Writing RT_ICON 2 resource with 2216 bytes
260
+
261
+ 13891 INFO: Writing RT_ICON 3 resource with 1384 bytes
262
+
263
+ 13891 INFO: Writing RT_ICON 4 resource with 37019 bytes
264
+
265
+ 13891 INFO: Writing RT_ICON 5 resource with 9640 bytes
266
+
267
+ 13891 INFO: Writing RT_ICON 6 resource with 4264 bytes
268
+
269
+ 13891 INFO: Writing RT_ICON 7 resource with 1128 bytes
270
+
271
+ 13907 INFO: Appending archive to EXE C:\Users\user\RPA\build\excel_test\excel_test.exe
272
+
273
+ 13985 INFO: Building EXE from EXE-00.toc completed successfully.
274
+
275
+ 13985 INFO: checking COLLECT
276
+
277
+ 13985 INFO: Building COLLECT because COLLECT-00.toc is non existent
278
+
279
+ 13985 INFO: Building COLLECT COLLECT-00.toc
280
+
281
+ 14501 INFO: Building COLLECT COLLECT-00.toc completed successfully.
282
+
283
+ (base) PS C:\Users\user\RPA>
156
284
 
157
285
  ```
158
286
 
@@ -169,269 +297,3 @@
169
297
  pip:21.0.1
170
298
 
171
299
  pyinstaller:4.2
172
-
173
-
174
-
175
- ### 追記(ログ確認)
176
-
177
- 下記を参考にし、exe実行時のログを確認しました。
178
-
179
- ログではエラー表記はなかったため、原因不明です。
180
-
181
-
182
-
183
- https://ja.stackoverflow.com/questions/66359/pyinstaller%E3%81%A7exe%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%8C%96%E3%81%97%E3%81%9F%E3%81%8C%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%AA%E3%81%84
184
-
185
-
186
-
187
- ↓ Pyinstaller実行時
188
-
189
-
190
-
191
- ```Python
192
-
193
- (base) PS C:\Users\user> pyinstaller excel_test.ipynb --clean --debug all
194
-
195
- 2587 INFO: PyInstaller: 4.2
196
-
197
- 2587 INFO: Python: 3.8.3 (conda)
198
-
199
- 2587 INFO: Platform: Windows-10-10.0.19041-SP0
200
-
201
- 2588 INFO: wrote C:\Users\user\excel_test.spec
202
-
203
- 2597 INFO: UPX is not available.
204
-
205
- 2598 INFO: Removing temporary files and cleaning cache in C:\Users\user\AppData\Roaming\pyinstaller
206
-
207
- 2632 INFO: Extending PYTHONPATH with paths
208
-
209
- ['C:\Users\user', 'C:\Users\user']
210
-
211
- 2734 INFO: checking Analysis
212
-
213
- 2735 INFO: Building Analysis because Analysis-00.toc is non existent
214
-
215
- 2735 INFO: Initializing module dependency graph...
216
-
217
- 2750 INFO: Caching module graph hooks...
218
-
219
- 2764 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
220
-
221
- 2771 INFO: Analyzing base_library.zip ...
222
-
223
- 11106 INFO: Processing pre-find module path hook distutils from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
224
-
225
- 11113 INFO: distutils: retargeting to non-venv dir 'c:\users\user\anaconda3\lib'
226
-
227
- 17545 INFO: Caching module dependency graph...
228
-
229
- 17896 INFO: running Analysis Analysis-00.toc
230
-
231
- 17921 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
232
-
233
- required by c:\users\user\anaconda3\python.exe
234
-
235
- 18371 INFO: Analyzing C:\Users\user\excel_test.ipynb
236
-
237
- 18379 INFO: Processing module hooks...
238
-
239
- 18380 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
240
-
241
- 18381 INFO: Excluding import of doctest from module difflib
242
-
243
- 18381 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
244
-
245
- 18384 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
246
-
247
- 18385 INFO: Excluding import of lib2to3.refactor from module distutils.util
248
-
249
- 18386 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
250
-
251
- 18530 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
252
-
253
- 18534 INFO: Excluding import of doctest from module heapq
254
-
255
- 18534 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
256
-
257
- 18597 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
258
-
259
- 18600 INFO: Excluding import of test.support from module multiprocessing.util
260
-
261
- 18600 INFO: Excluding import of test from module multiprocessing.util
262
-
263
- 18604 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
264
-
265
- 18611 INFO: Excluding import of argparse from module pickle
266
-
267
- 18611 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
268
-
269
- 18613 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
270
-
271
- 18615 INFO: Loading module hook 'hook-xml.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
272
-
273
- 18888 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
274
-
275
- 19163 INFO: checking Tree
276
-
277
- 19164 INFO: Building Tree because Tree-00.toc is non existent
278
-
279
- 19165 INFO: Building Tree Tree-00.toc
280
-
281
- 19248 INFO: checking Tree
282
-
283
- 19255 INFO: Building Tree because Tree-01.toc is non existent
284
-
285
- 19256 INFO: Building Tree Tree-01.toc
286
-
287
- 19424 INFO: checking Tree
288
-
289
- 19425 INFO: Building Tree because Tree-02.toc is non existent
290
-
291
- 19429 INFO: Building Tree Tree-02.toc
292
-
293
- 19467 INFO: Looking for ctypes DLLs
294
-
295
- 19541 INFO: Analyzing run-time hooks ...
296
-
297
- 19550 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
298
-
299
- 19563 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
300
-
301
- 19594 INFO: Looking for dynamic libraries
302
-
303
- 19916 INFO: Looking for eggs
304
-
305
- 19916 INFO: Using Python library c:\users\user\anaconda3\python38.dll
306
-
307
- 19921 INFO: Found binding redirects:
308
-
309
- []
310
-
311
- 20125 INFO: Warnings written to C:\Users\user\build\excel_test\warn-excel_test.txt
312
-
313
- 20231 INFO: Graph cross-reference written to C:\Users\user\build\excel_test\xref-excel_test.html
314
-
315
- 20251 INFO: checking PYZ
316
-
317
- 20251 INFO: Building PYZ because PYZ-00.toc is non existent
318
-
319
- 20251 INFO: Building PYZ (ZlibArchive) C:\Users\user\build\excel_test\PYZ-00.pyz
320
-
321
- 20253 INFO: Building PYZ (ZlibArchive) C:\Users\user\build\excel_test\PYZ-00.pyz completed successfully.
322
-
323
- 20266 INFO: checking PKG
324
-
325
- 20266 INFO: Building PKG because PKG-00.toc is non existent
326
-
327
- 20267 INFO: Building PKG (CArchive) PKG-00.pkg
328
-
329
- 20299 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
330
-
331
- 20303 INFO: Bootloader c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe
332
-
333
- 20304 INFO: checking EXE
334
-
335
- 20308 INFO: Building EXE because EXE-00.toc is non existent
336
-
337
- 20311 INFO: Building EXE from EXE-00.toc
338
-
339
- 20316 INFO: Copying icons from ['c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-console.ico']
340
-
341
- 20502 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
342
-
343
- 20503 INFO: Writing RT_ICON 1 resource with 3752 bytes
344
-
345
- 20504 INFO: Writing RT_ICON 2 resource with 2216 bytes
346
-
347
- 20510 INFO: Writing RT_ICON 3 resource with 1384 bytes
348
-
349
- 20513 INFO: Writing RT_ICON 4 resource with 37019 bytes
350
-
351
- 20513 INFO: Writing RT_ICON 5 resource with 9640 bytes
352
-
353
- 20514 INFO: Writing RT_ICON 6 resource with 4264 bytes
354
-
355
- 20515 INFO: Writing RT_ICON 7 resource with 1128 bytes
356
-
357
- 20519 INFO: Appending archive to EXE C:\Users\user\build\excel_test\excel_test.exe
358
-
359
- 20681 INFO: Building EXE from EXE-00.toc completed successfully.
360
-
361
- 20690 INFO: checking COLLECT
362
-
363
- 20691 INFO: Building COLLECT because COLLECT-00.toc is non existent
364
-
365
- 20692 INFO: Building COLLECT COLLECT-00.toc
366
-
367
- 24672 INFO: Building COLLECT COLLECT-00.toc completed successfully.
368
-
369
- ```
370
-
371
- ↓ exe実行時のログ(文字数の制限上途中は省略しています。)
372
-
373
-
374
-
375
- ```Python
376
-
377
- Microsoft Windows [Version 10.0.19041.804]
378
-
379
- (c) 2020 Microsoft Corporation. All rights reserved.
380
-
381
-
382
-
383
- C:\Users\user>cd dist\excel_test
384
-
385
-
386
-
387
- C:\Users\user\dist\excel_test>excel_test.exe
388
-
389
- [11368] PyInstaller Bootloader 3.x
390
-
391
- [11368] LOADER: executable is C:\Users\user\dist\excel_test\excel_test.exe
392
-
393
- [11368] LOADER: homepath is C:\Users\user\dist\excel_test
394
-
395
- [11368] LOADER: _MEIPASS2 is NULL
396
-
397
- [11368] LOADER: archivename is C:\Users\user\dist\excel_test\excel_test.exe
398
-
399
- [11368] LOADER: No need to extract files to run; setting extractionpath to homepath
400
-
401
- [11368] LOADER: SetDllDirectory(C:\Users\user\dist\excel_test)
402
-
403
- [11368] LOADER: Already in the child - running user's code.
404
-
405
- [11368] LOADER: Python library: C:\Users\user\dist\excel_test\python38.dll
406
-
407
- [11368] LOADER: Loaded functions from Python library.
408
-
409
- [11368] LOADER: Manipulating environment (sys.path, sys.prefix)
410
-
411
- [11368] LOADER: sys.prefix is C:\Users\user\dist\excel_test
412
-
413
- [11368] LOADER: Pre-init sys.path is C:\Users\user\dist\excel_test\base_library.zip;C:\Users\user\dist\excel_test
414
-
415
- [11368] LOADER: Setting runtime options
416
-
417
- [11368] LOADER: Runtime option: v
418
-
419
- [11368] LOADER: Initializing python
420
-
421
- import _frozen_importlib # frozen
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
- # destroy select
430
-
431
- # destroy _frozen_importlib
432
-
433
-
434
-
435
- C:\Users\user\dist\excel_test>
436
-
437
- ```

4

ログ追加

2021/03/07 14:15

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -169,3 +169,269 @@
169
169
  pip:21.0.1
170
170
 
171
171
  pyinstaller:4.2
172
+
173
+
174
+
175
+ ### 追記(ログ確認)
176
+
177
+ 下記を参考にし、exe実行時のログを確認しました。
178
+
179
+ ログではエラー表記はなかったため、原因不明です。
180
+
181
+
182
+
183
+ https://ja.stackoverflow.com/questions/66359/pyinstaller%E3%81%A7exe%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%8C%96%E3%81%97%E3%81%9F%E3%81%8C%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%AA%E3%81%84
184
+
185
+
186
+
187
+ ↓ Pyinstaller実行時
188
+
189
+
190
+
191
+ ```Python
192
+
193
+ (base) PS C:\Users\user> pyinstaller excel_test.ipynb --clean --debug all
194
+
195
+ 2587 INFO: PyInstaller: 4.2
196
+
197
+ 2587 INFO: Python: 3.8.3 (conda)
198
+
199
+ 2587 INFO: Platform: Windows-10-10.0.19041-SP0
200
+
201
+ 2588 INFO: wrote C:\Users\user\excel_test.spec
202
+
203
+ 2597 INFO: UPX is not available.
204
+
205
+ 2598 INFO: Removing temporary files and cleaning cache in C:\Users\user\AppData\Roaming\pyinstaller
206
+
207
+ 2632 INFO: Extending PYTHONPATH with paths
208
+
209
+ ['C:\Users\user', 'C:\Users\user']
210
+
211
+ 2734 INFO: checking Analysis
212
+
213
+ 2735 INFO: Building Analysis because Analysis-00.toc is non existent
214
+
215
+ 2735 INFO: Initializing module dependency graph...
216
+
217
+ 2750 INFO: Caching module graph hooks...
218
+
219
+ 2764 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
220
+
221
+ 2771 INFO: Analyzing base_library.zip ...
222
+
223
+ 11106 INFO: Processing pre-find module path hook distutils from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\pre_find_module_path\hook-distutils.py'.
224
+
225
+ 11113 INFO: distutils: retargeting to non-venv dir 'c:\users\user\anaconda3\lib'
226
+
227
+ 17545 INFO: Caching module dependency graph...
228
+
229
+ 17896 INFO: running Analysis Analysis-00.toc
230
+
231
+ 17921 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
232
+
233
+ required by c:\users\user\anaconda3\python.exe
234
+
235
+ 18371 INFO: Analyzing C:\Users\user\excel_test.ipynb
236
+
237
+ 18379 INFO: Processing module hooks...
238
+
239
+ 18380 INFO: Loading module hook 'hook-difflib.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
240
+
241
+ 18381 INFO: Excluding import of doctest from module difflib
242
+
243
+ 18381 INFO: Loading module hook 'hook-distutils.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
244
+
245
+ 18384 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
246
+
247
+ 18385 INFO: Excluding import of lib2to3.refactor from module distutils.util
248
+
249
+ 18386 INFO: Loading module hook 'hook-encodings.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
250
+
251
+ 18530 INFO: Loading module hook 'hook-heapq.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
252
+
253
+ 18534 INFO: Excluding import of doctest from module heapq
254
+
255
+ 18534 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
256
+
257
+ 18597 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
258
+
259
+ 18600 INFO: Excluding import of test.support from module multiprocessing.util
260
+
261
+ 18600 INFO: Excluding import of test from module multiprocessing.util
262
+
263
+ 18604 INFO: Loading module hook 'hook-pickle.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
264
+
265
+ 18611 INFO: Excluding import of argparse from module pickle
266
+
267
+ 18611 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
268
+
269
+ 18613 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
270
+
271
+ 18615 INFO: Loading module hook 'hook-xml.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
272
+
273
+ 18888 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks'...
274
+
275
+ 19163 INFO: checking Tree
276
+
277
+ 19164 INFO: Building Tree because Tree-00.toc is non existent
278
+
279
+ 19165 INFO: Building Tree Tree-00.toc
280
+
281
+ 19248 INFO: checking Tree
282
+
283
+ 19255 INFO: Building Tree because Tree-01.toc is non existent
284
+
285
+ 19256 INFO: Building Tree Tree-01.toc
286
+
287
+ 19424 INFO: checking Tree
288
+
289
+ 19425 INFO: Building Tree because Tree-02.toc is non existent
290
+
291
+ 19429 INFO: Building Tree Tree-02.toc
292
+
293
+ 19467 INFO: Looking for ctypes DLLs
294
+
295
+ 19541 INFO: Analyzing run-time hooks ...
296
+
297
+ 19550 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py'
298
+
299
+ 19563 INFO: Including run-time hook 'c:\users\user\anaconda3\lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_win32api.py'
300
+
301
+ 19594 INFO: Looking for dynamic libraries
302
+
303
+ 19916 INFO: Looking for eggs
304
+
305
+ 19916 INFO: Using Python library c:\users\user\anaconda3\python38.dll
306
+
307
+ 19921 INFO: Found binding redirects:
308
+
309
+ []
310
+
311
+ 20125 INFO: Warnings written to C:\Users\user\build\excel_test\warn-excel_test.txt
312
+
313
+ 20231 INFO: Graph cross-reference written to C:\Users\user\build\excel_test\xref-excel_test.html
314
+
315
+ 20251 INFO: checking PYZ
316
+
317
+ 20251 INFO: Building PYZ because PYZ-00.toc is non existent
318
+
319
+ 20251 INFO: Building PYZ (ZlibArchive) C:\Users\user\build\excel_test\PYZ-00.pyz
320
+
321
+ 20253 INFO: Building PYZ (ZlibArchive) C:\Users\user\build\excel_test\PYZ-00.pyz completed successfully.
322
+
323
+ 20266 INFO: checking PKG
324
+
325
+ 20266 INFO: Building PKG because PKG-00.toc is non existent
326
+
327
+ 20267 INFO: Building PKG (CArchive) PKG-00.pkg
328
+
329
+ 20299 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
330
+
331
+ 20303 INFO: Bootloader c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe
332
+
333
+ 20304 INFO: checking EXE
334
+
335
+ 20308 INFO: Building EXE because EXE-00.toc is non existent
336
+
337
+ 20311 INFO: Building EXE from EXE-00.toc
338
+
339
+ 20316 INFO: Copying icons from ['c:\users\user\anaconda3\lib\site-packages\PyInstaller\bootloader\images\icon-console.ico']
340
+
341
+ 20502 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
342
+
343
+ 20503 INFO: Writing RT_ICON 1 resource with 3752 bytes
344
+
345
+ 20504 INFO: Writing RT_ICON 2 resource with 2216 bytes
346
+
347
+ 20510 INFO: Writing RT_ICON 3 resource with 1384 bytes
348
+
349
+ 20513 INFO: Writing RT_ICON 4 resource with 37019 bytes
350
+
351
+ 20513 INFO: Writing RT_ICON 5 resource with 9640 bytes
352
+
353
+ 20514 INFO: Writing RT_ICON 6 resource with 4264 bytes
354
+
355
+ 20515 INFO: Writing RT_ICON 7 resource with 1128 bytes
356
+
357
+ 20519 INFO: Appending archive to EXE C:\Users\user\build\excel_test\excel_test.exe
358
+
359
+ 20681 INFO: Building EXE from EXE-00.toc completed successfully.
360
+
361
+ 20690 INFO: checking COLLECT
362
+
363
+ 20691 INFO: Building COLLECT because COLLECT-00.toc is non existent
364
+
365
+ 20692 INFO: Building COLLECT COLLECT-00.toc
366
+
367
+ 24672 INFO: Building COLLECT COLLECT-00.toc completed successfully.
368
+
369
+ ```
370
+
371
+ ↓ exe実行時のログ(文字数の制限上途中は省略しています。)
372
+
373
+
374
+
375
+ ```Python
376
+
377
+ Microsoft Windows [Version 10.0.19041.804]
378
+
379
+ (c) 2020 Microsoft Corporation. All rights reserved.
380
+
381
+
382
+
383
+ C:\Users\user>cd dist\excel_test
384
+
385
+
386
+
387
+ C:\Users\user\dist\excel_test>excel_test.exe
388
+
389
+ [11368] PyInstaller Bootloader 3.x
390
+
391
+ [11368] LOADER: executable is C:\Users\user\dist\excel_test\excel_test.exe
392
+
393
+ [11368] LOADER: homepath is C:\Users\user\dist\excel_test
394
+
395
+ [11368] LOADER: _MEIPASS2 is NULL
396
+
397
+ [11368] LOADER: archivename is C:\Users\user\dist\excel_test\excel_test.exe
398
+
399
+ [11368] LOADER: No need to extract files to run; setting extractionpath to homepath
400
+
401
+ [11368] LOADER: SetDllDirectory(C:\Users\user\dist\excel_test)
402
+
403
+ [11368] LOADER: Already in the child - running user's code.
404
+
405
+ [11368] LOADER: Python library: C:\Users\user\dist\excel_test\python38.dll
406
+
407
+ [11368] LOADER: Loaded functions from Python library.
408
+
409
+ [11368] LOADER: Manipulating environment (sys.path, sys.prefix)
410
+
411
+ [11368] LOADER: sys.prefix is C:\Users\user\dist\excel_test
412
+
413
+ [11368] LOADER: Pre-init sys.path is C:\Users\user\dist\excel_test\base_library.zip;C:\Users\user\dist\excel_test
414
+
415
+ [11368] LOADER: Setting runtime options
416
+
417
+ [11368] LOADER: Runtime option: v
418
+
419
+ [11368] LOADER: Initializing python
420
+
421
+ import _frozen_importlib # frozen
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+ # destroy select
430
+
431
+ # destroy _frozen_importlib
432
+
433
+
434
+
435
+ C:\Users\user\dist\excel_test>
436
+
437
+ ```

3

表記変更

2021/03/07 04:18

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- 尚、exeファイル正常動作は下記のような簡単な動作になります。
13
+ 尚、Pythonコードは下記通りで、ポップアップが表示されるみのコードです。
14
14
 
15
15
 
16
16
 

2

コード入力

2021/03/05 14:11

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
@@ -14,9 +14,15 @@
14
14
 
15
15
 
16
16
 
17
- ・windowsの検索欄にexcelファイル名を入力し、ファイル立ち上げ
17
+ ```Python
18
18
 
19
- ・excelでctrl+cを押す
19
+ import pyautogui as pgui
20
+
21
+
22
+
23
+ pgui.alert('exe化テスト')
24
+
25
+ ```
20
26
 
21
27
 
22
28
 

1

タグ追加

2021/03/05 14:08

投稿

python01
python01

スコア11

test CHANGED
File without changes
test CHANGED
File without changes