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

OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect #5061

Closed
simonm3 opened this issue Nov 17, 2019 · 1 comment

Comments

@simonm3
Copy link

simonm3 commented Nov 17, 2019

I suddenly get this error and can no longer start jupyter notebook. I can start jupyter console. I have tried logging out and back in; uninstalled and reinstalled jupyter. Same error. I don't get why it is looking at the folders at the bottom. They are not in my config files. Is there some somewhere else a corrupt file? But where?

Full trace:

$ jupyter notebook
Traceback (most recent call last):
File "C:\Users\simon\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\simon\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in
from .services.contents.manager import ContentsManager
File "C:\Users\simon\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in
from nbformat import sign, validate as validate_nb, ValidationError
File "C:\Users\simon\Anaconda3\lib\site-packages\nbformat_init_.py", line 33, in
from .validator import validate, ValidationError
File "C:\Users\simon\Anaconda3\lib\site-packages\nbformat\validator.py", line 12, in
from jsonschema import ValidationError
File "C:\Users\simon\Anaconda3\lib\site-packages\jsonschema_init_.py", line 31, in
import importlib_metadata
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 547, in
version = version(name)
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 509, in version
return distribution(distribution_name).version
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 482, in distribution
return Distribution.from_name(distribution_name)
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 183, in from_name
dist = next(dists, None)
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 425, in
for path in map(cls.switch_path, paths)
File "C:\Users\simon\Anaconda3\lib\site-packages\importlib_metadata_init
.py", line 449, in _search_path
if not root.is_dir():
File "C:\Users\simon\Anaconda3\lib\pathlib.py", line 1351, in is_dir
return S_ISDIR(self.stat().st_mode)
File "C:\Users\simon\Anaconda3\lib\pathlib.py", line 1161, in stat
return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\simon\Documents\py\live\pipemaker\ c:\users\simon\documents\py\live\renewable'

@simonm3
Copy link
Author

simonm3 commented Nov 18, 2019

The issue is something to do with a corrupt pythonpath. The solution was to remove the folder on the last line from the pythonpath and then add it again. Note that it looks correct in windows control panel and was working previously so no idea how it became corrupted.

@simonm3 simonm3 closed this as completed Nov 18, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant