upload_file fails on one specific script
See original GitHub issueTrying to upload a specific python file to the workers, through upload_file
, throws an exception “Exception: object Future can’t be used in ‘await’ expression”. I’m running out of ideas of what the problem could be, which is why I need your help. But these are my current hypothesis:
-
It somehow doesn’t like that I’m uploading a script that contains potentially unwanted pandas usages, as it allows uploading the file if I remove certain
apply
methods (although, if I just remove some surrounding code and leave there the supposedly conflicting pandas line, it also starts working). -
It has a certain memory limit as to the file size that I want to upload (which would be strange as the file is only 10KB and other dummy examples with several lines of code work just fine).
Here’s the full error message:
What I’m doing in the notebook before calling upload_file
:
The file that I’m trying to upload:
Please help me as I’m really feeling clueless here!
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
Can you try https://github.com/dask/distributed/pull/2934 ?
For maintainers, this was introduced when we changed
yield
toawait
in many places.Torando coroutines do a few things better than
async/await
does. In particular, you canyield
concurrent.futures.Future
objects and things work well. Theawait
keyword doesn’t handle this.