Replies: 5 comments 13 replies
-
Same here (Debian on x86 platform)… |
Beta Was this translation helpful? Give feedback.
-
I updated the docs : https://github.com/flobz/psa_car_controller/blob/master/docs/Install.md |
Beta Was this translation helpful? Give feedback.
-
Thank you @flobz for your explantions; it's now better but the server seems "not working" - no access at intranet adress "http://127.0.0.1:5000/get_vehicleinfo/VR3UHxxxx as usual. pi@raspberrypi:~ $ sudo systemctl enable --now psa_car_controller.service avril 03 16:40:03 raspberrypi systemd[1]: Started Remote Control of PSA car. avril 03 16:40:10 raspberrypi psa_car_controller[2188]: File "", line 677, in _load_unlocked pi@raspberrypi:~ $ sudo systemctl status psa_car_controller.service avril 03 16:40:26 raspberrypi psa_car_controller[2188]: 2022-04-03 16:40:26,285 :: INFO :: mqtt msg received: psa/RemoteServices/events/MPHRTServices/VR3UHZKXxxxxxx b'{"date":"2022-04-03T14:40:19Z","etat_res_elec":0,"precond_state": Thank you for your support |
Beta Was this translation helpful? Give feedback.
-
First of all use the updated psa-car-controller.service |
Beta Was this translation helpful? Give feedback.
-
Hello @flobz , I have normally followed your instruction... however, it seems not enough I have redo "all the process" to update as:
[Unit] [Service] [Install]
Log is:pi@raspberrypi:~ $ sudo systemctl status psa_car_controller.service avril 05 19:55:33 raspberrypi psa_car_controller[1617]: File "", line 983, in _find_and_load |
Beta Was this translation helpful? Give feedback.
-
Hello,
With the last release of this App, I saw one change on the main file; in the past, the name was "server.py", now it's "main.py" and also a change link to the directory.
As usual, I have performed the update of the App (my configuration is a Rapsberry with Debian) with the command "git pull --rebase" and files seems perfectly updated.
To be in accordance with the "main file" of the App, I have change the name of the main file in my "launch file":
this file name is "/usr/local/bin/psa_car_controller" and is an exe.
Previous:
#! /usr/bin/env sh
exec /usr/local/src/psa_car_controller/.env/bin/python3 /usr/local/src/psa_car_controller/server.py "$@"
New:
#! /usr/bin/env sh
exec /usr/local/src/psa_car_controller/.env/bin/python3 /usr/local/src/psa_car_controller/psa_car_controller/main.py "$@"
and after, I may able to launch the service (using systemd process) as:
ExecStart=/usr/local/src/psa_car_controller/.env/bin/python3 /usr/local/src/psa_car_controller/server.py -f config.json -c charge_config.json --mail xxxx@xx.fr --password xxx
So, when I launch the App with the last update of this App, I have the message as:
pi@raspberrypi:~ $ sudo systemctl status psa_car_controller.service
● psa_car_controller.service - Remote Control of PSA car
Loaded: loaded (/etc/systemd/system/psa_car_controller.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-04-01 19:16:59 CEST; 4s ago
Process: 8871 ExecStart=/usr/local/bin/psa_car_controller -m -f config.json -c charge_config.json --mail xxxx@xx.fr --password xxxx (code=exited, status=1/FAILURE)
Main PID: 8871 (code=exited, status=1/FAILURE)
avril 01 19:16:59 raspberrypi systemd[1]: Started Remote Control of PSA car.
avril 01 19:16:59 raspberrypi psa_car_controller[8871]: Traceback (most recent call last):
avril 01 19:16:59 raspberrypi psa_car_controller[8871]: File "/usr/local/src/psa_car_controller/psa_car_controller/main.py", line 13, in
avril 01 19:16:59 raspberrypi psa_car_controller[8871]: from psa_car_controller.psacc.application.car_controller import PSACarController
avril 01 19:16:59 raspberrypi psa_car_controller[8871]: ModuleNotFoundError: No module named 'psa_car_controller'
avril 01 19:16:59 raspberrypi systemd[1]: psa_car_controller.service: Main process exited, code=exited, status=1/FAILURE
avril 01 19:16:59 raspberrypi systemd[1]: psa_car_controller.service: Failed with result 'exit-code'.
My first idea was link to the librarian 'psa_car_controller' based on the error " raspberrypi psa_car_controller[8871]: ModuleNotFoundError: No module named 'psa_car_controller'
-> but I'm not able to fix it. If you have an Idea to help me ...
Note: I'm using this App for some months, and the first time, I have followed the explaination in "Youtube" attached in the readme.
Thank you in advance for your support.
Beta Was this translation helpful? Give feedback.
All reactions