question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to install pylint when prompted to do so (Permission Denied)

See original GitHub issue

Environment data

VS Code version: 1.181 Python Extension version: 0.8.0 Python Version: 2.7.10 OS and version: macOS 10.13.2

Actual behavior

Opening a .py file prompts to install pylint. Pylint installation fails.

Expected behavior

Pylint installation succeeds.

Steps to reproduce:

  • Open VS Code
  • Open a Python file
  • Click on prompt to install pyline

Logs

/usr/bin/python -m pip install pylint
TARS:~ stewartadam$ /usr/bin/python -m pip install pylint
Collecting pylint
  Using cached pylint-1.7.4-py2.py3-none-any.whl
Requirement already satisfied: six in ./Library/Python/2.7/lib/python/site-packages (from pylint)
Collecting isort>=4.2.5 (from pylint)
  Using cached isort-4.2.15-py2.py3-none-any.whl
Collecting singledispatch; python_version < "3.4" (from pylint)
  Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting mccabe (from pylint)
  Using cached mccabe-0.6.1-py2.py3-none-any.whl
Collecting configparser; python_version == "2.7" (frompylint)
Collecting backports.functools-lru-cache; python_version == "2.7" (from pylint)
  Using cached backports.functools_lru_cache-1.4-py2.py3-none-any.whl
Collecting astroid>=1.5.1 (from pylint)
  Using cached astroid-1.5.3-py2.py3-none-any.whl
Collecting wrapt (from astroid>=1.5.1->pylint)
Requirement already satisfied: enum34>=1.1.3; python_version < "3.4" in ./Library/Python/2.7/lib/python/site-packages (from astroid>=1.5.1->pylint)
Collecting lazy-object-proxy (from astroid>=1.5.1->pylint)
Installing collected packages: isort, singledispatch, mccabe, configparser, backports.functools-lru-cache, wrapt, lazy-object-proxy, astroid, pylint
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/usr/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/isort'
TARS:~ stewartadam$

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MikhailArkhipovcommented, Dec 15, 2017

OK, I can look into this

0reactions
brettcannoncommented, May 10, 2018

@zzj0402 if python3 -m pip install --user pylint fails when run in a terminal then there is an issue with your system and not the extension itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permission denied when installing Pylint on VSCode
Run this command: sudo chown -R $USER /Library/Python/2.7.
Read more >
error: could not install packages due to an oserror: [winerror 5]
This looks like you don't have permissions to write to the directory where pip is trying to install the package. Try: pip install...
Read more >
Frequently Asked Questions - Pylint 2.16.0-dev documentation
If your project contains a configuration file created by an earlier version of Pylint, you can set evaluation to the above expression to...
Read more >
Could not install packages due to an EnvironmentError: [Errno ...
The error "Could not install packages due to an EnvironmentError: [Errno 13] Permission denied" is often caused because the user doesn't have access...
Read more >
[OS Error 5] Access is denied. Installing package with pip
Your browser can 't play this video. ... 100% Solve PermissionError: [OS Error 5] Access is denied. Installing package with pip.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found