ImportError about Numpy when using Manim - python

I want to try Manim.
So I installed (using pip) and created a project with the Quickstart tutorial.
RuntimeError, ImportError
But when running it, a bunch of errors show up:
RuntimeError: module compiled against API version 0xf but this version of NumPy is 0xe
Traceback (most recent call last):
File "C:\Users\mitja\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\mitja\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\Scripts\manim.exe\__main__.py", line 4, in <module>
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\manim\__init__.py", line 24, in <module>
from .animation.animation import *
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\manim\animation\animation.py", line 6, in <module>
from manim.mobject.opengl.opengl_mobject import OpenGLMobject
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\manim\mobject\opengl\opengl_mobject.py", line 17, in <module>
from manim.utils.bezier import integer_interpolate, interpolate
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\manim\utils\bezier.py", line 28, in <module>
from scipy import linalg
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\scipy\__init__.py", line 217, in __getattr__
return _importlib.import_module(f'scipy.{name}')
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\scipy\linalg\__init__.py", line 197, in <module>
from ._misc import *
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\scipy\linalg\_misc.py", line 3, in <module>
from .blas import get_blas_funcs
File "C:\Users\mitja\AppData\Local\Programs\Python\Python310\lib\site-packages\scipy\linalg\blas.py", line 213, in <module>
from scipy.linalg import _fblas
ImportError: numpy.core.multiarray failed to import
I've already tried reinstalling/upgrading the newest version.
How do I solve this and get it running?

Related

Error while install PySimpleGUI import ModuleNotFoundError: No module named 'Python'

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

I'm trying to run a Python SDK and am getting errors from runpy.py. How to fix it?

(base) kiin#kiin ~ % python3 -m anki_vector.configure
Traceback (most recent call last):
File "/Users/kiin/opt/anaconda3/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/Users/kiin/opt/anaconda3/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/Users/kiin/.local/lib/python3.9/site-packages/anki_vector/__init__.py", line 22, in <module>
from . import messaging
File "/Users/kiin/.local/lib/python3.9/site-packages/anki_vector/messaging/__init__.py", line 43, in <module>
from . import client
File "/Users/kiin/.local/lib/python3.9/site-packages/anki_vector/messaging/client.py", line 23, in <module>
from .alexa_pb2_grpc import *
File "/Users/kiin/.local/lib/python3.9/site-packages/anki_vector/messaging/alexa_pb2_grpc.py", line 2, in <module>
import grpc
File "/Users/kiin/.local/lib/python3.9/site-packages/grpc/__init__.py", line 22, in <module>
from grpc import _compression
File "/Users/kiin/.local/lib/python3.9/site-packages/grpc/_compression.py", line 15, in <module>
from grpc._cython import cygrpc
ImportError: dlopen(/Users/kiin/.local/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_CFRelease)
I've tried uninstalling and reinstalling the SDK, as well as downgrade to Python 3.8. Same errors for both.

AttributeError: module 'typing_extensions' has no attribute 'Protocol'

I am trying to run the following code: https://github.com/silviazuffi/smalst. However, I am using Python 3 instead of Python 2 because it does not seem to be possible to use Python 2 anymore with new CUDA drivers and due to the compatibility issues of some libraries used by that repo.
However, I am getting this error:
AttributeError: module 'typing_extensions' has no attribute 'Protocol'
Full traceback:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/iegorval/Diploma/smalst/smal_eval.py", line 21, in <module>
from .nnutils import smal_predictor as pred_util
File "/home/iegorval/Diploma/smalst/nnutils/smal_predictor.py", line 22, in <module>
from ..nnutils.nmr import NeuralRenderer
File "/home/iegorval/Diploma/smalst/nnutils/nmr.py", line 9, in <module>
import chainer
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/__init__.py", line 10, in <module>
from chainer import backends # NOQA
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/backends/__init__.py", line 1, in <module>
from chainer.backends import cuda # NOQA
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/backends/cuda.py", line 46, in <module>
from chainer.backends import intel64
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/backends/intel64.py", line 8, in <module>
from chainer.configuration import config
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/configuration.py", line 5, in <module>
from chainer import types # NOQA
File "/home/iegorval/Diploma/smalst/venv_smallst/lib/python3.8/site-packages/chainer/types.py", line 47, in <module>
class AbstractInitializer(tpe.Protocol):
AttributeError: module 'typing_extensions' has no attribute 'Protocol'
So, it fails to detect Protocol in the typing_extensions module. However, I have installed typing-extensions==3.7.4.3 (https://pypi.org/project/typing-extensions/), and PyPi description seem to state that Protocol should be there.
Any idea how to fix this error?

Kernel Restart (Ctrl+.) in spyder not working

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)

ImportError: DLL load failed while importing _ssl: %1 is not a valid Win32 application

E:\WORK\python\Flask>virtualenv enb
Traceback (most recent call last):
File "c:\users\user\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\user\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts\virtualenv.exe\__main__.py", line 4, in <module>
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\run\__init__.py", line 9, in <module>
from ..seed.wheels.periodic_update import manual_upgrade
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\wheels\__init__.py", line 3, in <module>
from .acquire import get_wheel, pip_wheel_env_run
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\wheels\acquire.py", line 15, in <module>
from .bundle import from_bundle
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\wheels\bundle.py", line 6, in <module>
from .periodic_update import periodic_update
File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\virtualenv\seed\wheels\periodic_update.py", line 10, in <module>
import ssl
File "c:\users\user\appdata\local\programs\python\python38-32\lib\ssl.py", line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: %1 is not a valid Win32 application.
E:\WORK\python\Flask>
how can I solve this ?

Categories