質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

MQTT

MQTT(Message Queue Telemetry Transport)とは、TCP/IPネットワークで利用可能な通信プロトコルの一つで、IoT/M2M向けに開発された軽量なプロトコルです。ヘッダ部分は最小2バイトと小さく、通信量・CPU負荷・電力消費量などを抑えることができます。

Q&A

解決済

1回答

2020閲覧

ESP32、Raspberry Pi、rshellのインストールについて

bobby2128

総合スコア42

Raspberry Pi

Raspberry Piは、ラズベリーパイ財団が開発した、名刺サイズのLinuxコンピュータです。 学校で基本的なコンピュータ科学の教育を促進することを意図しています。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

MQTT

MQTT(Message Queue Telemetry Transport)とは、TCP/IPネットワークで利用可能な通信プロトコルの一つで、IoT/M2M向けに開発された軽量なプロトコルです。ヘッダ部分は最小2バイトと小さく、通信量・CPU負荷・電力消費量などを抑えることができます。

0グッド

0クリップ

投稿2018/06/09 10:50

編集2018/06/11 00:29

現在,RaspberryPi3 modelBと、ESP32ボード(WEMOS製)を使って、
以下のURLに示されるように、micropythonによる環境構築を考えています。
https://www.rototron.info/raspberry-pi-esp32-micropython-tutorial/

前半は順調に進んだのですが、rshellというものをインストールし実行する際に以下のようなエラー文が出てきて次に進めなくなってしまいました。

何か解決に向けたアドバイスやヒント等ございましたら、どうかコメント等、よろしくお願いいたします。

rshellのインストール時の様子

python

1pi@raspberrypi:~ $ sudo pip3 install rshell 2 3Downloading/unpacking rshell 4 Downloading rshell-0.0.13.tar.gz (41kB): 41kB downloaded 5 Running setup.py (path:/tmp/pip-build-7ejbpxl9/rshell/setup.py) egg_info for package rshell 6 7 package init file 'tests/__init__.py' not found (or not a regular file) 8 warning: no files found matching 'tests/test-rshell.shr' 9Requirement already satisfied (use --upgrade to upgrade): pyserial in /usr/lib/python3/dist-packages (from rshell) 10Downloading/unpacking pyudev>=0.16 (from rshell) 11 Downloading pyudev-0.21.0.tar.gz (89kB): 89kB downloaded 12 Running setup.py (path:/tmp/pip-build-7ejbpxl9/pyudev/setup.py) egg_info for package pyudev 13 14 warning: no previously-included files matching '*.py' found under directory 'tests/.hypothesis' 15 warning: no files found matching '*.c' under directory 'reproducers' 16 warning: no files found matching '*.py' under directory 'reproducers' 17Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python3/dist-packages (from pyudev>=0.16->rshell) 18Installing collected packages: rshell, pyudev 19 Running setup.py install for rshell 20 package init file 'tests/__init__.py' not found (or not a regular file) 21 File "/usr/local/lib/python3.4/dist-packages/rshell/main.py", line 508 22 wrapper.extra_funcs = [*funcs] 23 ^ 24 SyntaxError: can use starred expression only as assignment target 25 26 27 warning: no files found matching 'tests/test-rshell.shr' 28 Installing pyboard script to /usr/local/bin 29 Installing rshell script to /usr/local/bin 30 Running setup.py install for pyudev 31 32 warning: no previously-included files matching '*.py' found under directory 'tests/.hypothesis' 33 warning: no files found matching '*.c' under directory 'reproducers' 34 warning: no files found matching '*.py' under directory 'reproducers' 35Successfully installed rshell pyudev 36Cleaning up...

実行エラーの様子

python

1pi@raspberrypi:~ $ rshell --buffer-size=30 -p /dev/ttyUSB0 2 3Traceback (most recent call last): 4 File "/usr/local/bin/rshell", line 9, in <module> 5 load_entry_point('rshell==0.0.13', 'console_scripts', 'rshell')() 6 File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point 7 return get_distribution(dist).load_entry_point(group, name) 8 File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point 9 return ep.load() 10 File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load 11 ['__name__']) 12 File "/usr/local/lib/python3.4/dist-packages/rshell/command_line.py", line 1, in <module> 13 import rshell.main 14 File "/usr/local/lib/python3.4/dist-packages/rshell/main.py", line 508 15 wrapper.extra_funcs = [*funcs] 16 ^ 17SyntaxError: can use starred expression only as assignment target

WEMOS製のESP32ボード
https://www.mosfex.com/product/86/%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94%E0%B8%9E%E0%B8%B1%E0%B8%92%E0%B8%99%E0%B8%B2-iot-wemos%C2%AE-lolin32-v1-0-0-esp32-wifibluetooth-%E0%B8%95%E0%B9%88%E0%B8%AD%E0%B9%81%E0%B8%9A%E0%B8%95-lipo-li-ion-%E0%B9%84%E0%B8%94%E0%B9%89-%E0%B8%8A%E0%B8%B2%E0%B8%A3%E0%B9%8C%E0%B8%88%E0%B9%84%E0%B8%94%E0%B9%89

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

bobby2128さん、

再現できませんでした。

環境が壊れてるかもしれないので、Raspbianを入れ直して、確認してみてはどうでしょうか?

pi@raspberrypi:~ $ sudo pip3 install rshell Collecting rshell Downloading https://www.piwheels.org/simple/rshell/rshell-0.0.13-py3-none-any.whl (42kB) 100% |████████████████████████████████| 51kB 148kB/s Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from rshell) Collecting pyudev>=0.16 (from rshell) Downloading https://www.piwheels.org/simple/pyudev/pyudev-0.21.0-py3-none-any.whl (56kB) 100% |████████████████████████████████| 61kB 170kB/s Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pyudev>=0.16->rshell) Installing collected packages: pyudev, rshell Successfully installed pyudev-0.21.0 rshell-0.0.13 pi@raspberrypi:~ $ pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" pi@raspberrypi:~ $

投稿2018/06/12 00:24

mt08

総合スコア1825

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

bobby2128

2018/06/13 08:56

mt08 様 お忙しい中、再現テストを実施していただき誠にありがとうございました。 アドバイスの通り、OSを入れなおして実行した結果、問題なくインストールできました。 ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問