Files
nixpkgs/pkgs/development/python-modules
Noah D. Brenowitz ceeaf2d066 python3Packages.dask: fix sandboxed builds
Importing dask.dataframe in a sandboxed build results in a TypeError like
this:

  File "/nix/store/nv60iri29bia4szhhcvsdxgsci4wxvp6-python3.8-dask-2021.03.0/lib/python3.8/site-packages/dask/dataframe/io/csv.py", line 392, in <module>
    AUTO_BLOCKSIZE = auto_blocksize(TOTAL_MEM, CPU_COUNT)
  File "/nix/store/nv60iri29bia4szhhcvsdxgsci4wxvp6-python3.8-dask-2021.03.0/lib/python3.8/site-packages/dask/dataframe/io/csv.py", line 382, in auto_blocksize
    blocksize = int(total_memory // cpu_count / memory_factor)
  TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'

This occurs because dask.dataframe has a non-deterministic component which
generates an automatic chunk-size based on system information.

This went unnoticed because the dask tests were disabled.

Changes:
- add a patch making the chunk-size inference more robust
- re-enable the tests

Resolves #120307
2021-04-23 17:57:01 -07:00
..
2021-04-03 15:10:56 +02:00
2021-04-04 19:49:52 +02:00
2021-04-04 19:49:52 +02:00
2021-04-07 00:21:38 -04:00
2021-04-10 06:23:42 +00:00
2021-04-06 16:27:37 +02:00
2021-04-22 15:32:26 -07:00
2021-04-04 19:49:52 +02:00
2021-04-04 19:49:08 -04:00
2021-04-04 03:18:56 +02:00
2021-04-09 07:56:06 +02:00
2021-04-04 14:25:57 -04:00
2021-04-14 19:33:20 +02:00
2021-04-13 12:16:13 +02:00
2021-04-17 22:53:19 +02:00
2021-04-17 10:31:50 +02:00
2021-04-22 17:41:33 -07:00
2021-04-04 19:49:52 +02:00
2021-04-19 19:01:04 +02:00
2021-04-22 08:35:58 -07:00
2021-04-07 16:34:51 -03:00
2021-04-04 19:49:52 +02:00
2021-04-17 17:59:08 +02:00
2021-04-14 19:45:33 +02:00
2021-04-22 15:32:26 -07:00
2021-04-21 20:06:46 +02:00
2021-04-13 15:52:08 +02:00
2021-04-09 11:03:29 +02:00