kernelci / kernelci/kernelci-api
password creation: non-fatal bcript error output
- 主要语言
- Python
- 星标
- 10
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
描述
bcrypt error, but not fatal. Password is created
```bash
poutine kernelci-api > docker compose run api python3 -m api.admin --email gus@collabora.com
WARN[0000] /home/gus/p/ecosystem/kernelci-api/docker-compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
WARN[0000] Found orphan containers ([kernelci-api-api-run-58ebc654f7a8 kernelci-api-api-run-78b9fbdce960]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Password for user 'admin':
Retype password for user 'admin':
(trapped) error reading bcrypt version
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
version = _bcrypt.__about__.__version__
^^^^^^^^^^^^^^^^^
AttributeError: module 'bcrypt' has no attribute '__about__'
Creating admin user...
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先通过 `docker compose` 重现命令 `python3 -m api.admin`,并检查 API 环境中的 bcrypt/passlib 交互。检查与 `docker-compose.yaml` 相关的依赖设置;当密码创建仍能成功,且没有被捕获的 bcrypt traceback 或其他意外的错误输出时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- docker, python
- 领域
- authentication, backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100