reddit-place-script-2022
reddit-place-script-2022 copied to clipboard
Cannot get Docker container to run
I everything setup and already fixed an issue with "installing pip"
I ran
docker run place-bot
and got
Traceback (most recent call last): File "/usr/src/app/./main.py", line 772, in <module> main() File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/src/app/./main.py", line 766, in main client = PlaceClient(config_path=config) File "/usr/src/app/./main.py", line 32, in __init__ self.json_data = self.get_json_data(config_path) File "/usr/src/app/./main.py", line 189, in get_json_data json_data = json.load(f) File "/usr/local/lib/python3.10/json/__init__.py", line 293, in load return loads(fp.read(), File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.10/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 5 (char 6)
Any idea on whats going on i've checked the other issues and am stumped right now
Note: running on a M1 mac mini
It looks like your config.json is incorrect. You will have to rebuild the container on config changes
It looks like your config.json is incorrect. You will have to rebuild the container on config changes
Okay ill try that thanks
It looks like your config.json is incorrect. You will have to rebuild the container on config changes
Or just use a volume so you don't need to rebuild
It looks like your config.json is incorrect. You will have to rebuild the container on config changes
Its working thanks a ton!
Now the docker container is having trouble staying on
Account Placing: 2022-04-03 21:32:15.901 | INFO | __main__:set_pixel_and_check_ratelimit:223 - Thread #0 : Attempting to place Brown (25) pixel at 406, 1288 Exception in thread Thread-1 (task): Traceback (most recent call last): File "/usr/local/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() File "/usr/local/lib/python3.10/threading.py", line 946, in run self._target(*self._args, **self._kwargs) File "/usr/src/app/./main.py", line 712, in task next_pixel_placement_time = self.set_pixel_and_check_ratelimit( File "/usr/src/app/./main.py", line 269, in set_pixel_and_check_ratelimit response.json()["errors"][0]["extensions"]["nextAvailablePixelTs"] KeyError: 'extensions'
It cant place a single pixel i guess im getting rateblocked or something i should have foreseen this lol
I have only two accounts and they are both loaded and ready to place
Could you do another pull and run it with the debug flag on? This should be on the Python script call.