-
Notifications
You must be signed in to change notification settings - Fork 64
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
关于pyd文件,使用报错情况 #1
Comments
具体报什么错误 |
正文内容中有截图的错误提示,直接截图了
Attributeerror: module tencent news spider has no attribute main
…------------------ 原始邮件 ------------------
发件人: "Python3Spiders/AllNewsSpider" ***@***.***>;
发送时间: 2021年3月20日(星期六) 晚上6:43
***@***.***>;
***@***.******@***.***>;
主题: Re: [Python3Spiders/AllNewsSpider] 关于pyd文件,使用报错情况 (#1)
具体报什么错误
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
你把这个 runner.py 放到 tencent_news_spider 文件夹里去,最好用 pycharm,idle 不一定能识别出 |
已把这个 runner.py 放到 tencent_news_spider 文件夹里去,通过 pycharm 打开后,进行运行,还是报一样的错误
如图所示
…------------------ 原始邮件 ------------------
发件人: "Python3Spiders/AllNewsSpider" ***@***.***>;
发送时间: 2021年3月21日(星期天) 下午2:40
***@***.***>;
***@***.******@***.***>;
主题: Re: [Python3Spiders/AllNewsSpider] 关于pyd文件,使用报错情况 (#1)
你把这个 runner.py 放到 tencent_news_spider 文件夹里去,最好用 pycharm,idle 不一定能识别出
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
用 再不行就百度一下 pycharm add source root |
还是不行
看来就只能百度一下了
…------------------ 原始邮件 ------------------
发件人: "Python3Spiders/AllNewsSpider" ***@***.***>;
发送时间: 2021年3月21日(星期天) 晚上9:51
***@***.***>;
***@***.******@***.***>;
主题: Re: [Python3Spiders/AllNewsSpider] 关于pyd文件,使用报错情况 (#1)
用
from tencent_news_spider import main
main()
试试
再不行就百度一下 pycharm add source root
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
可以看下这个 #4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

请教这个报错情况,要如何解决,谢谢The text was updated successfully, but these errors were encountered: