質問編集履歴
2
EXE実行結果(決してPyInstallerの実行結果ではございません)
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,72 +26,8 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
|
-
### --noconsoleのオプション
|
29
|
+
### --noconsoleのオプションを外して仕上がげたEXEを 実行した結果になります。
|
30
30
|
|
31
|
-
|
31
|
+
### 22:11PM
|
32
32
|
|
33
|
-
```PyInstaller
|
34
|
-
|
35
|
-
Microsoft Windows [Version 10.0.14393]
|
36
|
-
|
37
|
-
(c) 2016 Microsoft Corporation. All rights reserved.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
C:\Users\hoge>py -m PyInstaller C:\Users\hoge\source\repos\MARTINEZ\MARTINEZ\MARTINEZ.py --onefile
|
42
|
-
|
43
|
-
125 INFO: PyInstaller: 3.6
|
44
|
-
|
45
|
-
125 INFO: Python: 3.6.6
|
46
|
-
|
47
|
-
125 INFO: Platform: Windows-10-10.0.14393-SP0
|
48
|
-
|
49
|
-
125 INFO: wrote C:\Users\hoge\MARTINEZ.spec
|
50
|
-
|
51
|
-
125 INFO: UPX is not available.
|
52
|
-
|
53
|
-
Traceback (most recent call last):
|
54
|
-
|
55
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 193, in _run_module_as_main
|
56
|
-
|
57
|
-
"__main__", mod_spec)
|
58
|
-
|
59
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 85, in _run_code
|
60
|
-
|
61
|
-
exec(code, run_globals)
|
62
|
-
|
63
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 121, in <module>
|
64
|
-
|
65
|
-
run()
|
66
|
-
|
67
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 114, in run
|
68
|
-
|
69
|
-
|
33
|
+
![実行結果](fd1f68bd6aa76479a56d9b4f64d234dc.png)
|
70
|
-
|
71
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
|
72
|
-
|
73
|
-
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
|
74
|
-
|
75
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
|
76
|
-
|
77
|
-
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
|
78
|
-
|
79
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
|
80
|
-
|
81
|
-
exec(code, spec_namespace)
|
82
|
-
|
83
|
-
File "C:\Users\hoge\MARTINEZ.spec", line 17, in <module>
|
84
|
-
|
85
|
-
noarchive=False)
|
86
|
-
|
87
|
-
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 191, in __init__
|
88
|
-
|
89
|
-
raise ValueError("script '%s' not found" % script)
|
90
|
-
|
91
|
-
ValueError: script 'C:\Users\hoge\source\repos\MARTINEZ\MARTINEZ\MARTINEZ.py' not found
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
C:\Users\hoge>
|
96
|
-
|
97
|
-
```
|
1
結果差し替え
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
|
-
###
|
29
|
+
### --noconsoleのオプションは外して 実行した結果です。(差替え21:35)
|
30
30
|
|
31
31
|
以下が画面に現れたログになります。
|
32
32
|
|
@@ -38,134 +38,60 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
C:\Users\hoge>py -m PyInstaller C:\Users\hoge\source\repos\MARTINEZ\MARTINEZ\MARTINEZ.py --onefile
|
41
|
+
C:\Users\hoge>py -m PyInstaller C:\Users\hoge\source\repos\MARTINEZ\MARTINEZ\MARTINEZ.py --onefile
|
42
42
|
|
43
|
-
1
|
43
|
+
125 INFO: PyInstaller: 3.6
|
44
44
|
|
45
|
-
1
|
45
|
+
125 INFO: Python: 3.6.6
|
46
46
|
|
47
|
-
1
|
47
|
+
125 INFO: Platform: Windows-10-10.0.14393-SP0
|
48
48
|
|
49
|
-
1
|
49
|
+
125 INFO: wrote C:\Users\hoge\MARTINEZ.spec
|
50
50
|
|
51
|
-
1
|
51
|
+
125 INFO: UPX is not available.
|
52
52
|
|
53
|
-
|
53
|
+
Traceback (most recent call last):
|
54
54
|
|
55
|
-
|
55
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 193, in _run_module_as_main
|
56
56
|
|
57
|
-
|
57
|
+
"__main__", mod_spec)
|
58
58
|
|
59
|
-
|
59
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\runpy.py", line 85, in _run_code
|
60
60
|
|
61
|
-
|
61
|
+
exec(code, run_globals)
|
62
62
|
|
63
|
-
|
63
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 121, in <module>
|
64
64
|
|
65
|
-
|
65
|
+
run()
|
66
66
|
|
67
|
-
|
67
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 114, in run
|
68
68
|
|
69
|
-
|
69
|
+
run_build(pyi_config, spec_file, **vars(args))
|
70
70
|
|
71
|
-
|
71
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
|
72
72
|
|
73
|
-
|
73
|
+
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
|
74
74
|
|
75
|
-
|
75
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
|
76
76
|
|
77
|
-
|
77
|
+
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
|
78
78
|
|
79
|
-
|
79
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
|
80
80
|
|
81
|
-
|
81
|
+
exec(code, spec_namespace)
|
82
82
|
|
83
|
-
|
83
|
+
File "C:\Users\hoge\MARTINEZ.spec", line 17, in <module>
|
84
84
|
|
85
|
-
|
85
|
+
noarchive=False)
|
86
86
|
|
87
|
-
|
87
|
+
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\building\build_main.py", line 191, in __init__
|
88
88
|
|
89
|
-
|
89
|
+
raise ValueError("script '%s' not found" % script)
|
90
90
|
|
91
|
-
9250 INFO: Loading module hook "hook-sqlite3.py"...
|
92
|
-
|
93
|
-
9375 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
|
94
|
-
|
95
|
-
9375 INFO: Loading module hook "hook-xml.py"...
|
96
|
-
|
97
|
-
9469 INFO: Loading module hook "hook-_tkinter.py"...
|
98
|
-
|
99
|
-
9688 INFO: checking Tree
|
100
|
-
|
101
|
-
9688 INFO: Building Tree because Tree-00.toc is non existent
|
102
|
-
|
103
|
-
9688 INFO: Building Tree Tree-00.toc
|
104
|
-
|
105
|
-
9813 INFO: checking Tree
|
106
|
-
|
107
|
-
9813 INFO: Building Tree because Tree-01.toc is non existent
|
108
|
-
|
109
|
-
9813 INFO: Building Tree Tree-01.toc
|
110
|
-
|
111
|
-
9876 INFO: Looking for ctypes DLLs
|
112
|
-
|
113
|
-
9891 INFO: Analyzing run-time hooks ...
|
114
|
-
|
115
|
-
9891 INFO: Including run-time hook 'pyi_rth_certifi.py'
|
116
|
-
|
117
|
-
9891 INFO: Including run-time hook 'pyi_rth__tkinter.py'
|
118
|
-
|
119
|
-
9907 INFO: Looking for dynamic libraries
|
120
|
-
|
121
|
-
10422 INFO: Looking for eggs
|
122
|
-
|
123
|
-
10422 INFO: Using Python library C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python36.dll
|
124
|
-
|
125
|
-
10422 INFO: Found binding redirects:
|
126
|
-
|
127
|
-
[]
|
128
|
-
|
129
|
-
|
91
|
+
ValueError: script 'C:\Users\hoge\source\repos\MARTINEZ\MARTINEZ\MARTINEZ.py' not found
|
130
|
-
|
131
|
-
10563 INFO: Graph cross-reference written to C:\Users\hoge\build\MARTINEZ\xref-MARTINEZ.html
|
132
|
-
|
133
|
-
10657 INFO: checking PYZ
|
134
|
-
|
135
|
-
10657 INFO: Building PYZ because PYZ-00.toc is non existent
|
136
|
-
|
137
|
-
10657 INFO: Building PYZ (ZlibArchive) C:\Users\hoge\build\MARTINEZ\PYZ-00.pyz
|
138
|
-
|
139
|
-
11719 INFO: Building PYZ (ZlibArchive) C:\Users\hoge\build\MARTINEZ\PYZ-00.pyz completed successfully.
|
140
|
-
|
141
|
-
11766 INFO: checking PKG
|
142
|
-
|
143
|
-
11766 INFO: Building PKG because PKG-00.toc is non existent
|
144
|
-
|
145
|
-
11766 INFO: Building PKG (CArchive) PKG-00.pkg
|
146
|
-
|
147
|
-
16111 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
|
148
|
-
|
149
|
-
16157 INFO: Bootloader C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw.exe
|
150
|
-
|
151
|
-
16157 INFO: checking EXE
|
152
|
-
|
153
|
-
16173 INFO: Building EXE because EXE-00.toc is non existent
|
154
|
-
|
155
|
-
16173 INFO: Building EXE from EXE-00.toc
|
156
|
-
|
157
|
-
16173 INFO: Appending archive to EXE C:\Users\hoge\dist\MARTINEZ.exe
|
158
|
-
|
159
|
-
16189 INFO: Building EXE from EXE-00.toc completed successfully.
|
160
92
|
|
161
93
|
|
162
94
|
|
163
95
|
C:\Users\hoge>
|
164
96
|
|
165
97
|
```
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
開発を終えて exe化する部分で 問題が生まれるとは全く想像しておりませんでした。
|
170
|
-
|
171
|
-
軽微な問題だとうれしいのですが....藁をも掴む思いです お助け下さい!
|