質問編集履歴
3
エラーメッセージを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,6 +33,50 @@
|
|
33
33
|
from dateutil.relativedelta import relativedelta
|
34
34
|
|
35
35
|
import pyperclip as clip
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
生成されたexeファイルを実行した結果のエラーメッセージは以下の通りです。
|
40
|
+
|
41
|
+
```python
|
42
|
+
|
43
|
+
Traceback (most recent call last):
|
44
|
+
|
45
|
+
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 149, in __init__
|
46
|
+
|
47
|
+
File "ctypes\__init__.py", line 351, in __init__
|
48
|
+
|
49
|
+
OSError: [WinError 126] 指定されたモジュールが見つかりません。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
During handling of the above exception, another exception occurred:
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
Traceback (most recent call last):
|
58
|
+
|
59
|
+
File "testGui.py", line 11, in <module>
|
60
|
+
|
61
|
+
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
|
62
|
+
|
63
|
+
File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked
|
64
|
+
|
65
|
+
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
|
66
|
+
|
67
|
+
File "c:\users\ma8wi\anaconda3\envs\py35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
|
68
|
+
|
69
|
+
exec(bytecode, module.__dict__)
|
70
|
+
|
71
|
+
File "site-packages\vlc.py", line 198, in <module>
|
72
|
+
|
73
|
+
File "site-packages\vlc.py", line 169, in find_lib
|
74
|
+
|
75
|
+
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151, in __init__
|
76
|
+
|
77
|
+
__main__.PyInstallerImportError: Failed to load dynlib/dll 'libvlc.dll'. Most probably this dynlib/dll was not found when the application was frozen.
|
78
|
+
|
79
|
+
[3156] Failed to execute script testGui
|
36
80
|
|
37
81
|
```
|
38
82
|
|
2
コードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,9 +6,39 @@
|
|
6
6
|
|
7
7
|
せっかくなのでexe化してみようと思いPyInstallerを使ってみたのですが、うまくいきません。
|
8
8
|
|
9
|
+
ビルド時のコンソールでの命令文は以下の通りです。
|
10
|
+
|
11
|
+
```Python
|
12
|
+
|
13
|
+
pyinstaller testGui.py -p "C:\Users\ma8wi\Anaconda3\envs\py35\Lib\site-packages\PyQt5\Qt\bin" -p "C:\Program Files\VideoLAN\VLC"
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
インポートしているモジュールは以下の通りです。
|
18
|
+
|
19
|
+
```Python
|
20
|
+
|
21
|
+
import sys
|
22
|
+
|
23
|
+
import os
|
24
|
+
|
25
|
+
import vlc
|
26
|
+
|
27
|
+
import keyboard
|
28
|
+
|
29
|
+
from PyQt5 import QtCore
|
30
|
+
|
31
|
+
from PyQt5 import QtWidgets
|
32
|
+
|
33
|
+
from dateutil.relativedelta import relativedelta
|
34
|
+
|
35
|
+
import pyperclip as clip
|
36
|
+
|
37
|
+
```
|
38
|
+
|
9
39
|
ビルド時のwarningは以下の通りです。
|
10
40
|
|
11
|
-
|
41
|
+
```Pyhton
|
12
42
|
|
13
43
|
missing module named resource - imported by posix, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
14
44
|
|
@@ -64,15 +94,13 @@
|
|
64
94
|
|
65
95
|
missing module named Queue - imported by keyboard, keyboard._nixcommon, keyboard._generic
|
66
96
|
|
67
|
-
|
68
|
-
|
69
|
-
|
97
|
+
```
|
70
98
|
|
71
99
|
|
72
100
|
|
73
101
|
###試したこと
|
74
102
|
|
75
|
-
exe化する際にうまくvlcが取り込めていないのか?と思い、vlcを使わないプログラムをexe化してみました。この場合にはうまく動いた
|
103
|
+
exe化する際にうまくvlcが取り込めていないのか?と思い、vlcを使わないプログラムをexe化してみました。この場合にはうまく動いきました。
|
76
104
|
|
77
105
|
|
78
106
|
|
1
warningリストを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,68 @@
|
|
5
5
|
練習としてPyQt5とvlcを用いたMP3プレーヤを作っています。
|
6
6
|
|
7
7
|
せっかくなのでexe化してみようと思いPyInstallerを使ってみたのですが、うまくいきません。
|
8
|
+
|
9
|
+
ビルド時のwarningは以下の通りです。
|
10
|
+
|
11
|
+
'
|
12
|
+
|
13
|
+
missing module named resource - imported by posix, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
14
|
+
|
15
|
+
missing module named posix - imported by os, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
16
|
+
|
17
|
+
missing module named _posixsubprocess - imported by subprocess, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
18
|
+
|
19
|
+
missing module named 'org.python' - imported by pickle, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py, xml.sax
|
20
|
+
|
21
|
+
missing module named ce - imported by os, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
22
|
+
|
23
|
+
missing module named readline - imported by cmd, code, pdb, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
24
|
+
|
25
|
+
excluded module named _frozen_importlib - imported by importlib, importlib.abc, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
26
|
+
|
27
|
+
missing module named _frozen_importlib_external - imported by importlib._bootstrap, importlib, importlib.abc, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
28
|
+
|
29
|
+
missing module named _winreg - imported by platform, vlc, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
30
|
+
|
31
|
+
missing module named _scproxy - imported by urllib.request
|
32
|
+
|
33
|
+
missing module named java - imported by platform, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
34
|
+
|
35
|
+
missing module named 'java.lang' - imported by platform, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py, xml.sax._exceptions
|
36
|
+
|
37
|
+
missing module named vms_lib - imported by platform, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
38
|
+
|
39
|
+
missing module named termios - imported by tty, vlc, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py, getpass
|
40
|
+
|
41
|
+
missing module named grp - imported by shutil, tarfile, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
42
|
+
|
43
|
+
missing module named _dummy_threading - imported by dummy_threading, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
44
|
+
|
45
|
+
missing module named org - imported by copy, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py
|
46
|
+
|
47
|
+
missing module named pwd - imported by posixpath, shutil, tarfile, http.server, webbrowser, C:\Users\ma8wi\Documents\Python Scripts\testAudio\testGui.py, netrc, getpass
|
48
|
+
|
49
|
+
missing module named AppKit - imported by keyboard._darwinkeyboard, pyperclip
|
50
|
+
|
51
|
+
missing module named Foundation - imported by pyperclip
|
52
|
+
|
53
|
+
missing module named PyQt4 - imported by pyperclip
|
54
|
+
|
55
|
+
missing module named qtpy - imported by pyperclip
|
56
|
+
|
57
|
+
missing module named gtk - imported by pyperclip
|
58
|
+
|
59
|
+
missing module named StringIO - imported by six
|
60
|
+
|
61
|
+
missing module named Quartz - imported by keyboard._darwinkeyboard
|
62
|
+
|
63
|
+
missing module named fcntl - imported by keyboard._nixcommon
|
64
|
+
|
65
|
+
missing module named Queue - imported by keyboard, keyboard._nixcommon, keyboard._generic
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
'
|
8
70
|
|
9
71
|
|
10
72
|
|