fanyingfx / lute-v3-fanyingfx

Lute改版,增加mdict词典支持
MIT License
8 stars 0 forks source link

Error on dict_conf.yaml #1

Open Xmaspro opened 5 months ago

Xmaspro commented 5 months ago

Description 根据词典名称、地址,相应修改了dict_conf.yaml。启动程序后,出现以下错误: yaml.scanner.ScannerError: mapping values are not allowed here in "/Users/.../Lute3/dict_conf.yaml", line 3, column 6

OS :MacOS

烦请有空时看下,谢谢。

fanyingfx commented 5 months ago

可以提供一下你用的dict_conf.yaml文件吗

Xmaspro commented 5 months ago

可以提供一下你用的dict_conf.yaml文件吗

dict_conf.yaml.zip

fanyingfx commented 5 months ago

rootfolder后面跟的是词典所在的最外层目录,还有因为是yaml,冒号后面需要加空格

rootfolder: /Users/me/Library/Application Support/Lute3/Lute3/

dicts:
  English:
    dir_name: Eng 
    dict_list: 
      - olad4
      - MWnow
      - mwal
    pronunciation: null
  Japanese:
    dir_name: ja
    dict_list:
      - Shogakukanjcv3  
      - xsjrihanshuangjie
    pronunciation: nhk
Xmaspro commented 5 months ago

按照上面在rootfolder:后面加了空格。 执行“python -m lute.main ”又出现下面错误:

Starting Lute: Using default config

Initializing app. Creating backup before running migrations ... Done backup.

File /Users/me/Documents/lib/python3.10/site-packages/lute/db/setup/../schema/migrations/20231204_add_WoLemma.sql exception: near ""WoLemma"": syntax error

Error during startup: near ""WoLemma"": syntax error Please try again, or report an issue on GitHub.

fanyingfx commented 5 months ago

https://github.com/fanyingfx/lute-v3-fanyingfx/releases/tag/3.1.2b1 我更新了一个新版本,你再试试?

Xmaspro commented 5 months ago

可以运行,但是打开http://localhost:端口。 提示下面错误:

Internal Server Error

The server encountered an unexpected internal server error

(generated by waitress)

fanyingfx commented 5 months ago

我自己电脑上是能跑的,你把旧的数据删除试试呢,启动是时候会显示data path,把这个路径里面的lute.db文件删了看看

Xmaspro commented 5 months ago

重新安装lute3,还是一样的错误: Internal Server Error The server encountered an unexpected internal server error (generated by waitress)

错误截图,是不是数据库方面的问题? スクリーンショット 2024-04-01 12 23 11

fanyingfx commented 5 months ago

你是删除了lute.db重装出现的问题吗,这个看着像是之前建表语句没执行完出的问题 我这边删了lute.db然后自动建的新的lute.db没有这个问题