Title: 'FakeStdin' object has no attribute 'fileno' · Issue #989 · bpython/bpython · GitHub
Open Graph Title: 'FakeStdin' object has no attribute 'fileno' · Issue #989 · bpython/bpython
X Title: 'FakeStdin' object has no attribute 'fileno' · Issue #989 · bpython/bpython
Description: I know there has been some discussion on this. #232, for example. I don't know if this merits trying to figure out a solution, but it would be nice to be able to play with Questionary in BPython. :) bpython version 0.22.1 on top of Pytho...
Open Graph Description: I know there has been some discussion on this. #232, for example. I don't know if this merits trying to figure out a solution, but it would be nice to be able to play with Questionary in BPython. :...
X Description: I know there has been some discussion on this. #232, for example. I don't know if this merits trying to figure out a solution, but it would be nice to be able to play with Questionary in BPytho...
Opengraph URL: https://github.com/bpython/bpython/issues/989
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'FakeStdin' object has no attribute 'fileno'","articleBody":"I know there has been some discussion on this. https://github.com/bpython/bpython/issues/232, for example.\r\n\r\nI don't know if this merits trying to figure out a solution, but it would be nice to be able to play with Questionary in BPython. :)\r\n\r\n```\r\nbpython version 0.22.1 on top of Python 3.10.6 /usr/bin/python3\r\n>>> import questionary\r\n>>> questionary.text(\"What's your name?\",).ask()\r\nTraceback (most recent call last):\r\n File \"\u003cinput>\", line 1, in \u003cmodule>\r\n questionary.text(\"What's your name?\",).ask()\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/questionary/prompts/text.py\", line 90, in text\r\n p = PromptSession(\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py\", line 477, in __init__\r\n self.app = self._create_application(editing_mode, erase_when_done)\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py\", line 728, in _create_application\r\n application: Application[_T] = Application(\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/prompt_toolkit/application/application.py\", line 274, in __init__\r\n self.input = input or session.input\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/prompt_toolkit/application/current.py\", line 60, in input\r\n self._input = create_input()\r\n File \"/home/jkugler/.local/lib/python3.10/site-packages/prompt_toolkit/input/defaults.py\", line 52, in create_input\r\n stdin.fileno()\r\nAttributeError: 'FakeStdin' object has no attribute 'fileno'\r\n```\r\nIf the fix is easy, cool. If it's going to cause large amounts of pain, don't worry about it.","author":{"url":"https://github.com/jkugler","@type":"Person","name":"jkugler"},"datePublished":"2023-05-26T23:25:12Z","url":"https://github.com/bpython/bpython/issues/989"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:89260f31-554f-528a-38c2-0f83ff5d55e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0FC:34CAB:37AAFEE:47309FC:6B01FDAC |
| html-safe-nonce | 8685255af10178277b92ca2470ae1009d4d9dfea8624e48adc0ec97da2fd4548 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEZDOjM0Q0FCOjM3QUFGRUU6NDczMDlGQzo2QjAxRkRBQyIsInZpc2l0b3JfaWQiOiIyNjk0NDU4NTA2NzE4ODcwOTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b9610ebdbe507e0fbf6acf3195c239d850c6b239efdf744632575b556eeafd9b |
| hovercard-subject-tag | issue:1728339982 |
| 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/989/issue_layout |
| twitter:image | https://opengraph.githubassets.com/606868e545a3c99c93bfd3be33dc725e005ceaa3623d8e6b282b4d58b2f004cf/bpython/bpython/issues/989 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/606868e545a3c99c93bfd3be33dc725e005ceaa3623d8e6b282b4d58b2f004cf/bpython/bpython/issues/989 |
| og:image:alt | I know there has been some discussion on this. #232, for example. I don't know if this merits trying to figure out a solution, but it would be nice to be able to play with Questionary in BPython. :... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jkugler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width