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

Defaults python2 readline support broken? #1

Closed
kadrlica opened this issue Apr 23, 2018 · 4 comments
Closed

Defaults python2 readline support broken? #1

kadrlica opened this issue Apr 23, 2018 · 4 comments

Comments

@kadrlica
Copy link

Readline cursor motion support seems to be broken with the defaults install of python=2.7.14 and the conda-forge version of r-rpostgresql. I'm running based off of an Anaconda 5.1.0 install (conda info below).

$ conda info
     active environment : None
            shell level : 0
       user config file : /home/s1/kadrlica/.condarc
 populated config files : /home/s1/kadrlica/.condarc
          conda version : 4.5.1
    conda-build version : 3.4.1
         python version : 2.7.14.final.0
       base environment : /home/s1/kadrlica/software/anaconda/anaconda2-5.1.0  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/s1/kadrlica/software/anaconda/anaconda2-5.1.0/pkgs
                          /home/s1/kadrlica/.conda/pkgs
       envs directories : /home/s1/kadrlica/software/anaconda/anaconda2-5.1.0/envs
                          /home/s1/kadrlica/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.1 requests/2.18.4 CPython/2.7.14 Linux/2.6.32-696.20.1.el6.x86_64 scientificfermi/6.4 glibc/2.12
                UID:GID : 47737:9620
             netrc file : /home/s1/kadrlica/.netrc
           offline mode : False
conda create -n rpsql-test python=2.7.14 r-rpostgresql --channel defaults --channel conda-forge

Solving environment: done

## Package Plan ##

  environment location: /home/s1/kadrlica/software/anaconda/anaconda2-5.1.0/envs/rpsql2

  added / updated specs: 
    - python=2
    - r-rpostgresql


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    setuptools-39.0.1          |           py27_0         582 KB
    pip-9.0.3                  |           py27_0         2.4 MB
    certifi-2018.4.16          |           py27_0         142 KB
    wheel-0.31.0               |           py27_0          61 KB
    ------------------------------------------------------------
                                           Total:         3.2 MB

The following NEW packages will be INSTALLED:

    bzip2:           1.0.6-h9a117a8_4              
    ca-certificates: 2018.03.07-0                  
    cairo:           1.14.12-h77bcde2_0            
    certifi:         2018.4.16-py27_0              
    curl:            7.59.0-h84994c4_0             
    fontconfig:      2.12.6-h49f89f6_0             
    freetype:        2.8-hab7d2ae_1                
    glib:            2.53.6-h5d9569c_2             
    graphite2:       1.3.11-hf63cedd_1             
    gsl:             2.4-h1bed415_3                
    harfbuzz:        1.7.6-hc5b324e_0              
    icu:             58.2-h9c2bf20_1               
    jpeg:            9b-h024ee3a_2                 
    krb5:            1.16-h3f6afd0_6               
    libcurl:         7.59.0-h1ad7b7a_0             
    libedit:         3.1.20170329-0     conda-forge
    libffi:          3.2.1-hd88cf55_4              
    libgcc:          7.2.0-h69d50b8_2              
    libgcc-ng:       7.2.0-hdf63c60_3              
    libpng:          1.6.34-hb9fc6fc_0             
    libpq:           10.3-h1ad7b7a_0               
    libssh2:         1.8.0-h9cfc8f7_4              
    libstdcxx-ng:    7.2.0-hdf63c60_3              
    libtiff:         4.0.9-h28f6b97_0              
    libxcb:          1.13-h1bed415_1               
    libxml2:         2.9.8-hf84eae3_0              
    ncurses:         5.9-10                        
    openssl:         1.0.2o-h20670df_0             
    pango:           1.40.11-h8191d47_0            
    pcre:            8.39-1                        
    pip:             9.0.3-py27_0                  
    pixman:          0.34.0-hceecf20_3             
    python:          2.7.14-ha6fc286_23            
    r-base:          3.4.1-3            conda-forge
    r-dbi:           0.6_1-r3.4.1_0                
    r-rpostgresql:   0.6_2-r3.4.1_0     conda-forge
    readline:        7.0-hb321a52_4                
    setuptools:      39.0.1-py27_0                 
    sqlite:          3.23.1-he433501_0             
    tk:              8.6.7-hc745277_3              
    wheel:           0.31.0-py27_0                 
    xz:              5.2.3-h55aa19d_2              
    zlib:            1.2.11-ha838bed_2             

Proceed ([y]/n)? y


Downloading and Extracting Packages
setuptools 39.0.1############################################################ | 100% 
pip 9.0.3#################################################################### | 100% 
certifi 2018.4.16############################################################ | 100% 
wheel 0.31.0################################################################# | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate rpsql2
#
# To deactivate an active environment, use
#
#     $ conda deactivate
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Nov  8 2017, 22:44:41) 
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> abcd^A^A^F

Ctrl-A should take the cursor to the beginning of the line, but instead it prints ^A.

@kadrlica
Copy link
Author

I'll note that using just --channel conda-forge does not have this problem. It's ok to tell me "conda-forge never promised compatibility with defaults", but if there's an easy fix that would be great.

@kadrlica
Copy link
Author

This problem does not occur with r-rpostresql from --channel chenghlee.

@jdblischak
Copy link
Member

It's ok to tell me "conda-forge never promised compatibility with defaults",

You guessed it!

https://conda-forge.org/docs/conda-forge_gotchas.html#using-multiple-channels

but if there's an easy fix that would be great.

Is there a particular reason you want to use python from defaults and r-base from conda-forge? In general if you want to use conda-forge packages, you should prioritize it over the defaults channel. Either in your ~/.condarc file or at the command line, e.g. -c conda-forge -c defaults prioritizes conda-forge.

https://conda-forge.org/docs/conda-forge_gotchas.html#how-to-fix-it

@kadrlica
Copy link
Author

kadrlica commented May 2, 2018

Thanks. There are reasons that I prefer defaults (but perhaps not a particularly good ones). I've got this working with the older version from chenghlee.

@kadrlica kadrlica closed this as completed May 2, 2018
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