Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新路由调试不成功,错误信息ModuleNotFoundError #24

Open
valuex opened this issue Sep 15, 2024 · 0 comments
Open

新路由调试不成功,错误信息ModuleNotFoundError #24

valuex opened this issue Sep 15, 2024 · 0 comments

Comments

@valuex
Copy link

valuex commented Sep 15, 2024

路由开发过程

  1. spyder 目录下新建了ylxx目录
  2. 该目录下,添加了notice.py文件,notice.py 是从spyder/dxzg文件夹直接复制过来的
  3. blueprints/main.py中添加的内容
@bp.route('/ylxx/notice')
def ylxx_notice():
    from rsshub.spiders.ylxx.notice import ctx
    return render_template('main/atom.xml', **filter_content(ctx()))

错误信息


from rsshub.spiders.ylxx.notice import ctx 这句中报错,错误信息为

ModuleNotFoundError: No module named 'rsshub.spiders.ylxx'

请帮忙看看,如何解决该错误,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant