digital-guard / preserv

Digital Preservation Project
http://git.digital-guard.org/preserv
Apache License 2.0
0 stars 0 forks source link

BR-RJ-Niteroi/_pk0016.01 erro make me #134

Closed 0e1 closed 1 year ago

0e1 commented 1 year ago

Executar make me em BR-RJ-Niteroi/_pk0016.01 resultava no erro

ERROR:  TypeError: the JSON object must be str, bytes or bytearray, not NoneType
CONTEXT:  Traceback (most recent call last):
  PL/Python function "jsonb_mustache_render", line 4, in <module>
    j = json.loads(i)
  PL/Python function "jsonb_mustache_render", line 338, in loads
PL/Python function "jsonb_mustache_render"
SQL statement "SELECT replace(jsonb_mustache_render(mkme_tpl, optim.jsonb_mustache_prepare(p_yaml)),E'\u130C9',$$\"$$)"
PL/pgSQL function optim.generate_makefile(text,text,text,text,text) line 16 at SQL statement
make[1]: *** [makefile:257: generate_makefile] Error 1
make[1]: Leaving directory '/var/gits/_dg/preserv/src'
make: *** [makefile:42: me] Error 2

após investigar, compatibilizei pkversion com lst_version no commit: https://github.com/digital-guard/preserv-BR/commit/a44daae87bab0dc9222047a5c037ec6cc6b03e82#diff-7eaa865bb5c8e3b02f172933e97c6ee08004f0f13ab3667c81582f114aa75fd4

0e1 commented 1 year ago

A compatibilização resolveu o problema.