-
Notifications
You must be signed in to change notification settings - Fork 141
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
Problems with readline #173
Comments
Changing line 21 of
from
to
fixed the problem |
Sorry, what are the differences between these two lines? |
Ups, my bad, I corrected my comment so people don't get confused |
Thanks for figuring this out. |
How did you modify the file? Even when I manage to edit the file (C-x C-q on emacs) I can't save it. How did you over write the permissions? |
You have to do it with the user root $ sudo emacs filename Should do the trick (If you have sudo permissions) or $ su emacs filenameJohn On Mon, Jun 1, 2015, 1:55 PM laxminair notifications@github.com wrote:
|
While this is a fair work around, it causes me an issue running python27 installed via MacPorts. Specifically, the prompt fails to print color codes correctly:
Which seems to be related to try:
import readline
self.old_completer = readline.get_completer()
readline.set_completer(self.complete)
readline.parse_and_bind(self.completekey+": complete") if I edit the import here to read |
This problem still appears for some users by the way, appears to be an OS X specific problem, might be worth seeing whether the change can be merged at this point... |
Ha, I just helped a friend with this not two hours ago. I don't have a mac, so can someone test this for me at line 21? try:
import gnureadline as readline
except ImportError:
import readline Edit: I'll test it on a system without gnureadline |
importing gnureadline fixes broken things see #173
Who needs testing! Merged. Would be nice if some other PC and mac users could pull down @master and test against that before I create a tag, though. Edit: fwiw I did test this on linux mint. Edit 2: and sorry, no color fixes yet |
Made a minor release anyways (v2.1.7) because yolo. |
👍, were you able to push it to pip? |
Yup, thanks to good old Travis CI. |
Hi I'm trying to run the example using psiturk but I'm getting this error:
I have installed the gnureadline package, but it seems like for some reason psiturk is still getting the libedit version. Is this a bug?
The text was updated successfully, but these errors were encountered: