Jupyter notebook, anaconda not launching after python upgrade - jupyter-notebook

Error while launching jupyter notebook from terminal
Traceback (most recent call last):
File "/Users/mukhtadirsyed/opt/anaconda3/bin/jupyter-notebook", line 5, in <module>
from notebook.notebookapp import main
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/notebook/notebookapp.py", line 79, in <module>
from .services.contents.manager import ContentsManager
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/notebook/services/contents/manager.py", line 17, in <module>
from nbformat import sign, validate as validate_nb, ValidationError
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/nbformat/__init__.py", line 32, in <module>
from .validator import validate, ValidationError
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/nbformat/validator.py", line 12, in <module>
from .json_compat import get_current_validator, ValidationError
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/nbformat/json_compat.py", line 10, in <module>
import jsonschema
File "/Users/mukhtadirsyed/opt/anaconda3/lib/python3.9/site-packages/jsonschema/__init__.py", line 22, in <module>
from jsonschema.protocols import Validator
ModuleNotFoundError: No module named 'jsonschema.protocols'
My python version is 3.9.7
tried to install anaconda again but that failed too

Related

I am unable to open jupitor notebook

Traceback (most recent call last):
File "C:\Users\azees\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\azees\anaconda3\lib\site-packages\notebook\notebookapp.py", line 43, in
from jinja2 import Environment, FileSystemLoader
File "C:\Users\azees\anaconda3\lib\site-packages\jinja2_init_.py", line 12, in
from .environment import Environment
File "C:\Users\azees\anaconda3\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Users\azees\anaconda3\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Users\azees\anaconda3\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\azees\anaconda3\lib\site-packages\markupsafe_init_.py)
actually for my project i am trying to import tensorflow library ..i imported tf using comand prompt then onwards i am getting errors... even jupitornotebook is not opening

unable to start ride.py

i am very new in this topic. i want to learn more about automation. so i came across the robotframework during my search. the installation of the robotframework worked but when i want to start "ride.py" it gives me this output. am i right that the command "ride.py" should open an IDE where i can start scripting? But i just get this output. Can ya please help me what i did wrong.
i use the OS Ubuntu on a VM
w#w-Virtual-Machine:~$ ride.py
Traceback (most recent call last):
File "/home/w/.local/bin/ride.py", line 21, in <module>
from robotide import main
File "/home/w/.local/lib/python3.10/site-packages/robotide/__init__.py", line 59, in <module>
from robotide.utils import PY2, PY3
File "/home/w/.local/lib/python3.10/site-packages/robotide/utils/__init__.py", line 21, in <module>
import robotide.lib.robot.utils
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/__init__.py", line 44, in <module>
from robotide.lib.robot.rebot import rebot, rebot_cli
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/rebot.py", line 40, in <module>
from robotide.lib.robot.conf import RebotSettings
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/conf/__init__.py", line 27, in <module>
from .settings import RobotSettings, RebotSettings
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/conf/settings.py", line 22, in <module>
from robotide.lib.robot.output import LOGGER, loggerhelper
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/output/__init__.py", line 22, in <module>
from .output import Output
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/output/output.py", line 16, in <module>
from . import pyloggingconf
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/output/pyloggingconf.py", line 19, in <module>
from robotide.lib.robot.utils import get_error_details, unic
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/utils/__init__.py", line 36, in <module>
from .argumentparser import ArgumentParser, cmdline2list
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/utils/argumentparser.py", line 28, in <module>
from .misc import plural_or_not
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/utils/misc.py", line 21, in <module>
from .robottypes import is_integer
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/utils/robottypes.py", line 25, in <module>
from .robottypes3 import (is_bytes, is_dict_like, is_integer, is_list_like,
File "/home/w/.local/lib/python3.10/site-packages/robotide/lib/robot/utils/robottypes3.py", line 16, in <module>
from collections import Mapping, UserString
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
You don't mention how you installed RIDE, and I am even surprised it was installed if from PyPi.
Only on today's date (24-june-2022), a development version was updated to run on Python 3.10 (maybe). You can try to install, this one, but be aware of its new bugs.
I can install with:
pip install -U https://github.com/robotframework/RIDE/archive/master.zip
You should browse the RIDE project page here, and look at README, CHANGELOG and Issues. Also see the Slack and Forum links.

Getting an error while opening jupyter Notebook in Ubuntu

Traceback (most recent call last):
File "/home/mohit/anaconda3/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/home/mohit/anaconda3/lib/python3.8/site-packages/notebook/notebookapp.py", line 83, in
from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
File "/home/mohit/anaconda3/lib/python3.8/site-packages/notebook/services/kernels/kernelmanager.py", line 18, in
from jupyter_client.session import Session
File "/home/mohit/anaconda3/lib/python3.8/site-packages/jupyter_client/session.py", line 41, in
from jupyter_client.jsonutil import extract_dates, squash_dates, date_default
File "/home/mohit/anaconda3/lib/python3.8/site-packages/jupyter_client/jsonutil.py", line 10, in
from dateutil.parser import parse as _dateutil_parse
File "/home/mohit/anaconda3/lib/python3.8/site-packages/dateutil/parser.py", line 158
l.append("%s=%s" % (attr, `value`))
^
SyntaxError: invalid syntax
pip install python-dateutil --upgrade will solve your problem

jupyter won't run at all after installing nbextensions

After trying to install nbextensions jupyter won't run at all now. I get the following message:
File "/Users/briantaylor/anaconda/bin/jupyter-notebook", line 7, in <module>
from notebook.notebookapp import main
File "/Users/briantaylor/anaconda/lib/python3.5/site-packages/notebook/__init__.py", line 25, in <module>
from .nbextensions import install_nbextension
File "/Users/briantaylor/anaconda/lib/python3.5/site-packages/notebook/nbextensions.py", line 27, in <module>
from jupyter_core.utils import ensure_dir_exists
ImportError: cannot import name 'ensure_dir_exists'

Problem when importing distributed on Ubuntu 18.04

I am trying to import distributed version 1.22.0 installed with pip3.
However, I get this error :
>>> import distributed
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/distributed/__init__.py", line 5, in <module>
from .core import connect, rpc
File "/usr/local/lib/python3.6/dist-packages/distributed/core.py", line 25, in <module>
from .system_monitor import SystemMonitor
File "/usr/local/lib/python3.6/dist-packages/distributed/system_monitor.py", line 4, in <module>
import psutil
File "/home/users/ej/.local/lib/python3.6/site-packages/psutil/__init__.py", line 100, in <module>
from . import _pslinux as _psplatform
File "/home/users/ej/.local/lib/python3.6/site-packages/psutil/_pslinux.py", line 26, in <module>
from . import _psutil_linux as cext
ImportError: /home/users/ej/.local/lib/python3.6/site-packages/psutil/_psutil_linux.cpython-36m-x86_64-linux-gnu.so: failed to map segment from shared object
>>>
I have dask version 0.18.1 installed with pip3.
I work on Ubuntu 18.04 with python3.
I tried reinstall and install but no solution.
Could you help me please ?
Thanks in advance.

Resources