Title: fcntl error on windows · Issue #509 · bpython/bpython · GitHub
Open Graph Title: fcntl error on windows · Issue #509 · bpython/bpython
X Title: fcntl error on windows · Issue #509 · bpython/bpython
Description: Getting the following error when running bpython-curses: Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line 72, ...
Open Graph Description: Getting the following error when running bpython-curses: Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) Fi...
X Description: Getting the following error when running bpython-curses: Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, ...
Opengraph URL: https://github.com/bpython/bpython/issues/509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fcntl error on windows","articleBody":"Getting the following error when running `bpython-curses`:\n\n```\nTraceback (most recent call last):\n File \"C:\\Python27\\lib\\runpy.py\", line 162, in _run_module_as_main\n \"__main__\", fname, loader, pkg_name)\n File \"C:\\Python27\\lib\\runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"C:\\Python27\\Scripts\\bpython-curses.exe\\__main__.py\", line 5, in \u003cmodule\u003e\n File \"C:\\Python27\\lib\\site-packages\\bpython\\cli.py\", line 84, in \u003cmodule\u003e\n from bpython import repl\n File \"C:\\Python27\\lib\\site-packages\\bpython\\repl.py\", line 56, in \u003cmodule\u003e\n from bpython.history import History\n File \"C:\\Python27\\lib\\site-packages\\bpython\\history.py\", line 34, in \u003cmodule\u003e\n from bpython.filelock import FileLock\n File \"C:\\Python27\\lib\\site-packages\\bpython\\filelock.py\", line 33, in \u003cmodule\u003e\n class FileLock(object):\n File \"C:\\Python27\\lib\\site-packages\\bpython\\filelock.py\", line 39, in FileLock\n def __init__(self, fd, mode=fcntl.LOCK_EX):\nNameError: name 'fcntl' is not defined\n```\n\nThis is due to `fcntl` not being defined on windows, and default arguments being evaluated on definition time.\n","author":{"url":"https://github.com/stranac","@type":"Person","name":"stranac"},"datePublished":"2015-03-15T17:38:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/509/bpython/issues/509"}
| 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:f10a2fb7-0f37-0b83-dd85-7a91c459d479 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C39E:345820:30C8A1:4123FF:6969D408 |
| html-safe-nonce | 457949fe3cd7723aeded15ba41b90493ae9a9887a1b99c6327b91ecf88e99a8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzlFOjM0NTgyMDozMEM4QTE6NDEyM0ZGOjY5NjlENDA4IiwidmlzaXRvcl9pZCI6Ijc4MjY2NTczMzEzNTUyMDc3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d7dd35650d3b81a211712da78d3091b004e5a76d536152ffb28958dc1f58abf |
| hovercard-subject-tag | issue:61873648 |
| 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/bpython/bpython/509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5fce573d58fde46cecf53276042c4ac455a4e46eadc203ef16cdae78031aaefb/bpython/bpython/issues/509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5fce573d58fde46cecf53276042c4ac455a4e46eadc203ef16cdae78031aaefb/bpython/bpython/issues/509 |
| og:image:alt | Getting the following error when running bpython-curses: Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) Fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stranac |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width