flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
402 stars 203 forks source link

"EOFError: Ran out of Input" after trying new login method #914

Open der-peer opened 1 month ago

der-peer commented 1 month ago

Describe the bug I tried the new login method, input everything. When saving, there came "Ran out of input". Retried several times. Then I tried to update the docker container, maybe there had been something new? But after that, the container does not come up. Log says:

Containerised psa_car_controller loading...
2024-07-11 09:40:02,348 :: INFO :: App version 3.5.1
2024-07-11 09:40:07,652 :: INFO :: ["{'vin': 'V[...]3', 'vehicle_id': '1[...]6', 'label': 'e-208', 'brand': 'Peugeot', 'abrp_name': 'peugeot:e208:20:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
Traceback (most recent call last):
  File "/usr/local/bin/psa-car-controller", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/__main__.py", line 20, in main
    app.load_app()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/car_controller.py", line 116, in load_app
    self.start_remote_control()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/car_controller.py", line 65, in start_remote_control
    self.myp.remote_client.start()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 105, in start
    if self.load_otp():
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 256, in load_otp
    otp_session = load_otp()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/otp/otp.py", line 321, in load_otp
    return pickle.load(input_file)
EOFError: Ran out of input
2024-07-11 09:40:07,653 :: INFO :: save config change

To Reproduce Steps to reproduce the behavior:

  1. what command did you use docker restart psa_car_controller
  2. when the bug append ?
  3. Does it persist after restarting the program? yes
  4. Does it persist after recreate config by going to http://server_address:port/config? Does not apply since container does not start

Config file

{
    "abrp": {
        "abrp_enable_vin": [],
        "token": ""
    },
    "client_id": "1[...]0",
    "client_secret": "T[...]1",
    "co2_signal_api": null,
    "country_code": "DE",
    "customer_id": "AP-ACNT2[...]9",
    "proxies": {
        "http": "",
        "https": ""
    },
    "realm": "clientsB2CPeugeot",
    "refresh_token": "a[...]3",
    "remote_refresh_token": null,
    "weather_api": "f[...]1"
}

Environment (please complete the following information):

danros3 commented 1 month ago

Also Here... Till friday all was running, but now, on container log I can see this

EOFError: Ran out of input
2024-07-14 19:10:46,539 :: INFO :: save config change
Containerised psa_car_controller loading...
2024-07-14 19:11:13,395 :: INFO :: App version 3.5.1
2024-07-14 19:11:14,211 :: INFO :: ["{'vin': '*********************', 'vehicle_id': '*************', 'label': 'corsa-e', 'brand': 'C', 'abrp_name': 'opel:corsae:20:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
Traceback (most recent call last):
  File "/usr/local/bin/psa-car-controller", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/__main__.py", line 20, in main
    app.load_app()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/car_controller.py", line 116, in load_app
    self.start_remote_control()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psacc/application/car_controller.py", line 65, in start_remote_control
    self.myp.remote_client.start()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 105, in start
    if self.load_otp():
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/RemoteClient.py", line 256, in load_otp
    otp_session = load_otp()
  File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/psa/otp/otp.py", line 321, in load_otp
    return pickle.load(input_file)
EOFError: Ran out of input
2024-07-14 19:11:14,215 :: INFO :: save config change

` Thank you

der-peer commented 1 month ago

Hello, could please someone try to give a hint on this? The problem still persists.

Thanks!

grafik

danros3 commented 3 weeks ago

Hi. No one have any hint regarding this? Appreciate it.

Thank you.

danros3 commented 2 weeks ago

Hi I think i found the problem. Mine errore saw: File "/usr/local/lib/python3.9/dist-packages/psa_car_controller/

But on my linux machine I have

File "/usr/local/lib/python3.12/dist-packages/

without folder psa_car_controller/.....

So I think I need to change code to (1 option) point at folder I have, (point 2) change folder were psa_car save files.

So I'm asking to @flobz how can I change or solve this issue.

I'm sorry, I'm pretty new on pyton.

Thanks.