Code Monkey home page Code Monkey logo

dj-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dj-starter's Issues

All branches are being sync'd to dj_starter_demo which is not valuable

All branches are being sync'd to dj_starter_demo which does not provide value and causes additional friction because dj_starter_demo becomes a mess of stale and unused branches. Additionally this is a poor use of resources, since I would only expect develop or main branch updates to sync to that demo repo.

Todo: update circleci scripts to only push to dj_starter_demo for develop and main branches

terraform state location not working

The Problem

First I made sure I was logged in properly.

  1. Ran aws configure sso --profile BWTC-Developer
  2. ran aws sso login --profile BWTC-Developer

Then I tried to run terraform init and was not able to as I was getting this error.

Error refreshing state: AccessDenied: Access Denied
        status code: 403, request id: N7XHKNMYFE4YSDJ2, host id: OCFqyTMQgBoAS4I9CYEcnNiekCyV0LHxOtyFzCPjq39MK+yP3Qn4/8w1PIAMPo3bHjoh88MJISk=
terraform {
  backend "s3" {
    bucket  = "shift3-terraform-state" //Does not exist in BWTC-Client-Sandbox and BWTC-Developer-Sandbox
    key     = "stemtaught-test-server/terraform.tfstate"
    region  = "us-west-2"
    profile = "BWTC-Developer" //Would have to use profile pointing to the old original account for this too work
  }


  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 4.0"
    }
  }
}

Solutions

  • Add shift3-terraform-state bucket to each account.
  • Specify that two different accounts are needed

[bug]: pycairo failing to install

Expected Behavior

The cookie cutter project should install dependencies.

Actual/Current Behavior

After punching out a copy of the cookie cutter project, the requirements fail to install with the following error.

https://app.circleci.com/pipelines/github/Shift3/dj-starter/395/workflows/f90cf0ab-6074-4c6b-8f94-b55978d779a4/jobs/419

