nsf / termbox

Library for writing text-based user interfaces
http://code.google.com/p/termbox
MIT License
1.97k stars 188 forks source link

[python] 'termbox.Termbox' object has no attribute '_poll_lock' #19

Closed ei-grad closed 11 years ago

ei-grad commented 11 years ago

Is something broken in current master?

ei-grad@ei-grad ~ » pytbclock
Traceback (most recent call last):
  File "/usr/bin/pytbclock", line 123, in <module>
    Clock().run()
  File "/usr/bin/pytbclock", line 100, in run
    with termbox.Termbox() as tb:
  File "termboxmodule.pyx", line 145, in termbox.Termbox.__cinit__ (src/termboxmodule.c:1064)
AttributeError: 'termbox.Termbox' object has no attribute '_poll_lock'
ei-grad commented 11 years ago

Same thing with tests: http://pastebin.com/bfvPCPby

nsf commented 11 years ago

I'm not the author of that code, but something is wrong indeed. I haven't checked the status of python bindings for a while, will take a look soon.

nsf commented 11 years ago

Should work now, at least this worked for me on the latest archlinux:

sudo python setup.py install
./test_termboxmodule.py

Although I had to fix test_termboxmodule.py for python3 (xrange -> range). See commit: https://github.com/nsf/termbox/commit/926e9e1772b807c81b7c