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

質問編集履歴

1

テストコマンドを実行した際のエラーメッセージを追加

2020/02/27 13:16

投稿

teefpc
teefpc

スコア112

title CHANGED
File without changes
body CHANGED
@@ -1,3 +1,23 @@
1
1
  Raspberry Pi 3 カメラモジュールをつなげる場合、基本はpython2.7で動かすべきでしょうか。python2.7で動いていたカメラモジュールが、python3系に移行してから起動できなくなりました。picamera起動エラーの質問には、python3系が目立ちます。
2
2
 
3
- python2.7に戻す方法もわからないので、berrycondaもインストールして、仮想環境を作りましたが、強制定期にpython3.6になっています。そもそもRaspberry Piは仮想環境で動かすことを前提としていないかもしれないので、仮想環境でカメラモジュールを使おうということに無理がありそうな気もしました。
3
+ python2.7に戻す方法もわからないので、berrycondaもインストールして、仮想環境を作りましたが、強制定期にpython3.6になっています。そもそもRaspberry Piは仮想環境で動かすことを前提としていないかもしれないので、仮想環境でカメラモジュールを使おうということに無理がありそうな気もしました。
4
+
5
+
6
+ Raspberry Pi設定ユーティリティのカメラモジュールを有効にし、python3.6の仮想環境上でテストコマンドを実行すると、
7
+ ```sh
8
+ $ raspistill -o image.jpg
9
+
10
+ mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
11
+ mmal: camera component couldn't be enabled
12
+ mmal: main: Failed to create camera component
13
+ mmal: Failed to run camera app. Please check for firmware updates
14
+ ```
15
+ というメッセージがでます。
16
+ また、リモート環境から実行すると、
17
+ ```sh
18
+ $ raspistill -o image.jpg
19
+
20
+ mmal: No data received from sensor.
21
+ Check all connections, including the Sunny one on the camera board
22
+ ```
23
+ というメッセージになります。