Title: ValueError Crash after linebreak and entering letter · Issue #687 · bpython/bpython · GitHub
Open Graph Title: ValueError Crash after linebreak and entering letter · Issue #687 · bpython/bpython
X Title: ValueError Crash after linebreak and entering letter · Issue #687 · bpython/bpython
Description: I suddenly get an ValueError each time I enter a letter in a newline; even if I first enter spaces and then a letter or other symbols or digits which is possible but if I delete them and then enter a letter it crashes. I didn't update ne...
Open Graph Description: I suddenly get an ValueError each time I enter a letter in a newline; even if I first enter spaces and then a letter or other symbols or digits which is possible but if I delete them and then enter...
X Description: I suddenly get an ValueError each time I enter a letter in a newline; even if I first enter spaces and then a letter or other symbols or digits which is possible but if I delete them and then enter...
Opengraph URL: https://github.com/bpython/bpython/issues/687
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError Crash after linebreak and entering letter","articleBody":"I suddenly get an ValueError each time I enter a letter in a newline; even if I first enter spaces and then a letter or other symbols or digits which is possible but if I delete them and then enter a letter it crashes.\r\nI didn't update neither my bpython nor my anaconda/python2.7 installation; only the regular Ubuntu 16.04 updates.\r\n```\r\nbpython version 0.16 on top of Python 2.7.13 /home/jd/work/miniconda3/envs/py2/bin/python\r\n\u003e\u003e\u003e help(\r\n... \r\nTraceback (most recent call last):\r\n File \"/home/jd/work/miniconda3/envs/py2/bin/bpython\", line 11, in \u003cmodule\u003e\r\n sys.exit(main())\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsies.py\", line 190, in main\r\n exit_value = repl.mainloop()\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsies.py\", line 125, in mainloop\r\n self.process_event_and_paint(e)\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsies.py\", line 99, in process_event_and_paint\r\n array, cursor_pos = self.paint()\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 1447, in paint\r\n if self.matches_iter.completer else None)\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsiesfrontend/replpainter.py\", line 182, in paint_infobox\r\n if matches else [])\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsiesfrontend/replpainter.py\", line 78, in matches_lines\r\n for i in range(0, len(matches), words_wide)]\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/curtsies/formatstring.py\", line 264, in join\r\n for i, s in enumerate(iterable):\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/bpython/curtsiesfrontend/replpainter.py\", line 77, in \u003cgenexpr\u003e\r\n for m in matches[i:i+words_wide])\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/curtsies/formatstring.py\", line 628, in fmtstr\r\n string = FmtStr.from_str(string)\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/curtsies/formatstring.py\", line 180, in from_str\r\n return FmtStr(Chunk(s))\r\n File \"/home/jd/work/miniconda3/envs/py2/lib/python2.7/site-packages/curtsies/formatstring.py\", line 70, in __init__\r\n raise ValueError(\"unicode string required, got %r\" % string)\r\nValueError: unicode string required, got 'set '\r\n```\r\n\r\nThe ValueError depends on the letter entered:\r\nFor example a 'a' results in:\r\n`ValueError: unicode string required, got 'abs '`\r\n\r\nwhereas a 'q' results in:\r\n`ValueError: unicode string required, got 'quit'`\r\n","author":{"url":"https://github.com/Danzelot","@type":"Person","name":"Danzelot"},"datePublished":"2017-06-20T17:01:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/687/bpython/issues/687"}
| 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:1c69b8bf-9bf4-55ac-b396-193d30c0d0f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDE0:10CAF0:1EA4D2:2906BC:6969777E |
| html-safe-nonce | 1ab762f68ab5aa8f8979019818c3d465ad11a19307a4bd77c1490c1ca0819131 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREUwOjEwQ0FGMDoxRUE0RDI6MjkwNkJDOjY5Njk3NzdFIiwidmlzaXRvcl9pZCI6IjU3Mjc1NTQzMTM2NTkxODUwMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ad40e65faea8c4520de73f3d467b01352fb4ddb694a7d9f8d3c901d5edbb5e38 |
| hovercard-subject-tag | issue:237280099 |
| 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/687/issue_layout |
| twitter:image | https://opengraph.githubassets.com/205dafbabed6064057ed226b9cd807dd6af23a433474ebd7a96422c0a319e8a8/bpython/bpython/issues/687 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/205dafbabed6064057ed226b9cd807dd6af23a433474ebd7a96422c0a319e8a8/bpython/bpython/issues/687 |
| og:image:alt | I suddenly get an ValueError each time I enter a letter in a newline; even if I first enter spaces and then a letter or other symbols or digits which is possible but if I delete them and then enter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Danzelot |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width