Cannot import name 'get_shaded_rgb' from 'manimlib.utils.color'
未關閉
適合新手
- 主要語言
- Python
- 星號
- 93.9k
- 分支
- 7.7k
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 4
描述
### Describe the error
When I was writing my first manim program, it has an error "Cannot import name 'get_shaded_rgb' from 'manimlib.utils.color'".
### Code and Error
**Code**:
Here's my code.
[myfirstmanim.txt](https://github.com/3b1b/manim/files/8829581/myfirstmanim.txt)
**Error**:
cannot import name 'get_shaded_rgb' from 'manimlib.utils.color'
### Environment
**OS System**: Pop!_OS 20.04
**manim version**: master
**python version**:3.8.10
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
檢查 manimlib/utils/color.py 檔案,查看是否定義了 get_shaded_rgb,或它是否已被重新命名/移除。查看使用者程式碼中的 import 陳述式以了解上下文。修復可能涉及將 import 更新為正確的函式名稱或模組,或新增缺少的函式。執行使用者提供的程式碼來重現錯誤並驗證修復。
由索引模型根據 Issue 內容生成。
評估
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100