Building wheels for collected packages: djangorestframework-camel-case, hiredis, django-eventstream, autobahn, django-grip, gripcontrol, pubcontrol, coreschema, pycairo, svglib
  Building wheel for djangorestframework-camel-case (PEP 517) ... - done
  Created wheel for djangorestframework-camel-case: filename=djangorestframework_camel_case-1.3.0-py3-none-any.whl size=7983 sha256=4847d373dc25e3fd4b2d43d707cc4c841943f5e73d2cf977e1b82411fec56201
  Stored in directory: /home/circleci/.cache/pip/wheels/55/ba/5b/ee53e126a5748e95117f6e44d4fb8bed6d939ca96192b3dbbb
  Building wheel for hiredis (setup.py) ... - \ | / - \ done
  Created wheel for hiredis: filename=hiredis-2.0.0-cp310-cp310-linux_x86_64.whl size=92254 sha256=52cad17398239163fbc7249d4ca32727ac5687f6a2d5b9781e87995e7344d16a
  Stored in directory: /home/circleci/.cache/pip/wheels/a9/b0/b0/a58f2bc314a1c78d077171184d746540f45437234bc67e4b4d
  Building wheel for django-eventstream (setup.py) ... - done
  Created wheel for django-eventstream: filename=django_eventstream-4.4.1-py3-none-any.whl size=33209 sha256=67406e45e620fe16cd7ddc5e14dd78078fdbf5ddc858f2a42ba1699f80220489
  Stored in directory: /home/circleci/.cache/pip/wheels/4c/aa/b9/315b3ace4ca9538dbd244b5a7bc517c70c9a09cb47a17a8ee9
  Building wheel for autobahn (setup.py) ... - \ | / done
  Created wheel for autobahn: filename=autobahn-23.1.2-py2.py3-none-any.whl size=666860 sha256=6016d5449f58749539f43a31bc2a3e99004a6dee78c5c531d383b8ac3698c5c4
  Stored in directory: /home/circleci/.cache/pip/wheels/0a/a4/60/d547cb0414567a087281bd1474426e29194bf88b1972dba289
  Building wheel for django-grip (setup.py) ... - done
  Created wheel for django-grip: filename=django_grip-3.2.0-py3-none-any.whl size=5545 sha256=5652e86d68a2f4331626be949fbb12ec173d0ddf3fc60cb38eccd671a6746dc3
  Stored in directory: /home/circleci/.cache/pip/wheels/05/c0/52/19bd3d54cdc2000511aaa92eefae20ab22ae975f5860274eb2
  Building wheel for gripcontrol (setup.py) ... - done
  Created wheel for gripcontrol: filename=gripcontrol-4.1.0-py3-none-any.whl size=12360 sha256=db6d2c6176011e9a2df827136fe4ef08461864fa9b9d44395d7a79137d970185
  Stored in directory: /home/circleci/.cache/pip/wheels/22/be/df/32a51ddcb835035a5270ad29d105804fd32182c374390b8857
  Building wheel for pubcontrol (setup.py) ... - done
  Created wheel for pubcontrol: filename=pubcontrol-3.4.0-py3-none-any.whl size=22324 sha256=5368a901c9f6e73a6169f23bb8acc0bcc166d810e3d8b5618231bff83b3d9938
  Stored in directory: /home/circleci/.cache/pip/wheels/79/90/da/6418d47a54aeb22961076a4818a46352d290690632079e75c7
  Building wheel for coreschema (setup.py) ... - done
  Created wheel for coreschema: filename=coreschema-0.0.4-py3-none-any.whl size=15031 sha256=b3bd0f7190f673b88ec488ee07c5801522e7d04bca8bd9bd4e5fcff4e9c145b3
  Stored in directory: /home/circleci/.cache/pip/wheels/97/f0/a1/ee57c9b2aaaac2e8867798bbde65749450ddae129085e1393d
  Building wheel for pycairo (PEP 517) ... - error
  ERROR: Command errored out with exit status 1:
   command: /home/circleci/.pyenv/versions/3.10.1/bin/python3.10 /home/circleci/.pyenv/versions/3.10.1/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpq87oq0lb
       cwd: /tmp/pip-install-zj8ntpg_/pycairo_206c4c07eef84698a29713621e0fce3b
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-310
  creating build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
  running build_ext
  Package cairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `cairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'cairo' found
  Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
  Building wheel for svglib (setup.py) ... - done
  Created wheel for svglib: filename=svglib-1.5.1-py3-none-any.whl size=30920 sha256=ff5be765b63299245d9d136209a21213dc1c8b2fc612b4fa751d1732a660bbc2
  Stored in directory: /home/circleci/.cache/pip/wheels/56/9f/90/f37f4b9dbf82987a24ae14f15586e96715cb669a4710b3b85d
Successfully built djangorestframework-camel-case hiredis django-eventstream autobahn django-grip gripcontrol pubcontrol coreschema svglib
Failed to build pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 23.1.2 is available.
You should consider upgrading via the '/home/circleci/.pyenv/versions/3.10.1/bin/python3.10 -m pip install --upgrade pip' command.

Exited with code exit status 1
CircleCI received exit code 1

All based on this convo: https://bitwiseindustries.slack.com/archives/C025A3UE1PC/p1684970197762019

Steps to Reproduce the Problem

  1. run pip install -r requirements/test.txt
  2. see error

Pre-Testing TODOs

Pull down the project from the development branch.

Testing Steps

Run circleci script on base development and error pops up. Tried to re-do the cache, no such luck.

Environment

Please provide OS Version and Platform/Browser.

Learning

@coreyshuman and @Endtry both found:
nolanaatama/sd-1click-colab#43
https://www.reddit.com/r/StableDiffusion/comments/13ehad9/failed_to_build_pycairo_some_preprocessors_may/

and that adding the underlining dependency seemed to fix the issue by:
brew install cairo

Match Standard Issue templates to our other boilerplate projects

Expected Behavior

Within our other boilerplate projects, we include issue templates like so:

Actual/Current Behavior

We have no standards of issues at the moment, so any new issues will manually have to put in the headers/concepts that we usually shortcut using our templates.

If we include each one of these templates, we will reduce time/energy creating Bug reports/Feature requests/etc...that commonly pop up in repos.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.