Closed defluophoenix closed 1 month ago
Did you get this sorted @defluophoenix ?
i did. The error message didn't specify the error was in my config file, once i took a step back and walked through things, i figured the issue. Thanks for checking up
when running the docker command i get the following error
Traceback (most recent call last): File "/app/ColleXions.py", line 183, in <module> main() File "/app/ColleXions.py", line 160, in main config = load_config() ^^^^^^^^^^^^^ File "/app/ColleXions.py", line 39, in load_config config = json.load(f) ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Expecting ',' delimiter: line 109 column 9 (char 2905)
when running the docker compose i get
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 633, in send conn = self.get_connection_with_tls_context( File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 489, in get_connection_with_tls_context conn = self.poolmanager.connection_from_host( File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 245, in connection_from_host return self.connection_from_context(request_context) File "/usr/lib/python3/dist-packages/urllib3/poolmanager.py", line 257, in connection_from_context raise URLSchemeUnknown(scheme) urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/bin/docker-compose", line 11, in <module> load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-compose')() File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main command() File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 125, in perform_command project = project_from_options('.', options) File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 53, in project_from_options return get_project( File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 151, in get_project return Project.from_config( File "/usr/lib/python3/dist-packages/compose/project.py", line 102, in from_config service_networks = get_networks(service_dict, networks) File "/usr/lib/python3/dist-packages/compose/network.py", line 320, in get_networks networks[network.true_name] = netdef File "/usr/lib/python3/dist-packages/compose/network.py", line 125, in true_name self._set_legacy_flag() File "/usr/lib/python3/dist-packages/compose/network.py", line 146, in _set_legacy_flag data = self.inspect(legacy=True) File "/usr/lib/python3/dist-packages/compose/network.py", line 106, in inspect return self.client.inspect_network(self.legacy_full_name) File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped return f(self, resource_id, *args, **kwargs) File "/usr/lib/python3/dist-packages/docker/api/network.py", line 212, in inspect_network res = self._get(url, params=params) File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/docker/api/client.py", line 230, in _get return self.get(url, **self._set_request_timeout(kwargs)) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get return self.request("GET", url, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 637, in send raise InvalidURL(e, request=request) requests.exceptions.InvalidURL: Not supported URL scheme http+docker
running the native python i get
ERROR - Error in main loop: Expecting ',' delimiter: line 109 column 9 (char 2905)