M0r13n / pyais

AIS message decoding and encoding in Python (AIVDM/AIVDO)
MIT License
176 stars 61 forks source link

spare_1 field in MessageType19 converted as bytes #140

Closed Raimundo82 closed 2 months ago

Raimundo82 commented 2 months ago

Hi,

I am decoding NMEA sentences and saving them as parquet. When i try to reverse the process, parse the file to a Dataframe, i am getting the following error:

partially initialized module 'pandas' has no attribute '_pandas_parser_CAPI' (most likely due to a circular import)

I suspect it is related to the spare_1 field of message 19.

According docs it should be 0 or maybe not present but it is being decoded as bytes.

https://github.com/M0r13n/pyais/blob/b9730001ef9d2fed4d652f8845d536af02a3101d/pyais/messages.py#L1211

Raimundo82 commented 2 months ago

I am not sure if the error is related with pyais or Data Wrangler VS code extension.