Spyder will not save in Box Drive
See original GitHub issueDescription
What steps will reproduce the problem?
Open file. Save the file in same location path.
Traceback
File "C:\Users\kylel\Anaconda3\envs\py364\lib\site-packages\spyder\plugins\editor\widgets\editor.py", line 2020, in save
self._write_to_file(finfo, finfo.filename)
File "C:\Users\kylel\Anaconda3\envs\py364\lib\site-packages\spyder\plugins\editor\widgets\editor.py", line 1976, in _write_to_file
fileinfo.encoding = encoding.write(txt, filename, fileinfo.encoding)
File "C:\Users\kylel\Anaconda3\envs\py364\lib\site-packages\spyder\utils\encoding.py", line 240, in write
if absolute_path_filename.exists():
File "C:\Users\kylel\Anaconda3\envs\py364\lib\pathlib.py", line 1314, in exists
self.stat()
File "C:\Users\kylel\Anaconda3\envs\py364\lib\pathlib.py", line 1136, in stat
return self._accessor.stat(self)
File "C:\Users\kylel\Anaconda3\envs\py364\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
ValueError: stat: embedded null character in path
Versions
- Spyder version: 4.1.5
- Python version: 3.6.4
- Qt version: 5.12.5
- 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 : 1.6.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.16.1 (OK)
jedi =0.17.1 : 0.17.1 (OK)
nbconvert >=4.0 : 5.6.1 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.7.2 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.2 (OK)
pygments >=2.0 : 2.6.1 (OK)
pylint >=1.0 : 2.6.0 (OK)
pyls >=0.34.0;<1.0.0 : 0.34.1 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.6.0 : 4.7.7 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 : 1.9.4 (OK)
watchdog : None (OK)
zmq >=17 : 19.0.2 (OK)
# Optional:
cython >=0.21 : None (OK)
matplotlib >=2.0.0 : None (OK)
numpy >=1.7 : 1.19.1 (OK)
pandas >=0.13.1 : 1.1.2 (OK)
scipy >=0.17.0 : None (OK)
sympy >=0.7.3 : None (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Files not being saved on exit · Issue #17479 · spyder-ide ...
Open spyder, create a new file, type some random characters in it. Try to close spyder using the window's 'x' icon. Spyder prompts...
Read more >Box Edit Error - Unable to Save: An error occurred while saving
Upon startup of computer, Box Edit attempts to save documents and then user receives Box Edit error message: "Unable to Save: An...
Read more >File permissions issue with python/Spyder/Anaconda after ...
I can't see an issue with the permissions on the file or the directory structure in which the file sits. If I move...
Read more >Frequently Asked Questions — Spyder 5 documentation
If this doesn't work, try restarting PyLS by right-clicking the LSP Python label item in the statusbar at the bottom of Spyder's main...
Read more >Re: Spyder & Control Panel not working - Google Groups
For some reason, I can't get Spyder or the Control Panel to run. What looks like a DOS box comes up for a...
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
Good morning,
So yes the issues is indeed having me trying to save scripts from anaconda environment containing Python 3.6.4 into a Box drive. It will also not save in a new folder within Box drive. I can however save files to my Desktop.
When I switch my environment back to base anaconda (with Python 3.8) the script will save normally and it will save into other Box directories and also Desktop.
Kyle Lesinger Auburn University Graduate Research Assistant Dept. of Crop, Soil, Environmental Sciences kdl0013@auburn.edumailto:kdl0013@auburn.edu
From: Daniel Althviz Moré notifications@github.com Sent: Wednesday, September 9, 2020 11:09 PM To: spyder-ide/spyder spyder@noreply.github.com Cc: Kyle Lesinger kdl0013@auburn.edu; Mention mention@noreply.github.com Subject: Re: [spyder-ide/spyder] Spyder will not save in Box Drive (#13745)
Thanks for the info @kdl0013https://github.com/kdl0013! Any new info in order to reproduce this is greatly appreciated.
@dalthvizhttps://github.com/dalthviz, do you think we could fix this somehow in our side?
@ccordoba12https://github.com/ccordoba12 maybe we could try to capture the error but I’m unsure if there are other alternatives. Also, I think that validation is done to prevent an error when writing the file.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/spyder-ide/spyder/issues/13745#issuecomment-689966680, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQSMB667LCJQO3OMZZUB4E3SFBGNXANCNFSM4RCXPY7Q.
Thanks for the info @kdl0013! Any new info in order to reproduce this is greatly appreciated.
@ccordoba12 maybe we could try to capture the error but I’m unsure if there are other alternatives. Also, I think that validation is done to prevent an error when writing the file.