From f3232d139164be384405d0cb788113ebb7d57cc2 Mon Sep 17 00:00:00 2001 From: Tim Dettmers Date: Sun, 16 Jul 2023 21:08:13 -0700 Subject: [PATCH] Fixed bug where read-permission was assumed for a file. #497 --- CHANGELOG.md | 7 +++++++ bitsandbytes/cuda_setup/main.py | 2 ++ setup.py | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04ff220..3bfc6ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -275,3 +275,10 @@ Bug fixes: Documentation: - Improved documentation for GPUs that do not support 8-bit matmul. #529 - Added description and pointers for the NF4 data type. #543 + +### 0.40.2 + +Bug fixes: + - Fixed a but where a non-existent LD_LIBRARY_PATH variable led to a failure in python -m bitsandbytes #588 + - Removed outdated get_cuda_lib_handle calls that lead to errors. #595 Thank you @ihsanturk + - Fixed bug where read-permission was assumed for a file. #497 diff --git a/bitsandbytes/cuda_setup/main.py b/bitsandbytes/cuda_setup/main.py index c1dfce2..3b00971 100644 --- a/bitsandbytes/cuda_setup/main.py +++ b/bitsandbytes/cuda_setup/main.py @@ -199,6 +199,8 @@ def remove_non_existent_dirs(candidate_paths: Set[Path]) -> Set[Path]: except OSError as exc: if exc.errno != errno.ENAMETOOLONG: raise exc + except PermissionError as pex: + pass non_existent_directories: Set[Path] = candidate_paths - existent_directories if non_existent_directories: diff --git a/setup.py b/setup.py index a3beb5e..5769c85 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def read(fname): setup( name=f"bitsandbytes", - version=f"0.40.1.post1", + version=f"0.40.2", author="Tim Dettmers", author_email="dettmers@cs.washington.edu", description="k-bit optimizers and matrix multiplication routines.",