I recently made a clean installation for Anaconda 2021.05.
After pip installing JupyterLab extensions and other libraries,
I observe major issues whenever I launch either a
jupyter notebook
jupyter lab
After a few minutes of work, my session crashes with the following message.
Any ideas where to look for debugging?
[I 2021-05-28 09:01:37.987 ServerApp] Saving file at /Untitled.ipynb
[I 2021-05-28 09:03:42.862 ServerApp] Kernel started: 1f6f770d-1093-46c5-897a-e25553d49593
Exception in thread Tornado selector:
Traceback (most recent call last):
File "C:\Softwares\Anaconda3\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Softwares\Anaconda3\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Softwares\Anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 551, in _run_select
rs, ws, xs = select.select(to_read, to_write, to_write)
OSError: [WinError 10038] An operation was attempted on something that is not a socket
Related
I am trying to install geopandas and have therefore downloaded anaconda. However the anaconda prompt gives back an error when I try the command "conda install geopandas" (Installing geopandas with anaconda prompt causes ImportError). I discovered that conda won't install any package, nor will it create new environments. And, as it happens, will not even work for "conda info" (see below error report).
Looking through help suggestions on the internet I added both "C:\Users\Name\anaconda3" and "C:\Users\Name\anaconda3\Scripts" to the PATH System environment variable but it didn't resolve the issue.
Any help would be greatly appreciated.
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 83, in do_call
return getattr(module, func_name)(args, parser)
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\cli\main_info.py", line 316, in execute
info_dict = get_info_dict(args.system)
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\cli\main_info.py", line 164, in get_info_dict
pkgs_dirs=context.pkgs_dirs,
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\base\context.py", line 520, in pkgs_dirs
fixed_dirs += user_data_dir(APP_NAME, APP_NAME),
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\_vendor\appdirs.py", line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
File "C:\Users\Francesco\anaconda3\lib\site-packages\conda\_vendor\appdirs.py", line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: The specified module could not be found.
$ C:\Users\Francesco\anaconda3\Scripts\conda-script.py info
'''
I've experienced pretty much the same problem. I was able to narrow down the issue to pywin32 version 302.
Using version 301 worked for me.
Try: pip install pywin32==301 --force
See https://github.com/mhammond/pywin32/issues/1783
I installed PIP yesterday without knowing that it will affect Jupyter notebook now I have an application launch error whenever I try to open Jupyter notebook. In the past, I installed Jupyter notebook with Anaconda so I use either command or conda prompt to open Jupyter notebook. But now, I cant open Jupyter notebook and I have tried all the methods I know.
Currently, I have Jupyter notebook 5.0.0. If I update the application or uninstall Anaconda will it work?
I am currently stuck and I don't know how to solve this problem, any suggestions please? The error message is below:
Traceback (most recent call last):
File "c:\users\okekec\appdata\local\continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec)
File "c:\users\okekec\appdata\local\continuum\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals)
File "C:\Users\okekec\AppData\Local\Continuum\anaconda3\Scripts\jupyter-notebook.exe\__main__.py", line 5, in File "c:\users\okekec\appdata\local\continuum\anaconda3\lib\site-packages\notebook\__init__.py", line 25, in from .nbextensions import install_nbextension
File "c:\users\okekec\appdata\local\continuum\anaconda3\lib\site-packages\notebook\nbextensions.py", line 27, in from jupyter_core.utils import ensure_dir_exists
ImportError: cannot import name 'ensure_dir_exists'
I'm running High Sierra on my Mac. I have python versions 2.7, 3.6 and 3.7. I have conda environments for each version. I had been using Spyder 3.3.2 a lot and really liked it. Recently however it stopped working. Best I can recall the problems started when I tried upgrading to Spyder 4.0. I've deleted Anaconda and reloaded it to no avail. I've tried it on Python 2.7 and 3.6 and I get the same error messages.
What I've tried: Uninstall and install spyder. I've reloaded pyqt and it loaded with no errors. I deleted and reinstalled Anaconda.
Can anyone tell me what I need to do? The error messages are shown below.
[py36] $ spyder
Traceback (most recent call last):
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/johnny/anaconda3/envs/py36/bin/spyder", line 11, in <module>
sys.exit(main())
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
[johnny:~] [py36] 2s 1 $
I found a solution, more of a workaround I suppose. I completely deleted my anaconda3 directory and returned to the Anaconda home page and reinstalled anaconda3. Now Spyder runs fine.
I have went through and installed CUDA, cuDNN, an followed the instructions to the best of my ability. I have added the environment variables I believe I need, but I still seem to have problems.
I have come as far as testing to see if tensorflow has been installed correctly. When pull up a command prompt, type python to use the shell, I type import tensorflow as tf.
I then get this stack trace, something I cannot make sense of to solve the problem myself. This is where I need the communities help:
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\self_check.py", line 75, in preload_check
ctypes.WinDLL(build_info.cudart_dll_name)
File"C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in <module>
self_check.preload_check()
File "C:\Users\Troy\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\self_check.py", line 82, in preload_check
% (build_info.cudart_dll_name, build_info.cuda_version_number))
ImportError: Could not find 'cudart64_90.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 9.0 from this URL: https://developer.nvidia.com/cuda-toolkit
Please try installing CUDA 9.0. the problem should be with the CUDA 9.1 version. You can download the driver from the following link : CUDA Toolkit 9.0
To uninstall CUDA:
Please run the following commands :
sudo apt-get --purge remove cuda
sudo apt autoremove
These commands should be able to uninstall cuda from your system.
If you have the cuDNN configured to work with GPU:
You can remove them just my deleting the files in the directories that you have copied to, during its setup.
I receive an Application launch error whenever I launch Jupyter notebook. I tried to follow the instructions in the last line of the error but the error never goes away. Could it be something with the working directory?
When I check the working directory in Jupyter notebook using %pwd, I get C:\Users\mayerk
However, my Anaconda working directory is C:\Users\mayerk\AppData\Local\Continuum\anaconda3
This is the error that Anaconda Navigator returns each time I launch Jupyter Notebook:
[I 09:30:37.269 NotebookApp] The port 8888 is already in use, trying another port.
[I 09:30:37.269 NotebookApp] The port 8889 is already in use, trying another port.
[I 09:30:37.270 NotebookApp] The port 8890 is already in use, trying another port.
[I 09:30:37.324 NotebookApp] JupyterLab beta preview extension loaded from C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab
[I 09:30:37.324 NotebookApp] JupyterLab application directory is C:\Users\mayerk\AppData\Local\Continuum\anaconda3\share\jupyter\lab
[W 09:30:37.334 NotebookApp] Error loading server extension jupyterlab
Traceback (most recent call last):
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 321, in __init__
self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 1165, in _run
proc = Process(cmd, **kwargs)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\process.py", line 73, in __init__
self.proc = self._create_process(cwd=cwd, env=env)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\process.py", line 131, in _create_process
cmd[0] = which(cmd[0], kwargs.get('env'))
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\jlpmapp.py", line 59, in which
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\notebookapp.py", line 1454, in init_server_extensions
func(self)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\extension.py", line 111, in load_jupyter_server_extension
info = get_app_info(app_dir)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 244, in get_app_info
handler = _AppHandler(app_dir, logger)
File "C:\Users\mayerk\AppData\Local\Continuum\anaconda3\lib\site-packages\jupyterlab\commands.py", line 324, in __init__
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
[I 09:30:37.410 NotebookApp] Serving notebooks from local directory: C:\Users\mayerk
[I 09:30:37.410 NotebookApp] 0 active kernels
[I 09:30:37.411 NotebookApp] The Jupyter Notebook is running at:
[I 09:30:37.411 NotebookApp] http://localhost:8891/?token=fe440f0ea50e716458013d568b6f94f4a1c498959e39e490
[I 09:30:37.411 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:30:37.420 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8891/?token=fe440f0ea50e716458013d568b6f94f4a1c498959e39e490
[I 09:30:37.557 NotebookApp] Accepting one-time-token-authenticated connection from ::1
ValueError: Please install nodejs 5+ and npm before continuing
installation. nodejs may be installed using conda or directly from the
nodejs website.
Try: conda install -y nodejs