Opening file from SSHFS-mapped linux drive possible errors and delays executing it through `Run selection or current line (F9)`
See original GitHub issueDescription
What steps will reproduce the problem?
Try to open a file from an SSHFS-mapped linux drive.
I figured out a quick-and-dirty fix: on line 647
of ntpath.py
I’ve added
import psutil
if [i for i in psutil.disk_partitions() if i.device[0]==path[0].upper()][0].fstype == 'FUSE':
return path
But perhaps there are some nicer ways to deal with this 😃
Traceback
Traceback (most recent call last):
File "c:\users\user\miniconda3\lib\ntpath.py", line 647, in realpath
path = _getfinalpathname(path)
OSError: [WinError 1005] The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'E:\\repo\\algoUtils.py'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\user\miniconda3\lib\site-packages\spyder\plugins\editor\plugin.py", line 2187, in load
current_editor = self.set_current_filename(filename,
File "c:\users\user\miniconda3\lib\site-packages\spyder\plugins\editor\plugin.py", line 1721, in set_current_filename
return editorstack.set_current_filename(filename, focus)
File "c:\users\user\miniconda3\lib\site-packages\spyder\plugins\editor\widgets\editor.py", line 1512, in set_current_filename
index = self.has_filename(filename)
File "c:\users\user\miniconda3\lib\site-packages\spyder\plugins\editor\widgets\editor.py", line 1501, in has_filename
if fixpath(filename) == fixpath(finfo.filename):
File "c:\users\user\miniconda3\lib\site-packages\spyder\plugins\editor\widgets\editor.py", line 1499, in <lambda>
fixpath = lambda path: osp.normcase(osp.realpath(path))
File "c:\users\user\miniconda3\lib\ntpath.py", line 651, in realpath
path = _getfinalpathname_nonstrict(path)
File "c:\users\user\miniconda3\lib\ntpath.py", line 601, in _getfinalpathname_nonstrict
path = _getfinalpathname(path)
OSError: [WinError 1005] The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the volume is not corrupted: 'E:\\repo\\algoUtils.py'
Versions
- Spyder version: 5.1.5
- Python version: 3.9.5
- Qt version: 5.12.10
- PyQt5 version: 5.12.3
- Operating System: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 2.0.0 (OK)
cookiecutter >=1.6.0 : 1.7.3 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree >=3.0.2 : 3.1.0 (OK)
IPython >=7.6.0 : 7.28.0 (OK)
jedi >=0.17.2;<0.19.0 : 0.18.0 (OK)
jsonschema >=3.2.0 : 4.1.0 (OK)
keyring >=17.0.0 : 23.2.1 (OK)
nbconvert >=4.0 : 6.2.0 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.9.1 (OK)
parso >=0.7.0;<0.9.0 : 0.8.2 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.8.0 (OK)
pygments >=2.0 : 2.10.0 (OK)
pylint >=2.5.0;<2.10.0 : 2.9.6 (OK)
pyls_spyder >=0.4.0 : 0.4.0 (OK)
pylsp >=1.2.2;<1.3.0 : 1.2.4 (OK)
pylsp_black >=1.0.0 : None (OK)
qdarkstyle =3.0.2 : 3.0.2 (OK)
qstylizer >=0.1.10 : 0.2.1 (OK)
qtawesome >=1.0.2 : 1.0.3 (OK)
qtconsole >=5.1.0 : 5.1.1 (OK)
qtpy >=1.5.0 : 1.11.2 (OK)
rtree >=0.9.7 : 0.9.7 (OK)
setuptools >=49.6.0 : 52.0.0.post20210125 (OK)
sphinx >=0.6.6 : 4.2.0 (OK)
spyder_kernels >=2.1.1;<2.2.0 : 2.1.3 (OK)
textdistance >=4.2.0 : 4.2.1 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3 : 2.1.6 (OK)
zmq >=17 : 22.3.0 (OK)
# Optional:
cython >=0.21 : None (OK)
matplotlib >=2.0.0 : 3.4.3 (OK)
numpy >=1.7 : 1.20.3 (OK)
pandas >=1.1.1 : 1.4.2 (OK)
scipy >=0.17.0 : 1.7.1 (OK)
sympy >=0.7.3 : 1.9 (OK)
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How To Use SSHFS to Mount Remote File Systems Over SSH
If you no longer need this mount, you can unmount it with the umount command: sudo umount /mnt/droplet.
Read more >SSHFS: Mounting a remote file system over SSH - Red Hat
The sshfs command is a client tool for using SSHFS to mount a remote file ... First, create (or select an existing) directory...
Read more >MobaXterm Xserver with SSH, telnet, RDP, VNC and X11
Free X server for Windows with tabbed SSH terminal, telnet, RDP, VNC and X11-forwarding - Home Edition.
Read more >SSHFS remote directory mounting syntax - windows 10
In my Windows 10 mounting home directory of remote ssh server worked in user's powershell using command net use S: \\sshfs\user@host\.
Read more >SyncServer S6x0 v4.0 User Guide - Microsemi
1.1.1. SyncServer S600. Modern networks require accurate, secure and reliable time services as provided by the Microchip SyncServer™.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @gabiteodoru. thanks for reporting. I don’t understand why this happens but we’ll try to fix it in our next version (5.3.1), to be released in mid May.
@dalthviz, could you take a look at this one? Thanks!
Closing due to lack of response.