-
Notifications
You must be signed in to change notification settings - Fork 225
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
Problem with ipython / readline / ncurses #455
Comments
I think this is connected to #42 |
I narrowed it down to the provided version of the
This works with a system ncurses 5.9 library, but arch switched to 6, this is why it stopped working. |
Works for me after |
Does Does
work? |
I should learn to read better… |
EDIT: this is wrong. The trace is from my working native IPython. The terminfo db is found:
I guess the db is not compatible? |
So the problem is, that the terminfo db is generated by ncurses6 and the provided ncurses is ncurses 5.9? Does that mean conda has to provide its own terminfodb? |
Folks, can you confirm that this is an issue tied in to having ncurses6 on your system? |
Yes. EDIT: actually no, the conda ncurses is broken. we just didn't notice before because we were using a system ncurses 5. |
The strace above was accidentally from my working native ipython. |
Should have mentioned that, also tried to set TERMINFO. |
I rebuilt
EDIT: My conclusion: normally anaconda uses the system ncurses which looks for and finds terminfo. This doen't work if the system has ncurses6. The conda ncurses never looks for terminfo, only termcap. |
Could you post the new |
|
The tests fail for me after bulding with a missings lib: libncursesw.so.5 which is indeed not in envs/_test/lib
|
Works for me. |
The only files there are:
|
Are you sure there was no error while building? It could be that wide character support was not enabled. For reference, my
|
@itoijala - thanks for all your work on this. Please ping me if there's anything I can do to help or you'd like me to review something. |
Exactly the same. Also for refernece:
|
My
|
I also did a fresh install and had the same version like you. Tthe build was successfull and during the test it told me to update. So I did but the test failed anyways. |
You could try adding It also works for me with the new version of |
With |
Right, I get the same. |
Would solving compiling both libraries work? With |
The Arch package includes both types of libraries without compiling twice. |
From the ncurses docs:
Would that mean building the widec libraries and symlinking to the names without would work? |
I use a term of xterm-termite or xterm-256color. Would I need to build a custom ncurses package to fix this? |
@vamega: The below works for me. The important change is to add
|
I know this may not be the correct way to do it, but this worked for me: sudo ln /usr/lib/libncursesw.so.6 /usr/lib/libncursesw.so.5 |
I'm a new user of Anaconda ( |
confirmed that @matrs 's |
I can confirm as well that |
This seem to break some jupyter things (jupyter/jupyter_console#63) as pointed by @tebeka above. We have a possible workaround but that we would prefer to include only if really necessary. Thanks. |
The above mentioned patch for gcc5 didn't work for me anymore, this one did: |
I closed this unintentionally, this is still an issue. I experienced the same problems again today after up a fresh copy of anaconda |
I pushed the recipe that made it work for me here: https://github.com/maxnoe/conda-recipes |
Thanks @maxnoe - would you mind submitting your recipe to conda-forge? Submit a PR against the staged-recipes repo here: https://github.com/conda-forge/staged-recipes That will help make your fixes more readily available. |
I opened the PR |
Update I solved my problems by symlinking anaconda's readline libraries to the system ones. Hi, I have tried installing different version of I'm quite lost at this point and any help to solve this would be greatly appreciated. Let me know if you think that this is unrelated to the solutions posted here, and I will open a new thread for this issue. I am on Linux (Antergos, an Arch derivative) with kernel 4.4.5-1-ARCH. |
Can someone reopen this? I'm still seeing this problem. Installed miniconda3, created a The problem is that the
Installing ncurses does not fix the problem since it only includes:
which doesn't include |
Try |
Both variants of |
I'm using the package from conda-forge and getting "setupterm: could not find terminfo database" still (see fish-shell/fish-shell#3121) |
@RSully Are you using a system where the terminfo database is not in If there are other comman places for the terminfo database, we should add it to the configure call. |
@maxnoe Mine are in that path edit: well, that path exists, however in my case $TERM is xterm-256color and the following files with that name exist:
it looks like the conda-forge ncurses package is installing its own terminfo that includes the file, yet it isn't using it? |
I did a fresh install of anaconda3 this morning, Linux x86_64.
When i first opened ipython, no colour was present and tabcompletion did not work. Along came the error (or warning):
Which was not gone after i did
conda install readline
.I then tried to do
import readline
, which caused the errorAfter
conda install ncurses
ipython and readline worked again, besides one minor thing:Ctrl + l does not clear the screen anymore,
%clear
works.The text was updated successfully, but these errors were encountered: