[pypy-issue] Issue #1946: curses.initscr() raises ctype TypeError (pypy/pypy)

arianaut issues-reply at bitbucket.org
Thu Dec 11 19:45:29 CET 2014


New issue 1946: curses.initscr() raises ctype TypeError
https://bitbucket.org/pypy/pypy/issue/1946/cursesinitscr-raises-ctype-typeerror

arianaut:

Python 3.2.5 (001db61e74f0, Dec 11 2014, 11:07:52)
[PyPy 2.5.0-alpha0 with GCC 4.2.1 Compatible Clang 3.5.0 (tags/RELEASE_350/final)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy 1.1.0beta released:
http://codespeak.net/pypy/dist/pypy/doc/release-1.1.0.html''
>>>> import curses
>>>> curses.initscr()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/pypy3/lib-python/3/curses/__init__.py", line 31, in initscr
    fd=_sys.__stdout__.fileno())
  File "/opt/pypy3/lib_pypy/_curses.py", line 1131, in setupterm
    if lib.setupterm(term, fd, err) == lib.ERR:
TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str

I am using the latest pypy revision for py3k on Arch Linux, built using https://aur.archlinux.org/packages/pypy3-hg/




More information about the pypy-issue mailing list