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
Was testing out develop branch due needing this change #558
chunks = tuple([dict(zip(self.header, line.split(bytes(self.separator)))) for line in process.split(b"\n")]) # type: ignore
TypeError: string argument without an encoding
This was specifically when using a CSVReader with chunked=False and as_dataframe=False
I think it is not fixed, I still get the error when running the code in https://docs.nautilustrader.io/user_guide/loading_external_data.html. If I do not specify my decoding method in the code, the error still exists. Otherwise, this line should be changed to chunks = tuple([dict(zip(self.header, line.split(bytes(self.separator,encoding='utf8')))) for line in process.split(b"\n")]) # type: ignore
Was testing out develop branch due needing this change #558
This was specifically when using a
CSVReader
withchunked=False
andas_dataframe=False
nautilus_trader/nautilus_trader/persistence/external/readers.py
Line 282 in dac7a28
This line breaks due to missing string encoding in the
bytes
function.The text was updated successfully, but these errors were encountered: