noneplugin / nonebot-plugin-boardgame

适用于 Nonebot2 的棋类游戏插件
44 stars 5 forks source link

下棋时报错了 #16

Closed Pendome closed 1 year ago

Pendome commented 1 year ago

image 触发下棋指令报错了

MeetWq commented 1 year ago

你用的哪个版本

Pendome commented 1 year ago

Python 3.8.6 用的是火狐的浏览器firefox-1378 windows server2012 R2 nonebot2

MeetWq commented 1 year ago

我是说插件的版本

MeetWq commented 1 year ago

你机器人启动的时候有没有报错?

Pendome commented 1 year ago

你机器人启动的时候有没有报错? image

不好意思哈,插件版本是v0.2.1,机器人启动的时候没有报错,一切正常

MeetWq commented 1 year ago

可以把DEBUG模式打开看看结果吗? 在 nonebot 的 .env 文件里设置 LOG_LEVEL=DEBUG

he0119 commented 1 year ago

可以运行一下 nb datastore history 后,发一下结果吗?

Pendome commented 1 year ago

可以把DEBUG模式打开看看结果吗? 在 nonebot 的 .env 文件里设置 LOG_LEVEL=DEBUG

image 这个是完整的结果了

Pendome commented 1 year ago

可以运行一下 nb datastore history 后,发一下结果吗?

image 这个是运行之后的结果

he0119 commented 1 year ago

绝了,怎么是空的。 image

he0119 commented 1 year ago

你可以进 site-packages 找到 nonebot_plugin_datastore,然后把 self._migration_path 打印出来看看吗? 在这个位置 https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/plugin.py#L262

Pendome commented 1 year ago

你可以进 site-packages 找到 nonebot_plugin_datastore,然后把 self._migration_path 打印出来看看吗? 在这个位置 https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/plugin.py#L262

image

he0119 commented 1 year ago

奇怪啊,位置没错,这个文件夹里有东西吧?

Pendome commented 1 year ago

奇怪啊,位置没错,这个文件夹里有东西吧?

image 里面是有东西的

he0119 commented 1 year ago

太离谱了,我不理解……

he0119 commented 1 year ago

那你还可以打印一下这里的 str(PluginData(plugin_name).migration_dir) 吗?

https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/script/utils.py#L59

Pendome commented 1 year ago

那你还可以打印一下这里的 str(PluginData(plugin_name).migration_dir) 吗?

https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/script/utils.py#L59

image

he0119 commented 1 year ago

那你还可以打印一下这里的 str(PluginData(plugin_name).migration_dir) 吗? https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/script/utils.py#L59

image

😂😂😂我完全不理解了,可能得去看看 alembic 的源代码。要不加个群(730374631)?

Pendome commented 1 year ago

那你还可以打印一下这里的 str(PluginData(plugin_name).migration_dir) 吗? https://github.com/he0119/nonebot-plugin-datastore/blob/366b9cf239718d7b5c0f0a6c5663b13a9214b481/nonebot_plugin_datastore/script/utils.py#L59

image

😂😂😂我完全不理解了,可能得去看看 alembic 的源代码。要不加个群(730374631)?

好咧感谢大佬