Skip to content

Commit f3232d1

Browse files
committed
Fixed bug where read-permission was assumed for a file. #497
1 parent 37c25c1 commit f3232d1

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,10 @@ Bug fixes:
275275
Documentation:
276276
- Improved documentation for GPUs that do not support 8-bit matmul. #529
277277
- Added description and pointers for the NF4 data type. #543
278+
279+
### 0.40.2
280+
281+
Bug fixes:
282+
- Fixed a but where a non-existent LD_LIBRARY_PATH variable led to a failure in python -m bitsandbytes #588
283+
- Removed outdated get_cuda_lib_handle calls that lead to errors. #595 Thank you @ihsanturk
284+
- Fixed bug where read-permission was assumed for a file. #497

bitsandbytes/cuda_setup/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def remove_non_existent_dirs(candidate_paths: Set[Path]) -> Set[Path]:
199199
except OSError as exc:
200200
if exc.errno != errno.ENAMETOOLONG:
201201
raise exc
202+
except PermissionError as pex:
203+
pass
202204

203205
non_existent_directories: Set[Path] = candidate_paths - existent_directories
204206
if non_existent_directories:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def read(fname):
1818

1919
setup(
2020
name=f"bitsandbytes",
21-
version=f"0.40.1.post1",
21+
version=f"0.40.2",
2222
author="Tim Dettmers",
2323
author_email="[email protected]",
2424
description="k-bit optimizers and matrix multiplication routines.",

0 commit comments

Comments
 (0)