kartoza / prj.app

A django app for creating visual changelogs for software releases
30 stars 32 forks source link

Fix dockerfile and documentation for dev env #1374

Closed sumandari closed 2 years ago

sumandari commented 2 years ago

Problem

Recently when build on local (dev env), it returns error during installing requirements. Update: build also failed in current develop branch : https://github.com/kartoza/prj.app/actions/runs/1498405746

Error message:

...
 This package requires Rust >=1.41.0.
#13 191.0   
#13 191.0   ----------------------------------------
#13 191.0   Failed building wheel for cryptography
#13 191.0   Running setup.py clean for cryptography
#13 195.0   Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-t4pokvxu/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
#13 195.0   running clean
#13 195.0   removing 'build/lib.linux-x86_64-3.7' (and everything under it)
#13 195.0   'build/bdist.linux-x86_64' does not exist -- can't clean it
#13 195.0   'build/scripts-3.7' does not exist -- can't clean it
#13 195.0   removing 'build'
#13 195.0   running clean_rust
#13 195.0   
#13 195.0       =============================DEBUG ASSISTANCE=============================
#13 195.0       If you are seeing a compilation error please try the following steps to
#13 195.0       successfully install cryptography:
#13 195.0       1) Upgrade to the latest pip and try again. This will fix errors for most
#13 195.0          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#13 195.0       2) Read https://cryptography.io/en/latest/installation/ for specific
#13 195.0          instructions for your platform.
#13 195.0       3) Check our frequently asked questions for more information:
#13 195.0          https://cryptography.io/en/latest/faq/
#13 195.0       4) Ensure you have a recent Rust toolchain installed:
#13 195.0          https://cryptography.io/en/latest/installation/#rust
#13 195.0   
#13 195.0       Python: 3.7.2
#13 195.0       platform: Linux-5.10.47-linuxkit-x86_64-with-debian-9.6
#13 195.0       pip: 18.1
#13 195.0       setuptools: 59.2.0
#13 195.0       setuptools_rust: 1.0.0
#13 195.0       =============================DEBUG ASSISTANCE=============================
#13 195.0   
#13 195.0   error: can't find Rust compiler
#13 195.0   
#13 195.0   If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
#13 195.0   
#13 195.0   To update pip, run:
#13 195.0   
#13 195.0       pip install --upgrade pip
#13 195.0   
#13 195.0   and then retry package installation.
...

Proposed Solution

codecov[bot] commented 2 years ago

Codecov Report

Merging #1374 (7de9b96) into develop (44a9d23) will increase coverage by 0.02%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1374      +/-   ##
===========================================
+ Coverage    64.29%   64.31%   +0.02%     
===========================================
  Files          180      180              
  Lines         9664     9664              
  Branches       758      758              
===========================================
+ Hits          6213     6215       +2     
+ Misses        3207     3204       -3     
- Partials       244      245       +1     
Impacted Files Coverage Δ
django_project/lesson/views/further_reading.py 69.13% <0.00%> (+2.46%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 44a9d23...7de9b96. Read the comment docs.

sumandari commented 2 years ago

Thank you @lucernae. I will merge this for now