Related
There's an error when i tried to install PySimpleGUI package on PyCharm. i already tried install package from setting, and terminal with command "pip instal PySimpleGUI". Both of them have the same error message.
`Traceback (most recent call last):
File "C:\Users\irsya\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\irsya\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\Scripts\pip.exe\__main__.py", line 4, in <module>
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in <module>
from pip._internal.cli import cmdoptions
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 23, in <module>
from pip._internal.cli.parser import ConfigOptionParser
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\cli\parser.py", line 12, in <module>
from pip._internal.configuration import Configuration, ConfigurationError
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\configuration.py", line 20, in <module>
from pip._internal.exceptions import (
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_internal\exceptions.py", line 7, in <module>
from pip._vendor.pkg_resources import Distribution
File "C:\Users\irsya\PycharmProjects\pythonProject\venv\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 22, in <module>
import Python.Bonus.parsers14
ModuleNotFoundError: No module named 'Python'
`
Errro message
Hi new to this so apologies if this has been asked before however I cant see a definitive way of fixing this.
I had installed a tensorflow environment as per the attached guide
https://priyanka-dandale.medium.com/how-to-create-a-tensorflow-environment-in-jupyter-notebook-and-use-it-e3815002c031
Seemed to install ok with no issues.
However when I went to use it cannot connect to the Kernel for some reason?
Error Message
Any assistance or things to try would be appreciated
To access the notebook, open this file in a browser:
file:///C:/Users/michael.burnett/AppData/Roaming/jupyter/runtime/nbserver-29156-open.html
Or copy and paste one of these URLs:
http://localhost:8889/?token=30cf96d443d97f7836bbeb7bf65388624076e1f0a51dc5f2
or http://127.0.0.1:8889/?token=30cf96d443d97f7836bbeb7bf65388624076e1f0a51dc5f2
[I 18:43:02.262 NotebookApp] Creating new notebook in
[I 18:43:05.968 NotebookApp] Kernel started: 7a742942-da07-4046-83cd-fb28cf7a20f2, name: tensorflow-environment
Traceback (most recent call last):
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\connect.py", line 18, in <module>
import jupyter_client
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
import zmq
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
[I 18:43:08.954 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
Traceback (most recent call last):
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\connect.py", line 18, in <module>
import jupyter_client
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
import zmq
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
[I 18:43:11.983 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
Traceback (most recent call last):
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\connect.py", line 18, in <module>
import jupyter_client
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
import zmq
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
[I 18:43:14.996 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
Traceback (most recent call last):
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\connect.py", line 18, in <module>
import jupyter_client
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
import zmq
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
[I 18:43:18.012 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
Traceback (most recent call last):
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel_launcher.py", line 15, in <module>
from ipykernel import kernelapp as app
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\ipykernel\connect.py", line 18, in <module>
import jupyter_client
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
from .connect import *
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
import zmq
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\__init__.py", line 50, in <module>
from zmq import backend
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\michael.burnett\.conda\envs\tensorflow-environment\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed while importing error: The specified module could not be found.
[W 18:43:21.049 NotebookApp] KernelRestarter: restart failed
[W 18:43:21.053 NotebookApp] Kernel 7a742942-da07-4046-83cd-fb28cf7a20f2 died, removing from map.
[W 18:44:05.905 NotebookApp] Timeout waiting for kernel_info reply from 7a742942-da07-4046-83cd-fb28cf7a20f2
[E 18:44:08.631 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 7a742942-da07-4046-83cd-fb28cf7a20f2)
[W 18:44:09.686 NotebookApp] 404 GET /api/kernels/7a742942-da07-4046-83cd-fb28cf7a20f2/channels?session_id=0ce1ed9df95442e4b070a5bd1da4b15c (::1): Kernel does not exist: 7a742942-da07-4046-83cd-fb28cf7a20f2
[W 18:44:09.712 NotebookApp] 404 GET /api/kernels/7a742942-da07-4046-83cd-fb28cf7a20f2/channels?session_id=0ce1ed9df95442e4b070a5bd1da4b15c (::1) 28.970000ms referer=None
[W 18:44:11.732 NotebookApp] Replacing stale connection: 7a742942-da07-4046-83cd-fb28cf7a20f2:0ce1ed9df95442e4b070a5bd1da4b15c
[I 18:45:06.031 NotebookApp] Saving file at /Untitled7.ipynb
I am trying to run 'pip install notebook --upgrade' but I am getting this error. I have tried running as administrator but that does not fix the problem
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\pip.exe\__main__.py", line 4, in <module>
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 23, in <module>
from pip._internal.cli.progress_bars import BAR_TYPES
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\cli\progress_bars.py", line 12, in <module>
from pip._internal.utils.logging import get_indentation
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\utils\logging.py", line 18, in <module>
from pip._internal.utils.misc import ensure_dir
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_internal\utils\misc.py", line 21, in <module>
from pip._vendor import pkg_resources
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3252, in <module>
def _initialize_master_working_set():
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3235, in _call_aside
f(*args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 574, in _build_master
ws = cls()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 567, in __init__
self.add_entry(entry)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 623, in add_entry
for dist in find_distributions(entry, True):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2065, in find_on_path
for dist in factory(fullpath):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2127, in distributions_from_metadata
if len(os.listdir(path)) == 0:
PermissionError: [WinError 5] Access is denied: 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\~etuptools-49.2.1.dist-info'
Try running the cmd as admin. Then, try upgrading the modules. This could also happen when the installation was not done correctly or the module requires a certain version which could occur in 3.9 since it's new.
I have recently updated my Anaconda and Spyder app! But in this new version of Spyder (version 4), when I restart the kernel (with short key and from console in above ribbon), the Restart kernel confirmation window shows up, Then I press the "yes" button but nothing happens.
Can anyone help me with this?
I have the same problem with Spyder 5.2.2 :
Spyder version: 5.2.2 None
Python version: 3.7.9 64-bit
Qt version: 5.12.10
PyQt5 version: 5.12.3
Operating System: Windows 10
When restarting the kernel, I get this:
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.31.1 -- An enhanced Interactive Python.
Restarting kernel...
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
Traceback (most recent call last):
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\fa125436\Miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\__main__.py", line 22, in <module>
from spyder_kernels.console import start
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\spyder_kernels\console\start.py", line 21, in <module>
import ipykernel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\__init__.py", line 2, in <module>
from .connect import *
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\ipykernel\connect.py", line 10, in <module>
import jupyter_client
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\asynchronous\client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\jupyter_client\channels.py", line 12, in <module>
import zmq.asyncio
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\__init__.py", line 125, in <module>
from zmq import backend
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 32, in <module>
raise original_error from None
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\fa125436\Miniconda3\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\fa125436\AppData\Local\Programs\Spyder\pkgs\zmq\backend\cython\__init__.py)
I tried to update pip today to version 20.0.2 from 19.2.3, but the install gave a huge error:
C:\Users\fizzy\Downloads\trivia-master>python -m pip install --upgrade pip
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in <module>
from pip._internal.models.search_scope import SearchScope
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\models\search_scope.py", line 11, in <module>
from pip._internal.utils.misc import normalize_path, redact_password_from_url
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\utils\misc.py", line 21, in <module>
from pip._vendor import pkg_resources
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3242, in <module>
def _initialize_master_working_set():
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3225, in _call_aside
f(*args, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3267, in _initialize_master_working_set
tuple(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3268, in <genexpr>
dist.activate(replace=False)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2776, in activate
declare_namespace(pkg)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2275, in declare_namespace
_handle_ns(packageName, path_item)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2208, in _handle_ns
loader.load_module(packageName)
File "C:\Users\fizzy\Downloads\trivia-master\google.py", line 6, in <module>
from config import API_KEY, CSE_ID
ModuleNotFoundError: No module named 'config'
I ignored this error, thinking the new version happened to just not install, and tried to install LXML but gave this similar error:
C:\Users\fizzy\Downloads\trivia-master>pip install lxml
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\__init__.py", line 40, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\autocompletion.py", line 8, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in <module>
from pip._internal.models.search_scope import SearchScope
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\models\search_scope.py", line 11, in <module>
from pip._internal.utils.misc import normalize_path, redact_password_from_url
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\utils\misc.py", line 21, in <module>
from pip._vendor import pkg_resources
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3242, in <module>
def _initialize_master_working_set():
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3225, in _call_aside
f(*args, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3267, in _initialize_master_working_set
tuple(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3268, in <genexpr>
dist.activate(replace=False)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2776, in activate
declare_namespace(pkg)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2275, in declare_namespace
_handle_ns(packageName, path_item)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2208, in _handle_ns
loader.load_module(packageName)
File "C:\Users\fizzy\Downloads\trivia-master\google.py", line 6, in <module>
from config import API_KEY, CSE_ID
ModuleNotFoundError: No module named 'config'
I can't reinstall pip either as it just gives me the same error when running pip uninstall pip. How do I fix this?