Monadical-SAS / oddslingers.poker

The Django + React codebase powering the free, open-source poker platform: OddSlingers.com
https://oddslingers.com
GNU Lesser General Public License v2.1
59 stars 18 forks source link

Trouble with settup commands #8

Closed NotASithLord closed 1 year ago

NotASithLord commented 1 year ago

I'll start with im 5+ years away from running any kind of python app, but I don't think that's relevant to these issues im running into on setup. This is on MacOS Ventura 13.0

Starts on the first command running: docker-compose run django ./manage.py migrate, which elicits

  line 61: mapping key "env_file" already defined at line 47

Opening the file and they do seem to be conflicting lines. I've tried commenting out either, and run the command which actually starts to execute before hitting some django specific error:

  => ERROR [django  8/16] RUN jq -r '.default,.develop | to_entries[] | .  23.6s

Seems like the code hasn't been touched since release, and it works perfectly fine on the hosted site, so im assuming there's something wrong with my local config perhaps.

NotASithLord commented 1 year ago

I tried jumping straight to a cloud server running Ubuntu, specifically a Vultr one click Docker deployment on top of 22.04. Ran into this error on the first migrate command:

ERROR: Ignored the following versions that require a different python version: 0.10.6 Requires-Python >=2.7, <3.6; 0.10.7 Requires-Python >=2.7, <3.6; 0.28.0 Requires-Python >=3.8; 0.28.0.dev2 Requires-Python >=3.8; 0.28.1 Requires-Python >=3.8; 1.0.0 Requires-Python >=3.8; 2.3.0 Requires-Python >=3.8; 2.3.1 Requires-Python >=3.8; 2.3.2 Requires-Python >=3.8; 2.3.3 Requires-Python >=3.8; 2.3.4 Requires-Python >=3.8; 2.3.5 Requires-Python >=3.8; 2.3.6 Requires-Python >=3.8; 23.6.1 Requires-Python >=3.9; 4.0 Requires-Python >=3.8; 4.0.0 Requires-Python >=3.8; 4.0.1 Requires-Python >=3.8; 4.0.10 Requires-Python >=3.8; 4.0.2 Requires-Python >=3.8; 4.0.3 Requires-Python >=3.8; 4.0.4 Requires-Python >=3.8; 4.0.5 Requires-Python >=3.8; 4.0.6 Requires-Python >=3.8; 4.0.7 Requires-Python >=3.8; 4.0.8 Requires-Python >=3.8; 4.0.9 Requires-Python >=3.8; 4.0a1 Requires-Python >=3.8; 4.0b1 Requires-Python >=3.8; 4.0rc1 Requires-Python >=3.8; 4.1 Requires-Python >=3.8; 4.1.0 Requires-Python >=3.8; 4.1.1 Requires-Python >=3.8; 4.1.2 Requires-Python >=3.8; 4.1.3 Requires-Python >=3.8; 4.1.4 Requires-Python >=3.8; 4.1.5 Requires-Python >=3.8; 4.1.6 Requires-Python >=3.8; 4.1.7 Requires-Python >=3.8; 4.1.8 Requires-Python >=3.8; 4.1.9 Requires-Python >=3.8; 4.1a1 Requires-Python >=3.8; 4.1b1 Requires-Python >=3.8; 4.1rc1 Requires-Python >=3.8; 4.2 Requires-Python >=3.8; 4.2.1 Requires-Python >=3.8; 4.2.2 Requires-Python >=3.8; 4.2a1 Requires-Python >=3.8; 4.2b1 Requires-Python >=3.8; 4.2rc1 Requires-Python >=3.8; 8.0.0 Requires-Python >=3.8; 8.0.0a1 Requires-Python >=3.8; 8.0.0b1 Requires-Python >=3.8; 8.0.0rc1 Requires-Python >=3.8; 8.0.1 Requires-Python >=3.8; 8.1.0 Requires-Python >=3.8; 8.1.1 Requires-Python >=3.8; 8.10.0 Requires-Python >=3.8; 8.11.0 Requires-Python >=3.8; 8.12.0 Requires-Python >=3.8; 8.12.1 Requires-Python >=3.8; 8.12.2 Requires-Python >=3.8; 8.13.0 Requires-Python >=3.8; 8.13.1 Requires-Python >=3.9; 8.13.2 Requires-Python >=3.9; 8.14.0 Requires-Python >=3.9; 8.2.0 Requires-Python >=3.8; 8.3.0 Requires-Python >=3.8; 8.4.0 Requires-Python >=3.8; 8.5.0 Requires-Python >=3.8; 8.6.0 Requires-Python >=3.8; 8.7.0 Requires-Python >=3.8; 8.8.0 Requires-Python >=3.8; 8.9.0 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement codecov==2.0.22 (from versions: 2.1.13)
ERROR: No matching distribution found for codecov==2.0.22
ERROR: Service 'django' failed to build : The command '/bin/sh -c jq -r '.default,.develop | to_entries[] | .key + .value.version' "$ODDSLINGERS_ROOT/Pipfile.lock" |     pip install --no-cache-dir -r /dev/stdin &&     rm "$ODDSLINGERS_ROOT/Pipfile.lock"' returned a non-zero code: 1
NotASithLord commented 1 year ago

My impression is that the dependencies and configs here need to be touched up to make it run able out of the box, given disparate issues are occurring in different environments on the very first README instruction after cloning the repo. Happy to help but not my area of expertise in general, and I'm not sure how the app built/is supposed to build as a reference.

afreydev commented 1 year ago

@NotASithLord I've done some fixes and I've updated the way to install some requirements in the application. This should fix at least the quick start guide. I'll be improving and updating more things soon.