cdhigh / KindleEar

Aggregates RSS and web content(Calibre recipe), sends to Kindle, and includes an e-ink optimized online reader.
http://cdhigh.github.io/KindleEar/
MIT License
2.71k stars 631 forks source link

has no attribute 'get_locale' #687

Closed benben17 closed 3 months ago

benben17 commented 3 months ago

python 3.12 mac os 14.5 执行: python main.py debug 调试模式
File "/Users/xxx /PycharmProjects/KindleEar/application/init.py", line 31, in init_app babel.init_app(app, locale_selector=setting.get_locale) ^^^^^^^^^^^^^^^^^^ AttributeError: partially initialized module 'application.view.setting' has no attribute 'get_locale' (most likely due to a circular import)

cdhigh commented 3 months ago

Windows和Linux都没问题,我不太相信是MacOS的问题,是否python3.12修改了什么import机制?

如果这个命令出问题,可以使用:

python -m flask run --host=0.0.0.0 --debug