前提・実現したいこと
raspberrypiでsystemdを用いてtweepyを使ったプログラムの実行
ここに質問の内容を詳しく書いてください。
systemedで実行するとこうなってします
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
● goldfish.service - goldfish
Loaded: loaded (/etc/systemd/system/goldfish.service; static; vendor preset:
Active: failed (Result: exit-code) since Sat 2018-07-28 23:17:48 JST; 1min 20
Process: 984 ExecStart=/usr/bin/python3 /home/pi/python_program/test_camera.py
Main PID: 984 (code=exited, status=1/FAILURE)
7月 28 23:17:46 raspberrypi systemd[1]: Starting goldfish...
7月 28 23:17:47 raspberrypi python3[984]: Traceback (most recent call last):
7月 28 23:17:47 raspberrypi python3[984]: File "/home/pi/python_program/test_c
7月 28 23:17:47 raspberrypi python3[984]: import tweepy
7月 28 23:17:47 raspberrypi python3[984]: ImportError: No module named 'tweepy'
7月 28 23:17:48 raspberrypi systemd[1]: goldfish.service: Main process exited, c
7月 28 23:17:48 raspberrypi systemd[1]: Failed to start goldfish.
7月 28 23:17:48 raspberrypi systemd[1]: goldfish.service: Unit entered failed st
7月 28 23:17:48 raspberrypi systemd[1]: goldfish.service: Failed with result 'ex
### 試したこと ここに問題に対して試したことを記載してください。 IDEやターミナルではできます pip3 show tweepyでは表示されています ここにより詳細な情報を記載してください。 初心者なので言葉がたりていないかもしれません
あなたの回答
tips
プレビュー