Title: Strange top level import issue · Issue #24 · blakev/python-syncthing · GitHub
Open Graph Title: Strange top level import issue · Issue #24 · blakev/python-syncthing
X Title: Strange top level import issue · Issue #24 · blakev/python-syncthing
Description: Python 2.7.13 syncthing 2.3.1 I have no idea why the interpreter is hitting line 41, but it is: (syncthing) jason@host:~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "cre...
Open Graph Description: Python 2.7.13 syncthing 2.3.1 I have no idea why the interpreter is hitting line 41, but it is: (syncthing) jason@host:~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] ...
X Description: Python 2.7.13 syncthing 2.3.1 I have no idea why the interpreter is hitting line 41, but it is: (syncthing) jason@host:~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] ...
Opengraph URL: https://github.com/blakev/python-syncthing/issues/24
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange top level import issue","articleBody":"Python 2.7.13\r\nsyncthing 2.3.1\r\n\r\nI have no idea why the interpreter is hitting line 41, but it is:\r\n\r\n```\r\n(syncthing) jason@host:~$ python\r\nPython 2.7.13 (default, Sep 26 2018, 18:42:22) \r\n[GCC 6.3.0 20170516] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e from syncthing import Syncthing\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/jason/venv/syncthing/local/lib/python2.7/site-packages/syncthing/__init__.py\", line 41\r\n raise SyncthingError(msg) from exc\r\n ^\r\nSyntaxError: invalid syntax\r\n\u003e\u003e\u003e from syncthing import Syncthing\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nImportError: cannot import name Syncthing\r\n```\r\n\r\nFull import:\r\n\r\n```\r\n(syncthing) jason@host:~$ python\r\nPython 2.7.13 (default, Sep 26 2018, 18:42:22) \r\n[GCC 6.3.0 20170516] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import syncthing\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/jason/venv/syncthing/local/lib/python2.7/site-packages/syncthing/__init__.py\", line 41\r\n raise SyncthingError(msg) from exc\r\n ^\r\nSyntaxError: invalid syntax\r\n\u003e\u003e\u003e import syncthing\r\n\u003e\u003e\u003e s = syncthing.Syncthing()\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nAttributeError: 'module' object has no attribute 'Syncthing'\r\n\u003e\u003e\u003e \r\n```","author":{"url":"https://github.com/lingfish","@type":"Person","name":"lingfish"},"datePublished":"2019-04-27T05:39:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/24/python-syncthing/issues/24"}
| 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:01ed2fa6-6521-db74-7a1b-d75909fab44c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 939E:3EB719:249F0F:2FD072:698006A7 |
| html-safe-nonce | f38eb2ceb4ff19d07b05340e1c39488706541d27fc6cf4b6f9d4cb179bbf9916 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzlFOjNFQjcxOToyNDlGMEY6MkZEMDcyOjY5ODAwNkE3IiwidmlzaXRvcl9pZCI6IjY0OTkyNjIwOTczOTY4NjA1ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f96e0f7e854676e21a696378edc11d2bc68d0e2b869a0a480faf0e24a975e751 |
| hovercard-subject-tag | issue:437909298 |
| 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/blakev/python-syncthing/24/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09f9e2eaac81241be6b815b2631278d43f597fac122057ca3d5b0831ff0a3407/blakev/python-syncthing/issues/24 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09f9e2eaac81241be6b815b2631278d43f597fac122057ca3d5b0831ff0a3407/blakev/python-syncthing/issues/24 |
| og:image:alt | Python 2.7.13 syncthing 2.3.1 I have no idea why the interpreter is hitting line 41, but it is: (syncthing) jason@host:~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lingfish |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/blakev/python-syncthing git https://github.com/blakev/python-syncthing.git |
| octolytics-dimension-user_id | 4885156 |
| octolytics-dimension-user_login | blakev |
| octolytics-dimension-repository_id | 35234567 |
| octolytics-dimension-repository_nwo | blakev/python-syncthing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35234567 |
| octolytics-dimension-repository_network_root_nwo | blakev/python-syncthing |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width