What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook

Execution environment

Contents of the error

When I tried to open jupyter notebook, I got the following error.

......
NotADirectoryError: [Errno 20] Not a directory: 'xdg-settings'

How to improve

  1. Open the webbrowser.py (which should have the absolute path) included in the error statement.
  2. Look up xdg-settings in webbrowser.py. (Line 534 in my environment)
  3. A little above that (15 lines up in my environment) ʻif sys.platform [: 3] == "win": to ʻelif sys.platform [: 3] ==" win ": Change to.
  4. After saving your changes, run jupyter notebook again to open it! !!

References

Recommended Posts

What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
What to do if a UnicodeDecodeError occurs in pip
What to do when the graph does not appear in jupyter (ipython) notebook
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if pip gives a DistributionError in Homebrew
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if your Jupyter Notebook for beginners asks for a password or token
What to do if you get a minus zero in Python
What to do if there is a decimal in python json .dumps
How to hide warnings that do not affect execution in Jupyter Notebook
What to do if pipreqs results in UnicodeDecodeError
What to do if the latest Jupyter Notebook and nb extensions don't work
What to do when a warning appears around Python integration in Neovim's CheckHealth
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do when "TypeError: data type not understood" appears in python's numpy.zeros
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do when [Errno 2] No such file or directory appears in Python
What to do if a version error occurs in the selenium Chrome driver
What to do if pip install fails in Xcode 5.1
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
What to do if the progress bar is not displayed in tqdm of python
What to do if Python IntelliSense is not displayed in VS Code on Windows
What to do if Python does not switch from the System version in pyenv
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
How to import NoteBook as a module in Jupyter (IPython)
What to do if you get "coverage unknown" in Coveralls
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
OSError: [Errno 40] What to do when Message too long appears
What to do when "Invalid HTTP_HOST header" appears in Django
What to do if you can't log in as root
How to import NoteBook as a module in Jupyter (IPython)
What to do if the image is not displayed using matplotlib etc. in the Docker container
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if yum breaks
What to do if python says "fatal error:'stdio.h' file not found"
What to do if you get a UnicodeDecodeError with pip install
What to do if Insecure Platform Warning appears when running Python
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if you can't use the trash in Lubuntu 18.04.
What to do if grep: empty (sub) expression appears on Mac grep
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if pip --user returns an error in a virtual environment created with pyenv
[Memorandum] What to do when a warning appears after executing pip list
A story about what to do when a bad interpreter: Not such file or directory appears in Anaconda3 and how to investigate the cause.
What to do if you can't use scikit grid search in Python
How to fix a bug that jupyter notebook does not start automatically
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if pyenv install does not proceed with an error
What to do if you get a TypeError with numpy min, max
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
What to do if fprintd requires a password when registering your fingerprint
What to do when the warning "The environment is in consistent ..." appears in the Anaconda environment
What to do if a symbolic link error occurs in import cv while trying to install OpenCV in Python
What happens if you do "import A, B as C" in Python?
What to do when a warning message is displayed in pip list