You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tentando de todas as formas documentas o pacote sia não baixa por nada. Não consigo nem listar os arquivos. Sempre recebo o mesmo stack de erros, estou fazendo algo errado, a documentação está desatualizada? Help :'(
Traceback (most recent call last):
File "/opt/etl_from_datasus/sia/sia_etl.py", line 3, in
sia.get_files("PA", uf="SP", year=2000)
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 94, in get_files
files = list(filter(lambda f: self.format(f)[0] in groups, files))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 94, in
files = list(filter(lambda f: self.format(f)[0] in groups, files))
^^^^^^^^^^^^^^
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 70, in format
chars, _ = file.name.split(digits)
^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Tentando de todas as formas documentas o pacote sia não baixa por nada. Não consigo nem listar os arquivos. Sempre recebo o mesmo stack de erros, estou fazendo algo errado, a documentação está desatualizada? Help :'(
Traceback (most recent call last):
File "/opt/etl_from_datasus/sia/sia_etl.py", line 3, in
sia.get_files("PA", uf="SP", year=2000)
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 94, in get_files
files = list(filter(lambda f: self.format(f)[0] in groups, files))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 94, in
files = list(filter(lambda f: self.format(f)[0] in groups, files))
^^^^^^^^^^^^^^
File "/opt/etl_from_datasus/venv/lib/python3.12/site-packages/pysus/ftp/databases/sia.py", line 70, in format
chars, _ = file.name.split(digits)
^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
Beta Was this translation helpful? Give feedback.
All reactions