Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_curses.error: addstr() returned ERR #8

Closed
manuel-delverme opened this issue May 1, 2016 · 5 comments
Closed

_curses.error: addstr() returned ERR #8

manuel-delverme opened this issue May 1, 2016 · 5 comments

Comments

@manuel-delverme
Copy link

Traceback (most recent call last):
File "extract.py", line 19, in
style, _ = pick(sorted(list(styles)), title)
File "/usr/local/lib/python2.7/dist-packages/pick/init.py", line 148, in pick
return picker.start()
File "/usr/local/lib/python2.7/dist-packages/pick/init.py", line 134, in start
return curses.wrapper(self._start)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, _args, *_kwds)
File "/usr/local/lib/python2.7/dist-packages/pick/init.py", line 131, in _start
return self.run_loop()
File "/usr/local/lib/python2.7/dist-packages/pick/init.py", line 109, in run_loop
self.draw()
File "/usr/local/lib/python2.7/dist-packages/pick/init.py", line 102, in draw
self.screen.addstr(y, x, line)
_curses.error: addstr() returned ERR

changing row 102 from:
102 self.screen.addstr(y, x, line)
to:
102 self.screen.addstr(y - 1, x, line)

avoids the error.. but i'm not sure about what i'm really doing here..

might be related to:
#2

pick version:

➜ /tmp sudo pip show pick

Metadata-Version: 2.0
Name: pick
Version: 0.6.0
Summary: pick an option in the terminal with a simple GUI
Home-page: https://github.com/wong2/pick
Author: wong2
Author-email: wonderfuly@gmail.com
Installer: pip
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires:
Classifiers:
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5

@wong2
Copy link
Collaborator

wong2 commented May 3, 2016

@manuel-delverme how can I reproduce this?

@manuel-delverme
Copy link
Author

this is the script
https://github.com/manuel-delverme/scripts/blob/master/radio.py

you can ignore both os.execv and pyfscache
the problem happens on the first pick()

@wong2
Copy link
Collaborator

wong2 commented May 3, 2016

@manuel-delverme does it work if you increase the width of the terminal?

@manuel-delverme
Copy link
Author

@wong2
Copy link
Collaborator

wong2 commented May 24, 2016

please try v0.6.1

@wong2 wong2 closed this as completed May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants