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
{{ message }}
Repository navigation
pickle function call uses kwargs added in python 3.8 #3843
I tried again using python 3.8.3. This time I get another error at the same line
File "c:\project\env38\lib\site-packages\distributed\protocol\pickle.py", line 64, in loads
return pickle.loads(x, buffers=buffers)
_pickle.UnpicklingError: pickle data was truncated
changed the title [-]pickle function call uses kwargs added in python 3.8 and the package requires python >=3.6[/-][+]pickle function call uses kwargs added in python 3.8[/+]on May 31, 2020
I tried to make a more complete mre but I failed. I tried to generated a new csv file of about 1GiB and passing it to dd.read_csv with the wrong dtype and it does not trigger the error message. The first column contains a datetime string (such as '2020-01-01 00:00:00') and the other strings (mixture of text and numbers). I don't know if it's the size or content that triggers the issue.
When instead I set the path to a csv file that's roughly 48,9 GiB and pass the wrong dtype, I get the error message.
I'm running the code on a system with 64GiB of RAM. I'm running Windows 10. When I look at the diagnostic dashboard of the workers, they each use about 2 to 3 GiB and the overall system memory usage is low.
I'm wondering
Is there a safety check in place either in distributed, dask, or pandas that returns an exception when an invalid dtype is passed in read_csv?
Should there be a safety check in place either in distributed, dask, or pandas that returns an exception when an invalid dtype is passed in read_csv?
Those seem like different issues not really related to the pickle implementation (or Distributed). Could you please raise separate issues on Dask's issue tracker?
Alright, closing since this is unrelated to the pickle implementation.
BTW, I might be wrong about this 'str' vs 'string' dtype. This needs more reading and testing on my part. I'm new to dask and pandas and still learning. I'm trying to read a csv file, do some processing and save it to parquet (using either fastparquet or pyarrow).
Activity
[-]pickle function call uses kwargs added in python 3.8 and the package requires python >=3.6[/-][+]pickle function call uses kwargs added in python 3.8[/+]jakirkham commentedon Jun 1, 2020
Can you please include an MRE?
samaust commentedon Jun 1, 2020
I figured out a mistake in my code. I was passing a dtype of
strinstead ofstringin a call to dd.read_csv. Fixing that solves my issue.However, I'm still wondering why that mistake triggers that error message.
There's probably a better way but here's how I was passing a string type for all columns.
I tried to make a more complete mre but I failed. I tried to generated a new csv file of about 1GiB and passing it to dd.read_csv with the wrong dtype and it does not trigger the error message. The first column contains a datetime string (such as '2020-01-01 00:00:00') and the other strings (mixture of text and numbers). I don't know if it's the size or content that triggers the issue.
When instead I set the path to a csv file that's roughly 48,9 GiB and pass the wrong dtype, I get the error message.
I'm running the code on a system with 64GiB of RAM. I'm running Windows 10. When I look at the diagnostic dashboard of the workers, they each use about 2 to 3 GiB and the overall system memory usage is low.
I'm wondering
jakirkham commentedon Jun 1, 2020
Those seem like different issues not really related to the pickle implementation (or Distributed). Could you please raise separate issues on Dask's issue tracker?
samaust commentedon Jun 1, 2020
Alright, closing since this is unrelated to the pickle implementation.
BTW, I might be wrong about this 'str' vs 'string' dtype. This needs more reading and testing on my part. I'm new to dask and pandas and still learning. I'm trying to read a csv file, do some processing and save it to parquet (using either fastparquet or pyarrow).