Title: 测试tornado出错 · Issue #9 · Python3WebSpider/Python3WebSpider · GitHub
Open Graph Title: 测试tornado出错 · Issue #9 · Python3WebSpider/Python3WebSpider
X Title: 测试tornado出错 · Issue #9 · Python3WebSpider/Python3WebSpider
Description: 您好!我最近购买了您的爬虫书籍,按照所提供的流程配置环境。但是,在测试tornado时出现错误(排除安装过程出问题,因为import tornado没有问题)。我的系统是Win10+python3.7.7(通过anaconda安装)+tornado6.0.4,具体来说,在运行以下例子(书籍p.43): import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler...
Open Graph Description: 您好!我最近购买了您的爬虫书籍,按照所提供的流程配置环境。但是,在测试tornado时出现错误(排除安装过程出问题,因为import tornado没有问题)。我的系统是Win10+python3.7.7(通过anaconda安装)+tornado6.0.4,具体来说,在运行以下例子(书籍p.43): import tornado.ioloop import tornado.web clas...
X Description: 您好!我最近购买了您的爬虫书籍,按照所提供的流程配置环境。但是,在测试tornado时出现错误(排除安装过程出问题,因为import tornado没有问题)。我的系统是Win10+python3.7.7(通过anaconda安装)+tornado6.0.4,具体来说,在运行以下例子(书籍p.43): import tornado.ioloop import tornado.web clas...
Opengraph URL: https://github.com/Python3WebSpider/Python3WebSpider/issues/9
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"测试tornado出错","articleBody":"您好!我最近购买了您的爬虫书籍,按照所提供的流程配置环境。但是,在测试tornado时出现错误(排除安装过程出问题,因为import tornado没有问题)。我的系统是Win10+python3.7.7(通过anaconda安装)+tornado6.0.4,具体来说,在运行以下例子(书籍p.43):\r\n\r\nimport tornado.ioloop\r\nimport tornado.web\r\n\r\nclass MainHandler(tornado.web.RequestHandler):\r\n def get(self):\r\n self.write(\"Hello, world\")\r\n\r\ndef make_app():\r\n return tornado.web.Application([\r\n (r\"/\", MainHandler),\r\n ])\r\n\r\nif __name__ == \"__main__\":\r\n app = make_app()\r\n app.listen(8888)\r\n tornado.ioloop.IOLoop.current().start()\r\n\r\n要么没有反应,如下:\r\n\r\n\r\n要么在jupyter notebook里面提醒\r\nRuntimeError: This event loop is already running\r\n\r\n我在网上搜索了好久,有说老版本能够解决问题(我试了,python提醒老版本不兼容),有说添加import nest_asyncio\r\nnest_asyncio.apply()\r\n没有解决问题,我也试了,此时出现新的错误:\r\nOSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted\r\n\r\n请问应该如何解决这个问题呢?谢谢!\r\n","author":{"url":"https://github.com/dingliumath","@type":"Person","name":"dingliumath"},"datePublished":"2020-04-21T02:37:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/9/Python3WebSpider/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b22549f4-0c57-d091-ab80-04eddf6fc556 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB22:20B59C:B90FAA:F7B5CB:69732181 |
| html-safe-nonce | ea18b649f96e03fea6097ccd4f2219a3fd89d78c7048cf16d9a107037782e1ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjIyOjIwQjU5QzpCOTBGQUE6RjdCNUNCOjY5NzMyMTgxIiwidmlzaXRvcl9pZCI6IjcxOTA2OTA4NjA2OTYyODE0NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 33df66069327073a7ff352d50705ddf437e2704822dd27e0000769a9871ca51b |
| hovercard-subject-tag | issue:603661097 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Python3WebSpider/Python3WebSpider/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7761798c42c17ba2c2d51a0cef7c6691fa125a4be8e632685b2e5ff90918196/Python3WebSpider/Python3WebSpider/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7761798c42c17ba2c2d51a0cef7c6691fa125a4be8e632685b2e5ff90918196/Python3WebSpider/Python3WebSpider/issues/9 |
| og:image:alt | 您好!我最近购买了您的爬虫书籍,按照所提供的流程配置环境。但是,在测试tornado时出现错误(排除安装过程出问题,因为import tornado没有问题)。我的系统是Win10+python3.7.7(通过anaconda安装)+tornado6.0.4,具体来说,在运行以下例子(书籍p.43): import tornado.ioloop import tornado.web clas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dingliumath |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/Python3WebSpider/Python3WebSpider git https://github.com/Python3WebSpider/Python3WebSpider.git |
| octolytics-dimension-user_id | 29157219 |
| octolytics-dimension-user_login | Python3WebSpider |
| octolytics-dimension-repository_id | 64647062 |
| octolytics-dimension-repository_nwo | Python3WebSpider/Python3WebSpider |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 64647062 |
| octolytics-dimension-repository_network_root_nwo | Python3WebSpider/Python3WebSpider |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width