Trying out the new 2.20.a0 release and I’m running...
# development
n
Trying out the new 2.20.a0 release and I’m running into some issues with the ruff split:
Copy code
14:58:51.47 [ERROR] Failed to load the pants.backend.experimental.python.lint.ruff.format.register backend: ModuleNotFoundError("No module named 'pants.backend.experimental.python.lint.ruff.format'")


Use --print-stacktrace for more error details and/or -ldebug for more logs.
See <https://www.pantsbuild.org/v2.20/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.20/docs/getting-help>
My
backend_packages
contains these two lines (among other things):
Copy code
"pants.backend.experimental.python.lint.ruff.check",
"pants.backend.experimental.python.lint.ruff.format",
Am I missing something, or want me to create a new issue for it?
b
What command did you run that caused this stack trace?
n
pants --version
b
Could be, lemme try modifying that and running again locally
Yeah, that fixed it for me. Thanks for the report
Before:
Copy code
pants --version
Traceback (most recent call last):
  File "/Users/krishnanchandra/Library/Caches/nce/cf6c1988edaa5d40bbf385ae79a75e6d2abba937217d1b672c71eaf0ea495bcd/bindings/venvs/2.20.0a0/lib/python3.9/site-packages/pants/init/extension_loader.py", line 141, in load_backend
    module = importlib.import_module(backend_module)
  File "/Users/krishnanchandra/Library/Caches/nce/fdc4054837e37b69798c2ef796222a480bc1f80e8ad3a01a95d0168d8282a007/cpython-3.9.18+20231002-aarch64-apple-darwin-install_only.tar.gz/python/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pants.backend.experimental.python.lint.ruff.format'
09:18:34.58 [ERROR] Failed to load the pants.backend.experimental.python.lint.ruff.format.register backend: ModuleNotFoundError("No module named 'pants.backend.experimental.python.lint.ruff.format'")


Use --print-stacktrace for more error details and/or -ldebug for more logs.
See <https://www.pantsbuild.org/v2.20/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.20/docs/getting-help>
After:
Copy code
PANTS_SOURCE=~/Projects/pants pants --version

2.20.0a0
c
this script should've caught it: https://github.com/pantsbuild/pants/pull/20548 ...
... and, thanks for trying out the new alpha!
🖖 1
b
b
Thanks for the testing and fixing everyone!
❤️ 1
1