Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot use Python Refactor: Sort Imports when on Remote: SSH #7059

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

Closed
juliussimonelli opened this issue Aug 22, 2019 · 2 comments
Closed

Cannot use Python Refactor: Sort Imports when on Remote: SSH #7059

juliussimonelli opened this issue Aug 22, 2019 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@juliussimonelli
Copy link

Issue Type: Bug

When I try to use the Python Refactor: Sort Imports feature in the Python package while on a Remote: SSH session, I get the following error:

Traceback (most recent call last): File "/root/.vscode-server/extensions/ms-python.python-2019.8.30787/pythonFiles/sortImports.py", line 11, in <module> import isort.main File "/root/.vscode-server/extensions/ms-python.python-2019.8.30787/pythonFiles/lib/python/isort/__init__.py", line 26, in <module> from .isort import SortImports # noqa: F401 File "/root/.vscode-server/extensions/ms-python.python-2019.8.30787/pythonFiles/lib/python/isort/isort.py", line 41, in <module> from .finders import FindersManager File "/root/.vscode-server/extensions/ms-python.python-2019.8.30787/pythonFiles/lib/python/isort/finders.py", line 35, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache

I don't have any issues when I use it outside of a Remote: SSH session.

Extension version: 0.45.5
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:16:34.800Z)
OS version: Darwin x64 18.7.0
Remote OS version: Linux x64 3.10.0-693.2.2.el7.x86_64

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz (8 x 2700)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (0.11GB free)
Process Argv -psn_0_6235634
Screen Reader no
VM 0%
Item Value
Remote SSH: localhost
OS Linux x64 3.10.0-693.2.2.el7.x86_64
CPUs Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz (4 x 2118)
Memory (System) 59.81GB (56.03GB free)
VM 0%
@juliussimonelli juliussimonelli added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Aug 22, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Aug 22, 2019
@karrtikr
Copy link

karrtikr commented Aug 26, 2019

Unfortunately I am not able to reproduce this. Are you using the matplotlib module?
Please check this, which tries to install the functools_lru_cache module. Try reinstalling it for your remote machine.

There seems to a flaky issue in matplotlib, matplotlib/matplotlib#9344. Also check this if it doesn't solve the issue.

Let me know how it goes.

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Aug 26, 2019
@juliussimonelli
Copy link
Author

I tried the SO solution that you provided but it didn't work. I'm not using matplotlib but pip installing "backports-functools_lru_cache" like they suggest worked (and I'm on Mac OSX). Thanks!

@ghost ghost removed the triage label Aug 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants