Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zmq: Can not launch jupyter notebook #3435

Closed
Yumin-Sun-00 opened this issue Mar 16, 2018 · 51 comments
Closed

zmq: Can not launch jupyter notebook #3435

Yumin-Sun-00 opened this issue Mar 16, 2018 · 51 comments

Comments

@Yumin-Sun-00
Copy link

Yumin-Sun-00 commented Mar 16, 2018

Hi,

conda activate base
jupyter notebook

Gives me this message:

Traceback (most recent call last):
  File "/home/ics_vr/anaconda3/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/home/ics_vr/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 44, in <module>
    from zmq.eventloop import ioloop
  File "/usr/local/lib/python3.5/dist-packages/zmq/__init__.py", line 47, in <module>
    from zmq import backend
  File "/usr/local/lib/python3.5/dist-packages/zmq/backend/__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "/usr/local/lib/python3.5/dist-packages/zmq/utils/sixcerpt.py", line 34, in reraise
    raise value
  File "/usr/local/lib/python3.5/dist-packages/zmq/backend/__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "/usr/local/lib/python3.5/dist-packages/zmq/backend/select.py", line 26, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "/usr/local/lib/python3.5/dist-packages/zmq/backend/cython/__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: cannot import name 'constants'

I did pip install pyzmq --install-option="--zmq=bundled", but not works.
I did conda install -c anaconda pyzmq, also not works.

@takluyver
Copy link
Member

Unless @minrk knows better, it looks like your installed package has got corrupted (possibly by mixing conda and pip usage). If so, probably the easiest thing is to remove and reinstall Anaconda.

@takluyver takluyver added this to the Reference milestone Mar 28, 2018
@Yumin-Sun-00
Copy link
Author

Yumin-Sun-00 commented Mar 28, 2018

Yeah, right now I could only start jupyter under the virtual environment installed with anaconda full meta package. Base and global is not able to use jupyter.

By the way, I think conda mix a lot of things.

Like if I install opencv globally and then install a different version in virtual environment, my opencv global will gives me segmentation fault, but it could be used in Base. Further, under the virtual env with diff. opencv, although everything installed, I mean you could fins cv2.so, and libopencv, but you have to cd the PATH to that python site packages, otherwise you are still using Base version opencv. The conda totally not easy my installation, just bring a lot of mess to my my setup work.

Could I ask you update your documentation with more detail instructions for using conda, if the conda mix so many things together.

@harsh23tyagi
Copy link

harsh23tyagi commented Jun 19, 2018

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

@info85
Copy link

info85 commented Dec 16, 2018

I have the same issue, I am no able to launch Jupyter notebook. It errors out.
I tried a) pip uninstall pyzmq - it errors with access denied.
I am new and I am afraid, I am in trouble please help. I may have to manually uninstall everything and then reinstall.

C:\ProgramData\Anaconda3\Scripts>pip uninstall pyzmq
Uninstalling pyzmq-17.1.2:
Would remove:
c:\programdata\anaconda3\lib\site-packages\pyzmq-17.1.2-py3.7.egg-info
c:\programdata\anaconda3\lib\site-packages\zmq*
Would not remove (might be manually added):
c:\programdata\anaconda3\lib\site-packages\zmq\backend\cffi_pycache__cffi_ext.c
Proceed (y/n)? y
Exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 557, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] Access is denied: 'c:\programdata\anaconda3\lib\site-packages\pyzmq-17.1.2-py3.7.egg-info' -> 'C:\Users\Rajan\AppData\Local\Temp\pip-uninstall-n9lr8nr4\programdata\anaconda3\lib\site-packages\pyzmq-17.1.2-py3.7.egg-info'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\pip_internal\basecommand.py", line 228, in main
status = self.run(options, args)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip_internal\commands\uninstall.py", line 68, in run
auto_confirm=options.yes, verbose=self.verbosity > 0,
File "C:\ProgramData\Anaconda3\lib\site-packages\pip_internal\req\req_install.py", line 661, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip_internal\req\req_uninstall.py", line 219, in remove
renames(path, new_path)
File "C:\ProgramData\Anaconda3\lib\site-packages\pip_internal\utils\misc.py", line 273, in renames
shutil.move(old, new)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 569, in move
rmtree(src)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 507, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 391, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\ProgramData\Anaconda3\lib\shutil.py", line 389, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'c:\programdata\anaconda3\lib\site-packages\pyzmq-17.1.2-py3.7.egg-info\dependency_links.txt'

C:\ProgramData\Anaconda3\Scripts>pip install pyzmq
Requirement already satisfied: pyzmq in c:\programdata\anaconda3\lib\site-packages (17.1.2)
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\ProgramData\Anaconda3\Scripts>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\python27\lib\site-packages (18.1)

@BerryConcept
Copy link

      Hey , use the following:

pip uninstall pyzmq
pip install pyzmq
The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This helped me solve the problem! Many thanks!

@AdamTarnawski
Copy link

I have the same issue, I am no able to launch Jupyter notebook. It errors out.
I tried a) pip uninstall pyzmq - it errors with access denied.
I am new and I am afraid, I am in trouble please help. I may have to manually uninstall everything and then reinstall.

C:\ProgramData\Anaconda3\Scripts>pip uninstall pyzmq

You should be using Anaconda prompt, which is installed by default with Anaconda. And the command should be here:
conda uninstall pyzmq and then conda install pyzmq.

It worked for me. When I installed Jupyter Notebooks to a new environment in Anaconda, it updated some other packages. I needed to uninstall pyzmq from Anaconda and reinstall it. The packages were downgraded and now it works fine.

@MikeB2012
Copy link

MikeB2012 commented Feb 12, 2019

I have installed Anaconda on an SSD drive. Launching Anaconda Navigator and then VSCode or Spyder was fine. Jupyter Notebook wouldn't launch and gave the same error as the OP.
Using 'conda uninstall pyzmq' uninstalled pyzmq and everything else in Navigator except VS Code. That was not expected. I then opened Anaconda Navigator and reinstalled Jupyter Notebook and got the same error as before. ie.

Traceback (most recent call last):
File "D:\Dev\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main
File "D:\Dev\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 83, in 
from .services.contents.manager import ContentsManager
File "D:\Dev\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in 
from nbformat import sign, validate as validate_nb, ValidationError
ImportError: cannot import name 'sign' from 'nbformat' (unknown location)

Reinstalling and launching Jupyter Lab gave:

Traceback (most recent call last):
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\server.py", line 20, in 
from notebook.notebookapp import aliases, flags, NotebookApp as ServerApp
File "D:\Dev\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 83, in 
from .services.contents.manager import ContentsManager
File "D:\Dev\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in 
from nbformat import sign, validate as validate_nb, ValidationError
ImportError: cannot import name 'sign' from 'nbformat' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Dev\Anaconda3\Scripts\jupyter-lab-script.py", line 6, in 
from jupyterlab.labapp import main
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab\labapp.py", line 12, in 
from jupyterlab_server import slugify, WORKSPACE_EXTENSION
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\__init__.py", line 4, in 
from .app import LabServerApp
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\app.py", line 9, in 
from .server import ServerApp
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\server.py", line 26, in 
from jupyter_server.base.handlers import ( # noqa
ModuleNotFoundError: No module named 'jupyter_server'

@gauravkoradiya
Copy link

I have installed Anaconda on an SSD drive. Launching Anaconda Navigator and then VSCode or Spyder was fine. Jupyter Notebook wouldn't launch and gave the same error as the OP.
Using 'conda uninstall pyzmq' uninstalled pyzmq and everything else in Navigator except VS Code. That was not expected. I then opened Anaconda Navigator and reinstalled Jupyter Notebook and got the same error as before. ie.

Traceback (most recent call last):
File "D:\Dev\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main
File "D:\Dev\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 83, in 
from .services.contents.manager import ContentsManager
File "D:\Dev\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in 
from nbformat import sign, validate as validate_nb, ValidationError
ImportError: cannot import name 'sign' from 'nbformat' (unknown location)

Reinstalling and launching Jupyter Lab gave:

Traceback (most recent call last):
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\server.py", line 20, in 
from notebook.notebookapp import aliases, flags, NotebookApp as ServerApp
File "D:\Dev\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 83, in 
from .services.contents.manager import ContentsManager
File "D:\Dev\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in 
from nbformat import sign, validate as validate_nb, ValidationError
ImportError: cannot import name 'sign' from 'nbformat' (unknown location)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Dev\Anaconda3\Scripts\jupyter-lab-script.py", line 6, in 
from jupyterlab.labapp import main
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab\labapp.py", line 12, in 
from jupyterlab_server import slugify, WORKSPACE_EXTENSION
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\__init__.py", line 4, in 
from .app import LabServerApp
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\app.py", line 9, in 
from .server import ServerApp
File "D:\Dev\Anaconda3\lib\site-packages\jupyterlab_server\server.py", line 26, in 
from jupyter_server.base.handlers import ( # noqa
ModuleNotFoundError: No module named 'jupyter_server'

Same problem

@gauravkoradiya
Copy link

      Hey , use the following:

pip uninstall pyzmq
pip install pyzmq
The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This helped me solve the problem! Many thanks!

you resolve my issue. thank you

@fpmarcos
Copy link

fpmarcos commented Aug 29, 2019

Get pip here: https://bootstrap.pypa.io/get-pip.py
Run the following command: python get-pip.py

You can verify that Pip was installed correctly by opening a command prompt and entering the following command: pip -V

Now that Pip is installed and configured, you can begin using it:

pip uninstall pyzmq
pip uninstall jsonschema
pip install pyzmq
pip install jsonschema

Its works for me!

@KushnirAndrey
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Thank You)

@jwinc7
Copy link

jwinc7 commented Sep 12, 2019

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This resolved my issues. Thank you!

@rohitranjan60
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This resolved my issue, Thank you.

@GiulioAutel
Copy link

Solved with

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Solved! Thanks a lot!!

@niko-gallo
Copy link

I have the same issue, I am no able to launch Jupyter notebook. It errors out.
I tried a) pip uninstall pyzmq - it errors with access denied.
I am new and I am afraid, I am in trouble please help. I may have to manually uninstall everything and then reinstall.
C:\ProgramData\Anaconda3\Scripts>pip uninstall pyzmq

You should be using Anaconda prompt, which is installed by default with Anaconda. And the command should be here:
conda uninstall pyzmq and then conda install pyzmq.

It worked for me. When I installed Jupyter Notebooks to a new environment in Anaconda, it updated some other packages. I needed to uninstall pyzmq from Anaconda and reinstall it. The packages were downgraded and now it works fine.

don't work

image

@niko-gallo
Copy link

Get pip here: https://bootstrap.pypa.io/get-pip.py
Run the following command: python get-pip.py

You can verify that Pip was installed correctly by opening a command prompt and entering the following command: pip -V

Now that Pip is installed and configured, you can begin using it:

pip uninstall pyzmq
pip uninstall jsonschema
pip install pyzmq
pip install jsonschema

Its works for me!
this is the log when i start notebook

Traceback (most recent call last):
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\web.py", line 1699, in _execute
result = await result
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\handlers.py", line 72, in post
type=mtype))
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 88, in create_session
kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 742, in run
yielded = self.gen.throw(*exc_info) # type: ignore
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 735, in run
value = future.result()
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\tornado\gen.py", line 209, in wrapper
yielded = next(result)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
super(MappingKernelManager, self).start_kernel(**kwargs)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
km.start_kernel(**kwargs)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_client\connect.py", line 476, in write_connection_file
kernel_name=self.kernel_name
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_client\connect.py", line 141, in write_connection_file
with secure_write(fname) as f:
File "C:\Users\Feko\Anaconda3\lib\contextlib.py", line 112, in enter
return next(self.gen)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py", line 424, in secure_write
win32_restrict_file_to_user(fname)
File "C:\Users\Feko\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py", line 359, in win32_restrict_file_to_user
import win32api
ImportError: DLL load failed: %1 non è un'applicazione di Win32 valida.

@kevin-bates
Copy link
Member

Hi @niko-gallo - You're encountering a different issue: #5074 (comment)

@jenjajenjaBot
Copy link

Calc
помогите пл

@KushnirAndrey
Copy link

Calc
помогите пл

ты внутри backend.py пытаешься импортировать backend.py)
И в backend у тебя в принципе нет obj

Возможно ты хочешь сделать: from frontend import obj as calculator

@jenjajenjaBot
Copy link

Calc
помогите пл

ты внутри backend.py пытаешься импортировать backend.py)
И в backend у тебя в принципе нет obj

Возможно ты хочешь сделать: from frontend import obj as calculator

Calc

@KushnirAndrey
Copy link

Calc
помогите пл

ты внутри backend.py пытаешься импортировать backend.py)
И в backend у тебя в принципе нет obj
Возможно ты хочешь сделать: from frontend import obj as calculator

Calc

Еще пишут main а не mane)

@jenjajenjaBot
Copy link

Calc
помогите пл

ты внутри backend.py пытаешься импортировать backend.py)
И в backend у тебя в принципе нет obj
Возможно ты хочешь сделать: from frontend import obj as calculator

Calc

Еще пишут main а не mane)

Calc

@KushnirAndrey
Copy link

Calc
помогите пл

ты внутри backend.py пытаешься импортировать backend.py)
И в backend у тебя в принципе нет obj
Возможно ты хочешь сделать: from frontend import obj as calculator

Calc

Еще пишут main а не mane)

Calc

Не совсем понимаю откуда и зачем тебе str_operation...

BACKEND:

from frontend import obj as calculator

def run():
try:
first = float(input('->>'))
operation = input('operation->>')
second = float(input('->>'))
result = calculator[operation](first, second)
print(result)
except Exception as e:
print(e)
pass

if name == "main":
run()


FRONTEND:

def add(a, b):
return a + b

def sub(a, b):
return a - b

def div(a, b):
try:
return a / b
except ZeroDivisionError as e:
return e

def mul(a, b):
return a * b

obj = {'+': add,
'-': sub,
'/': div,
'*': mul
}

@najam2012
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Thankyou very much, this problem wasted alot of my time

@Jona2jef
Copy link

pip uninstall pyzmq
pip install pyzmq
did not work for me.
I tried :- pip install --upgrade pyzmq jupyterlab jupyter --force-reinstall
use --user if not using a virtual environment in conda or virtualenv

@flyguy-fr
Copy link

pip uninstall pyzmq
pip install pyzmq
did not work for me.
I tried :- pip install --upgrade pyzmq jupyterlab jupyter --force-reinstall
use --user if not using a virtual environment in conda or virtualenv

thx. work for me on windows command prompt

@renzhere
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This worked for me! Thanks!!

@mayurgabhane4
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

this works thanksss

@kevin-bates
Copy link
Member

Good success. Time to close. Thanks everyone.

@NarendraSP
Copy link

conda uninstall pyzmq
conda install pyzmq

or
pip uninstall pyzmq
pip install pyzmq

This works for me!

@gunjeet40
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Worked for me..!!

@oscarjaram
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

It saves me a lot of time in 2020. Thak you a lot!

@shaane
Copy link

shaane commented May 23, 2020

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Thank you. I had the same issue but bot solved after uninstall and reinstall pyzmq.

@pradnya2221985
Copy link

Unable to launch Jupyter notebook. getting below error
I tried below still not working
pip uninstall pyzmq
pip install pyzmq

Traceback (most recent call last):
File "C:\anaconda1\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py", line 49, in
from zmq.eventloop import ioloop
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq_init_.py", line 47, in
from zmq import backend
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\backend_init_.py", line 40, in
reraise(*exc_info)
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = import(name, fromlist=public_api)
File "C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from 'zmq.backend.cython' (C:\Users\pdeshpan\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython_init_.py)

@LR-Argentino
Copy link

@harsh23tyagi Thanks bro is go !

@Aroubaz
Copy link

Aroubaz commented Jul 5, 2020

pip install pyzmq

This helped me , Thank you

@uallasleles
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Muito obrigado! Funcionou!

@doperogue
Copy link

Check the environment.
you probably have more than one version installed of pyzmq
just uninstall the later version
only use
pip uninstall pyzmq

@ghost
Copy link

ghost commented Sep 13, 2020

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

thanks a lot it worked

@alebrd
Copy link

alebrd commented Sep 28, 2020

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

hey, thank you. it still works with the same issue

@ParijatBasak
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

HEY IT WORKED FOR ME!!!! THANKS A BUNCH!!!

@Manju2012
Copy link

Manju2012 commented Nov 20, 2020

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

After using this I can able to run it it browser but not in VS code . getting error as below
image
image

@harshdhamecha
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

This really helps! Many thanks

@Houssem23x
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Thank you, it worked for me

@hrj-dev
Copy link

hrj-dev commented Jan 12, 2021

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Nice Work Bro, Thank You very Much

@mtachaudhary
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

Thanks, it's working for me.

@soarwing52
Copy link

Hey , use the following:
pip uninstall pyzmq
pip install pyzmq

The thing with conda is that it has a lot of conflicts, you might be having a conflict. Using simple pip command would help you to remove those conflicts. I mean it worked for me. I hope it helps

this worked awesome! thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests