Skip to content

Handling of charging-stations.json in PreRelease 0.10.0-rc4 #161

@jmerifjKriwe

Description

@jmerifjKriwe

I don't know why it is happening but if I try to use PreRelease 0.10.0-rc4 and copy my whole configuration, I run into:

Traceback (most recent call last):
  File "/usr/src/app/./main.py", line 21, in <module>
    configuration = process_command_line()
                    ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/app/configuration/parser.py", line 37, in process_command_line
    __setup_integrations(args, config)
  File "/usr/src/app/configuration/parser.py", line 47, in __setup_integrations
    __setup_openwb(args, config)
  File "/usr/src/app/configuration/parser.py", line 75, in __setup_openwb
    __process_charging_stations_file(config, args.charging_stations_file)
  File "/usr/src/app/configuration/parser.py", line 453, in __process_charging_stations_file
    with Path(json_file).open(encoding="utf-8") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/pathlib.py", line 1013, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/config/charging-stations.json'

But it's the same location I enter CHARGING_STATIONS_JSON input field for 0.9.8
I have no idea why permission is denied for PreRelease.

-rw-r--r-- 1 root root 408 Jun 18 13:23 charging-stations.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions