-
Notifications
You must be signed in to change notification settings - Fork 11
Description
您好,
我在 Windows 11 环境下使用 unitok 库时遇到了以下错误:
Traceback (most recent call last):
File "E:\zr\Legommenders\process.py", line 6, in <module>
from unitok import UniTok
File "E:\zr\envs\lego\lib\site-packages\unitok\__init__.py", line 19, in <module>
from unitok.status import Status
File "E:\zr\envs\lego\lib\site-packages\unitok\status.py", line 4, in <module>
class Status:
File "E:\zr\envs\lego\lib\site-packages\unitok\status.py", line 25, in Status
require_initialized = require_status(Symbols.initialized)
TypeError: 'staticmethod' object is not callable
错误发生在 status.py 文件中,看起来像是将一个被标记为 @staticmethod 的方法当作函数直接调用导致的。
我的环境信息:
Windows 11
Python 3.9
使用 pip 安装的 unitok 最新版本
我正在尝试运行 Legommenders 项目,该项目依赖于 unitok 库。请问这个问题有什么解决方案吗?或者有没有稳定的旧版本可以推荐使用?
感谢您的帮助!
Hello,
I'm encountering the following error when trying to use the unitok library on Windows 11:
Traceback (most recent call last):
File "E:\zr\Legommenders\process.py", line 6, in <module>
from unitok import UniTok
File "E:\zr\envs\lego\lib\site-packages\unitok\__init__.py", line 19, in <module>
from unitok.status import Status
File "E:\zr\envs\lego\lib\site-packages\unitok\status.py", line 4, in <module>
class Status:
File "E:\zr\envs\lego\lib\site-packages\unitok\status.py", line 25, in Status
require_initialized = require_status(Symbols.initialized)
TypeError: 'staticmethod' object is not callable
The error occurs in the status.py file and appears to be attempting to call a method marked with @staticmethod directly as a function.
My environment details:
Windows 11
Python 3.9
Latest version of unitok installed via pip
I'm trying to run the Legommenders project, which depends on the unitok library. Is there any solution available for this issue? Or perhaps a stable older version you could recommend?
Thank you for your assistance!