Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. homer pypy $ cat foo.py
  2. import sys, os
  3. print(sys.version)
  4. print('TERM=%s' % os.environ['TERM'])
  5. import curses
  6. curses.setupterm(None)
  7. print('OK')
  8.  
  9.  
  10. homer pypy $ ./release/portable/pypy3.6-7.2.0-linux_x86_64-portable/bin/pypy -E foo.py
  11. 3.6.9 (5da45ced70e515f94686be0df47c59abd1348ebc, Oct 17 2019, 22:59:56)
  12. [PyPy 7.2.0 with GCC 8.2.0]
  13. TERM=xterm-256color
  14. OK
  15.  
  16. homer pypy $ ./release/py27/7.2.0/bin/pypy foo.py
  17. 2.7.13 (4a68d8d3d2fc, Oct 10 2019, 06:43:13)
  18. [PyPy 7.2.0 with GCC 6.2.0 20160901]
  19. TERM=xterm-256color
  20. OK
  21.  
  22. homer pypy $ ./release/py3k/7.2.0/bin/pypy3 -E foo.py
  23. 3.6.9 (5da45ced70e5, Oct 09 2019, 19:12:54)
  24. [PyPy 7.2.0 with GCC 6.2.0 20160901]
  25. TERM=xterm-256color
  26. Traceback (most recent call last):
  27. File "foo.py", line 4, in <module>
  28. import curses
  29. File "/home/antocuni/pypy/release/py3k/7.2.0/lib-python/3/curses/__init__.py", line 13, in <module>
  30. from _curses import *
  31. File "/home/antocuni/pypy/release/py3k/7.2.0/lib_pypy/_curses.py", line 9, in <module>
  32. from _curses_cffi import ffi, lib
  33. ImportError: libncursesw.so.5: cannot open shared object file: No such file or directory
  34.  
  35. homer pypy $ ./release/portable/pypy-7.2.0-linux_x86_64-portable/bin/pypy -E foo.py
  36. 2.7.13 (4a68d8d3d2fc1faec2e83bcb4d28559099092574, Oct 18 2019, 01:09:48)
  37. [PyPy 7.2.0 with GCC 8.2.0]
  38. TERM=xterm-256color
  39. OK
  40.  
  41. homer pypy $ ./release/portable/pypy3.6-7.2.0-linux_x86_64-portable/bin/pypy -E foo.py
  42. 3.6.9 (5da45ced70e515f94686be0df47c59abd1348ebc, Oct 17 2019, 22:59:56)
  43. [PyPy 7.2.0 with GCC 8.2.0]
  44. TERM=xterm-256color
  45. OK
  46.  
  47. homer pypy $ ./release/nightly/pypy-c-jit-98232-72f3423c43e5-linux64/bin/pypy -E foo.py
  48. 2.7.13 (72f3423c43e5, Dec 05 2019, 23:05:46)
  49. [PyPy 7.3.1-alpha0 with GCC 8.3.1 20190311 (Red Hat 8.3.1-3)]
  50. TERM=xterm-256color
  51. Traceback (most recent call last):
  52. File "foo.py", line 5, in <module>
  53. curses.setupterm(None)
  54. File "/home/antocuni/pypy/release/nightly/pypy-c-jit-98232-72f3423c43e5-linux64/lib_pypy/_curses.py", line 814, in setupterm
  55. raise error("setupterm: could not find terminal")
  56. error: setupterm: could not find terminal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement