-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
T: bugSomething isn't workingSomething isn't working
Description
When using the prebuilt binary on Mac I am seeing the following:
INFO: Running command line: /private/var/tmp/_bazel_fp/01684213bb9c693047272ec8f0247481/external/+_repo_rules+black_macos/file/downloaded <args omitted>
All done! ✨ 🍰 ✨
575 files left unchanged.
Traceback (most recent call last):
File "__main__.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "black/__init__.py", line 7, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1322, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1262, in _find_spec
File "<frozen importlib._bootstrap_external>", line 1528, in find_spec
File "<frozen importlib._bootstrap_external>", line 1502, in _get_spec
File "<frozen zipimport>", line 111, in find_spec
File "<frozen importlib._bootstrap>", line 675, in spec_from_loader
File "<frozen importlib._bootstrap_external>", line 822, in spec_from_file_location
File "<frozen zipimport>", line 170, in get_filename
File "<frozen zipimport>", line 700, in _get_module_code
File "<frozen zipimport>", line 534, in _get_data
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/kb/_rxq15gs3gq21765gfcbbdjw0000gn/T/_MEIjzWUV8/base_library.zip'
[PYI-51008:ERROR] Failed to execute script '__main__' due to unhandled exception!
Note that despite that error - it does still run and format files correctly. This is happening on 25.9.0 but was not happening on 24.3.0. Since the call is so simple and using the pre-built binary, I assume this is related to black specifically (it is even in the stack trace), but let me know if this is something to do with my system instead. I am executing via Bazel, hence the /private/var/...../my/binary .... command. Bazel itself should add nothing problematic to the environment here.
Metadata
Metadata
Assignees
Labels
T: bugSomething isn't workingSomething isn't working