Closed eliselavy closed 1 year ago
Addition to the Admin:
The conflict is caused by: The user requested Pillow==8.1.2 weasyprint 58.1 depends on Pillow>=9.1.0
=> I upgrade to Pillow==9.1.0
Problem in development:
Dev admin not available
Locally:
~/c/journal-of-digital-history-backend (develop)> pango-view --version (jdhback)
pango-view (pango) 1.50.14
ERROR: unsatisfiable constraints:
libpango-1.0-0 (missing):
required by: world[libpango-1.0-0]
In development
backend_1 | File "/usr/local/lib/python3.8/site-packages/cffi/api.py", line 838, in accessor_function
backend_1 | value = backendlib.load_function(BType, name)
backend_1 | AttributeError: function/symbol 'pango_context_set_round_glyph_positions' not found in library 'libpango-1.0.so.0': Symbol not found: pango_context_set_round_glyph_positions
On development:
Need to downgrade version of weasyprint due to https://github.com/Kozea/WeasyPrint/issues/1384
Fixed problem of font by doing this: https://github.com/Kozea/WeasyPrint/issues/1038#issuecomment-1084598625
Difference of behaviour between locally and dev:
lass ArticleForm(forms.ModelForm):
Ok deployed and test in dev
deployed and tested in production v2.0.0 https://github.com/C2DH/journal-of-digital-history-backend/releases/tag/v2.0.0
Here is the template:
template_peer_review.pdf
data.title
article.repository_url
article.binder_url
https://journalofdigitalhistory.org/en/notebook-viewer/ + article.notebook_url