On Mon, May 27, 2013 at 4:41 AM, handloomweaver <[email protected]> wrote:
> Love bpython, thanks so much! I tried to pip install it with pypy (1.9) and
> I got an error - ImportError: No module named _curses
>
> Does bpython run in pypy and does anyone have suggestions as to what I need
> to do to fix?

You have two options:

- Run bpython's curses frontend, using a pypy with more complete
curses support. pypy 2.0.x might work. pypy 2.0.2 does not work for
me, but that might just be me: it starts, but if I type "dir(" I get a
traceback:

  File "bpython/cli.py", line 722, in mkargspec
    get_colpair(self.config, 'name') | curses.A_BOLD)
  File "/usr/lib64/pypy2.0/lib_pypy/_curses.py", line 509, in _wrapped
    return func(self, *outargs)
  File "/usr/lib64/pypy2.0/lib_pypy/_curses.py", line 598, in addstr
    code = lib.waddstr(self._win, text)
TypeError: initializer for ctype 'char *' must be a str or list or
tuple, not unicode

I have no time to dig into this right now, and don't know if that's
pypy's fault, bpython's fault, or something else.

Note I was running bpython from hg. A released bpython might work less
well, or better.

- Run bpython's urwid frontend (after installing urwid, or pointing
PYTHONPATH at an urwid source directory). This seems to (at least
somewhat) work.

Good luck!

--
Marien Zwart (marienz on freenode).

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bpython?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to