New issue 3144: pypy3.6 7.3.0 curses get_wch: ffi.error: undefined type name
wint_t[1]
https://bitbucket.org/pypy/pypy/issues/3144/pypy36-730-curses-get_wch-ffierror
Anthony Sottile:
Still reproduces on the latest nightly – seems to be a regression \(I was able
to call this function previously, it just misbehaved\)
```
$ ./pypy-c-jit-98442-def680385695-linux64/bin/pypy3 ../t.py
Traceback (most recent call last):
File "../t.py", line 6, in <module>
curses.wrapper(c_main)
File
"/home/asottile/workspace/babi/x/pypy-c-jit-98442-def680385695-linux64/lib-python/3/curses/__init__.py",
line 94, in wrapper
return func(stdscr, *args, **kwds)
File "../t.py", line 4, in c_main
stdscr.get_wch()
File
"/home/asottile/workspace/babi/x/pypy-c-jit-98442-def680385695-linux64/lib_pypy/_curses.py",
line 407, in get_wch
wch = ffi.new("wint_t[1]")
ffi.error: undefined type name
wint_t[1]
^
```
```python
import curses
def c_main(stdscr):
stdscr.get_wch()
curses.wrapper(c_main)
```
In case it matters, here is my curses versions:
```
$ dpkg -l | grep libncurses
ii libncurses5:amd64 6.1-1ubuntu1.18.04
amd64 shared libraries for terminal handling
ii libncursesw5:amd64 6.1-1ubuntu1.18.04
amd64 shared libraries for terminal handling (wide
character support)
ii libncursesw5-dev:amd64 6.1-1ubuntu1.18.04
amd64 developer's libraries for ncursesw
```
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue