Closed MichalBryxi closed 11 months ago
You are using a ruby version of dotenv
, not the python version installed by https://github.com/winds-mobi/winds-mobi-providers/blob/main/pyproject.toml#L36
Did you activate the python environment with poetry shell
(https://python-poetry.org/docs/basic-usage/#activating-the-virtual-environment)?
Heh, yeah I noticed that it says ruby but did not realise it can be global namespace collision. Nice :) I have zero clue about Python, literally just copy & pasted the commands from readme. Will try again, thank you.
Python setup could be a bit tricky. You should start with docker compose setup. I simplified the docker compose deployment et updated the readme.
Ah yes, good idea. This actually seems to do what it's supposed to:
docker compose -f compose.services.yaml up
[+] Running 2/0
⠿ Container winds-mobi-providers-redis-1 Running 0.0s
⠿ Container winds-mobi-providers-mongodb-1 Running 0.0s
Attaching to winds-mobi-providers-mongodb-1, winds-mobi-providers-redis-1
winds-mobi-providers-mongodb-1 | {"t":{"$date":"2023-08-09T19:28:24.747+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"WTCheckpointThread","msg":"WiredTiger message","attr":{"message":"[1691609304:747754][1:0x7f26efb4e700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1822, snapshot max: 1822 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 38"}}
winds-mobi-providers-mongodb-1 | {"t":{"$date":"2023-08-09T19:29:24.768+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"WTCheckpointThread","msg":"WiredTiger message","attr":{"message":"[1691609364:768750][1:0x7f26efb4e700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1824, snapshot max: 1824 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 38"}}
^CGracefully stopping... (press Ctrl+C again to force)
[+] Running 2/2
⠿ Container winds-mobi-providers-mongodb-1 Stopped 0.6s
⠿ Container winds-mobi-providers-redis-1 Stopped 0.5s
canceled
Thank you!
Was following the repo README.md to try setup the project locally to try to contribute, but hit this snag: