Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make readme com problema #16

Closed
crebollobr opened this issue Feb 14, 2023 · 4 comments
Closed

make readme com problema #16

crebollobr opened this issue Feb 14, 2023 · 4 comments
Assignees

Comments

@crebollobr
Copy link
Collaborator

Link: https://github.com/digital-guard/preserv-CO/tree/main/data/VAC/Cali/_pk0007.01

carlos@addressforall:/var/gits/_dg/preserv-CO/data/VAC/Cali/_pk0007.01$ make readme pg_db=ingest20
-- Generating README.md --
cd /var/gits/_dg/preserv/src; make generate_readme country=CO pack_id=68.1 baseSrcPack=/var/gits/_dg/preserv-CO/data/VAC/Cali/_pk0007.01 baseSrc=/var/gits/_dg output=/tmp/pg_io/tmpfile_CO68.1
make[1]: Entering directory '/var/gits/_dg/preserv/src'
-- Generating README.md in /tmp/pg_io/tmpfile_CO68.1 --
NOTICE:  codec_desc_global : {"srid": 952040}
NOTICE:  layer : via, method: shp2sql
NOTICE:  codec resultante : {"srid": 952040}
NOTICE:  codec_extension from method: "shp"
NOTICE:  layer : nsvia, method: shp2sql
NOTICE:  multiple_files_array : [{"isFirst": true, "name_item": "BASE_012022.shp/ARCEDITOR01_R_MANZANAS", "sql_select_item": ["IDMANZANA", "IDBARRIOS", "DEPAPRED", "MUNIPRED", "TIPO_AVALU", "SECTOR", "COMUNA", "BARRIO", "MANZANA", "OBS"], "orig_filename_array_first": "BASE_012022.shp/ARCEDITOR01_R_MANZANAS"}, {"isFirst": false, "name_item": "BASE_012022.shp/ARCEDITOR01_MANZANAS_U", "sql_select_item": ["IDMANZANA", "IDBARRIOS", "DEPAPRED", "MUNIPRED", "TIPO_AVALU", "SECTOR", "COMUNA", "BARRIO", "MANZANA", "OBS"], "orig_filename_array_first": "BASE_012022.shp/ARCEDITOR01_R_MANZANAS"}]
NOTICE:  codec resultante : {"srid": 952040}
NOTICE:  codec_extension from method: "shp"
NOTICE:  layer : parcel, method: shp2sql
NOTICE:  multiple_files_array : [{"isFirst": true, "name_item": "BASE_012022.shp/ARCEDITOR01_R_TERRENO", "sql_select_item": ["DEPAPRED", "MUNIPRED", "SECTOR", "COMUNA", "BARRIO", "MANZANA", "TERRENO", "PREDIO", "NUMEPRED", "NOM_EDIFIC", "ETIQUETA", "CONEXION", "NPN as house_number"], "orig_filename_array_first": "BASE_012022.shp/ARCEDITOR01_R_TERRENO"}, {"isFirst": false, "name_item": "BASE_012022.shp/ARCEDITOR01_TERRENOS_U", "sql_select_item": ["DEPAPRED", "MUNIPRED", "SECTOR", "COMUNA", "BARRIO", "MANZANA", "TERRENO", "PREDIO", "NUMEPRED", "NOM_EDIFIC", "ETIQUETA", "CONEXION", "NPN as house_number"], "orig_filename_array_first": "BASE_012022.shp/ARCEDITOR01_R_TERRENO"}]
NOTICE:  codec resultante : {"srid": 952040}
NOTICE:  codec_extension from method: "shp"
NOTICE:  layer : comments, method: <NULL>
NOTICE:  codec resultante : {"srid": 952040}
NOTICE:  codec_extension from method: <NULL>
NOTICE:  layer : test_evidence, method: <NULL>
NOTICE:  codec resultante : {"srid": 952040}
NOTICE:  codec_extension from method: <NULL>
NOTICE:  conf: <NULL>
ERROR:  could not open file "/var/gits/_dg/preserv/src/maketemplates/readme_esCO.mustache" for reading: No such file or directory
CONTEXT:  SQL statement "SELECT pg_read_file(p_path || '/preserv/src/maketemplates/readme_' || CASE WHEN jurisd ='BR' THEN 'ptbr' ELSE 'es' || upper(jurisd) END || '.mustache')"
PL/pgSQL function optim.generate_readme(text,text,text,text,text) line 44 at SQL statement
make[1]: *** [makefile:219: generate_readme] Error 1
make[1]: Leaving directory '/var/gits/_dg/preserv/src'
make: *** [makefile:400: readme] Error 2
@0e1
Copy link
Collaborator

0e1 commented Feb 14, 2023

Por favor atualizar a base utilizada. Você está usando versão antiga da função.

Antes de gerar uma nova base, você pode tentar copiar e colar a função optim.generate_readme na base que está utilizando atualmente. No entanto, é preferível criar uma base nova depois de dar pull nos repositórios relacionados.

@crebollobr
Copy link
Collaborator Author

Não funcionou

@0e1
Copy link
Collaborator

0e1 commented Feb 16, 2023

Ok, tente novamente. Deve funcionar agora:

pushd /var/gits/_dg/preserv-CO/data/VAC/Cali/_pk0007.01
make readme pg_db=ingest20
popd

@0e1
Copy link
Collaborator

0e1 commented Feb 27, 2023

Ok, tente novamente. Deve funcionar agora:

pushd /var/gits/_dg/preserv-CO/data/VAC/Cali/_pk0007.01
make readme pg_db=ingest20
popd

Retificando:

make readme pg_db=ingest20

Esquecer pushd e popd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants