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

Pylint dependencies are insufficient #79

Open
rogalski opened this issue Feb 5, 2017 · 1 comment
Open

Pylint dependencies are insufficient #79

rogalski opened this issue Feb 5, 2017 · 1 comment
Assignees

Comments

@rogalski
Copy link

rogalski commented Feb 5, 2017

Consider subsection from output of conda info pylint:

pylint 1.6.4 py27_1
-------------------
file name   : pylint-1.6.4-py27_1.tar.bz2
name        : pylint
version     : 1.6.4
build string: py27_1
build number: 1
channel     : defaults
size        : 316 KB
arch        : x86_64
date        : 2017-01-26
license     : GPL
license_family: GPL2
md5         : 0f1473fd07f18289f4008b8f58167e34
noarch      : None
platform    : darwin
url         : https://repo.continuum.io/pkgs/free/osx-64/pylint-1.6.4-py27_1.tar.bz2
dependencies:
    astroid >=1.4.1,<1.5.0
    isort >=4.2.5
    python 2.7*
    six

Actually, Pylint requires additional backports to work correctly.

extras_require = {}
extras_require[':sys_platform=="win32"'] = ['colorama']
extras_require[':python_version=="2.7"'] = ['configparser', 'backports.functools_lru_cache']

Same issue will arise in next release with singledispatch backport

Current conda install:

               platform : osx-64
          conda version : 4.3.9
       conda is private : False
      conda-env version : 4.3.9
    conda-build version : not installed
         python version : 2.7.13.final.0
       requests version : 2.12.4
       root environment : /Users/rogalski/anaconda  (writable)
    default environment : /Users/rogalski/anaconda
       envs directories : /Users/rogalski/anaconda/envs
          package cache : /Users/rogalski/anaconda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/rogalski/.condarc
           offline mode : False
             user-agent : conda/4.3.9 requests/2.12.4 CPython/2.7.13 Darwin/16.4.0 OSX/10.12.3
                UID:GID : 501:20

See pylint-dev/pylint#1296 for additional insight.

@fredwheeler
Copy link

A work-around for missing backports.functools_lru_cache is to install it from the conda-forge-channel.

conda install --channel conda-forge backports.functools_lru_cache

For me this install resolved the following error. pylint now seems to work fine in python 2.

Problem importing module variables.py: No module named functools_lru_cache
Problem importing module variables.pyc: No module named functools_lru_cache

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

3 participants