Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 676
    • Issues 676
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • PyPyPyPy
  • pypypypy
  • Issues
  • #3144
Closed
Open
Issue created Jan 07, 2020 by Bitbucket Importer@bitbucket_importerMaintainer

pypy3.6 7.3.0 curses get_wch: ffi.error: undefined type name wint_t[1]

Created originally on Bitbucket by asottile (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]
^

‌

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

‌

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking