I think #971 is still an active issue.
Reproducible from a completely clean install:
/opt/homebrew/opt/python@3.14/bin/python3.14 -m pip install --no-cache-dir --force-reinstall bcrypt
python3.14 -c "import bcrypt"
- Result: `ImportError: cannot import name '__author__' from 'bcrypt._bcrypt'`
Environment:
- macOS (Apple Silicon), Homebrew python@3.14 (3.14.6)
- Installed wheel: bcrypt-5.0.0-cp39-abi3-macosx_10_12_universal2.whl (fresh download from PyPI, not cached)
Notably, the identical bcrypt==5.0.0 works fine on Linux (manylinux wheel, confirmed via
`python3 -c "import bcrypt; print(bcrypt.__version__)"` → 5.0.0, no error) — this appears
specific to the macOS universal2 wheel.`
Trying the suggested of `pip install git+https://github.com/pyca/bcrypt.git#egg=bcrypt` from https://github.com/pyca/bcrypt/issues/971#issuecomment-3425029665 did not help.
I think #971 is still an active issue.