質問するログイン新規登録

質問編集履歴

2

軽微な修正

2020/04/24 05:40

投稿

sasa_ki
sasa_ki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -20,6 +20,10 @@
20
20
  from PyQt5 import QtGui, QtCore, QtWidgets, uic
21
21
  ImportError: cannot import name 'QtWidgets' from 'PyQt5' (unknown location)
22
22
 
23
+ インストール時のエラーメッセージ
24
+ make[1]: *** [Makefile:1740: sipQtGuiQShortcutEvent.o] エラー 1
25
+ make[1]: ディレクトリ '/home/pi/ダウンロード/PyQt5-5.13.2/QtGui' から出ます
26
+ make: *** [Makefile:101: sub-QtGui-make_first-ordered] エラー 2
23
27
 
24
28
  ```
25
29
 
@@ -92,12 +96,6 @@
92
96
  if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
93
97
  QtGui.QApplication.instance().exec_()
94
98
 
95
- インストール時のエラーメッセージ
96
- make[1]: *** [Makefile:1740: sipQtGuiQShortcutEvent.o] エラー 1
97
- make[1]: ディレクトリ '/home/pi/ダウンロード/PyQt5-5.13.2/QtGui' から出ます
98
- make: *** [Makefile:101: sub-QtGui-make_first-ordered] エラー 2
99
-
100
-
101
99
  ```
102
100
 
103
101
  ### 試したこと

1

エラー内容を追記

2020/04/24 05:40

投稿

sasa_ki
sasa_ki

スコア4

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,7 @@
10
10
  ### 発生している問題・エラーメッセージ
11
11
 
12
12
  ```
13
+ コード実行時のエラーメッセージ
13
14
  Traceback (most recent call last):
14
15
  File "web1-2.py", line 2, in <module>
15
16
  import pyqtgraph as pg
@@ -18,6 +19,8 @@
18
19
  File "/home/pi/.local/lib/python3.7/site-packages/pyqtgraph/Qt.py", line 153, in <module>
19
20
  from PyQt5 import QtGui, QtCore, QtWidgets, uic
20
21
  ImportError: cannot import name 'QtWidgets' from 'PyQt5' (unknown location)
22
+
23
+
21
24
  ```
22
25
 
23
26
  ### 該当のソースコード
@@ -89,7 +92,12 @@
89
92
  if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
90
93
  QtGui.QApplication.instance().exec_()
91
94
 
95
+ インストール時のエラーメッセージ
96
+ make[1]: *** [Makefile:1740: sipQtGuiQShortcutEvent.o] エラー 1
97
+ make[1]: ディレクトリ '/home/pi/ダウンロード/PyQt5-5.13.2/QtGui' から出ます
98
+ make: *** [Makefile:101: sub-QtGui-make_first-ordered] エラー 2
92
99
 
100
+
93
101
  ```
94
102
 
95
103
  ### 試したこと