Closed Twetler closed 10 months ago
hello @Twetler, I'm going to fix this issue and it will be available on next release soon enough. But while it's not available, you can just remove the .DBF
files from this list (you should remove STSP2007 and STSP2008 parquets & DBFs from ~/pysus as well) and try downloading it again.
from pysus.ftp.databases.cnes import CNES
cnes = CNES()
cnes.load()
files = cnes.get_files('ST', year=2020, uf = 'SP', month = [1,2,3,4,5,6,7,8,9,10,11,12])
dbc_files = [f for f in files if f.extension != ".DBF"]
dbc_files
[STSP2001.dbc,
STSP2002.dbc,
STSP2003.dbc,
STSP2004.dbc,
STSP2005.dbc,
STSP2006.dbc,
STSP2007.dbc,
STSP2008.dbc,
STSP2009.dbc,
STSP2010.dbc,
STSP2011.dbc,
STSP2012.dbc]
:tada: This issue has been resolved in version 0.10.3 :tada:
The release is available on:
0.10.3
Your semantic-release bot :package::rocket:
@Twetler please update pysus version to 0.10.3, don't forget to delete the previous corrupted files from your local directory ($HOME/pysus
)
My pipeline is working awesomelly due to the lib, cheers for the great work!!
Hey guys!!
I was following @esloch 's guidance on this unpack requires a buffer of 32 bytes issue.
After also following the CNES notebook I face some errors when ftp.databases.cnes.CNES tries to convert .DBF files to parquet.
I'm using the latest version git+https://github.com/AlertaDengue/PySUS@0.10.2
STEPS:
It downloads the .DBF files correctly, but when it tries to convert it to .parquet drops the following error when I execute
parquets = cnes.download(files)
Seems to be a ParquetSet error. Couldn't understand it further. Have you guys had anything related to this?