Title: Failure to start an example "single-thing.py · Issue #72 · WebThingsIO/webthing-python · GitHub
Open Graph Title: Failure to start an example "single-thing.py · Issue #72 · WebThingsIO/webthing-python
X Title: Failure to start an example "single-thing.py · Issue #72 · WebThingsIO/webthing-python
Description: I've installed library today and tried to run an example. Got this error: Traceback (most recent call last): File "single-thing.py", line 118, in run_server() File "single-thing.py", line 106, in run_server server.start() File "/usr/loca...
Open Graph Description: I've installed library today and tried to run an example. Got this error: Traceback (most recent call last): File "single-thing.py", line 118, in run_server() File "single-thing.py", line 106, in r...
X Description: I've installed library today and tried to run an example. Got this error: Traceback (most recent call last): File "single-thing.py", line 118, in run_server() File "single-thing....
Opengraph URL: https://github.com/WebThingsIO/webthing-python/issues/72
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failure to start an example \"single-thing.py","articleBody":"I've installed library today and tried to run an example. Got this error:\r\n\r\n\u003e \r\n\u003e Traceback (most recent call last):\r\n\u003e File \"single-thing.py\", line 118, in \u003cmodule\u003e\r\n\u003e run_server()\r\n\u003e File \"single-thing.py\", line 106, in run_server\r\n\u003e server.start()\r\n\u003e File \"/usr/local/lib/python3.7/dist-packages/webthing/server.py\", line 864, in start\r\n\u003e server='{}.local.'.format(socket.gethostname()))\r\n\u003e TypeError: __init__() got an unexpected keyword argument 'address'\r\n\r\nDone some digging, checked the constructor of zeroconf ServiceInfo here:\r\nhttps://github.com/jstasiak/python-zeroconf/blob/master/zeroconf/__init__.py\r\nand then changed the line number 859 in server.py from this\r\n\u003e address=socket.inet_aton(get_ip()),\r\n\r\nto this\r\n\u003e addresses=[socket.inet_aton(get_ip())],\r\n\r\nand then example started working as expected.\r\n\r\nzeroconf version 0.27.0\r\nifaddr version 0.1.6\r\npython version 3.7.3","author":{"url":"https://github.com/andrius-v","@type":"Person","name":"andrius-v"},"datePublished":"2020-05-29T11:34:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/72/webthing-python/issues/72"}
| 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:51c7a560-993f-2f0e-9928-2ded0c7c2d07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E3E:3F004:33E693F:431FADB:6990F234 |
| html-safe-nonce | f1426fc4267a94f01f0c776496ef931e41e9a80e66dcd50c55c8e94a6e8f3172 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTNFOjNGMDA0OjMzRTY5M0Y6NDMxRkFEQjo2OTkwRjIzNCIsInZpc2l0b3JfaWQiOiIxMTI2ODczNzE5NDMzNjU0ODM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | daa8d66b94988ce183c05feeaf3b835dac18f002b00519d3eebee88349350737 |
| hovercard-subject-tag | issue:627202764 |
| 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/WebThingsIO/webthing-python/72/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5995d8c3a637953a6c3d1bb11e25f7efaadb46913cc651d670ad508e8f4bbf15/WebThingsIO/webthing-python/issues/72 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5995d8c3a637953a6c3d1bb11e25f7efaadb46913cc651d670ad508e8f4bbf15/WebThingsIO/webthing-python/issues/72 |
| og:image:alt | I've installed library today and tried to run an example. Got this error: Traceback (most recent call last): File "single-thing.py", line 118, in run_server() File "single-thing.py", line 106, in r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrius-v |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/WebThingsIO/webthing-python git https://github.com/WebThingsIO/webthing-python.git |
| octolytics-dimension-user_id | 20707259 |
| octolytics-dimension-user_login | WebThingsIO |
| octolytics-dimension-repository_id | 124557300 |
| octolytics-dimension-repository_nwo | WebThingsIO/webthing-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 124557300 |
| octolytics-dimension-repository_network_root_nwo | WebThingsIO/webthing-python |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width