It looks like the toolchain plugin is using the de...
# development
a
It looks like the toolchain plugin is using the deprecated
PantsEnvironment
- I'll bump the deprecation for now, but looks like someone should push a new plugin 🙂
Copy code
ModuleNotFoundError: No module named 'pants.core.util_rules.pants_environment'
Error: 2.02 [ERROR] Failed to load the toolchain.pants.auth.register backend: ModuleNotFoundError("No module named 'pants.core.util_rules.pants_environment'")
Traceback (most recent call last):
  File "/home/runner/work/pants/pants/src/python/pants/init/extension_loader.py", line 128, in load_backend
    module = importlib.import_module(backend_module)
  File "/home/runner/.cache/pants/pants_dev_deps/Linux.py37.venv/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/runner/.cache/pants/named_caches/pex_root/venvs/short/9f4513bf/lib/python3.7/site-packages/toolchain/pants/auth/register.py", line 10, in <module>
    from toolchain.pants.auth.rules import get_auth_rules
  File "/home/runner/.cache/pants/named_caches/pex_root/venvs/short/9f4513bf/lib/python3.7/site-packages/toolchain/pants/auth/rules.py", line 22, in <module>
    from pants.core.util_rules.pants_environment import PantsEnvironment
ModuleNotFoundError: No module named 'pants.core.util_rules.pants_environment'
e
Thanks for bumping. I'm pretty sure @hundreds-father-404 and @polite-garden-50641 are working through some chicken / egg here.
p
where does this happen ? which branch ? things work for me on latest main branch
h