bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / bpython http://bpython-interpreter.org/

Fancy curses interface to the Python interpreter

Clone this repository (size: 838.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/bpython
hg clone ssh://hg@bitbucket.org/bobf/bpython

Issues

#205 Import Crash

Reported anonymously

Hello, I'm sorry, but I have a problem: I used bpython for a few days, and I really like it, but now (I don't know why), when I finish writing "import" bpython crash, typing the following:

wizard@Fedora:$ bpython

Traceback (most recent call last):

File "/usr/local/bin/bpython", line 9, in <module> load_entry_point('bpython==0.9.7.1', 'console_scripts', 'bpython')()

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 1739, in main banner=banner)

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 1636, in curses_wrapper return func(stdscr, *args, kwargs)

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 1706, in main_curses clirepl.repl()

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 996, in repl inp = self.get_line()

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 590, in get_line if self.p_key(key) is None:

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 892, in p_key self.addstr(key)

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 286, in addstr self.complete()

File "/usr/lib/pymodules/python2.7/bpython/cli.py", line 379, in complete self.list_win_visible = repl.Repl.complete(self, tab)

File "/usr/lib/pymodules/python2.7/bpython/repl.py", line 570, in complete matches = importcompletion.complete(self.current_line(), cw)

File "/usr/lib/pymodules/python2.7/bpython/importcompletion.py", line 61, in complete if not (name.startswith(cw) and name.find('.', len(cw)) == -1):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128)

Status: open Responsible: Sebastian Ramacher Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Sebastian Ramacher

    written

    • Changed responsible from nobody to sebastinas.
    • Changed status from new to open.

    I think the exception is due to a file / directory name in one of the directories from sys.patch. Could please list all the file and directory names from any directory in your sys.path?

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?