Pyzmq 다운그레이드 - Pyzmq daungeuleideu

안녕하세요 선생님,

시작한지 얼마 안되었지만 선생님 강의에 용기를 얻어 열심히 수강하고 있습니다.

다름아니라 Jupyter Notebook 실행하면 화면 오른쪽 상단에 저 같은 경우 Python 3가 아닌, Python 3(ipykernel) 이라고 뜨는데,

문제가 없는 걸까요?

만약 Python 3로 나올수 있게 하는 방법이 있다면 도움 부탁드리겠습니다.

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

안녕하세요.

주피터 노트북 파일이 뜨는지 궁금합니다.

최근 같은 문제를 겪는 분을 도와드린 적이 있는데  검은색 터미널에 bad file descriptor  라는 문구가 뜬다면 아래 링크의 방법으로 해결해 볼 수 있습니다.

pyzmq 버전 문제로 아나콘다 프롬프트를 열어 아래의 명령을 실행해 보세요.

 pyzmq 다운그레이드

pyzmq를 삭제 후 19.0.2 버전으로 다시 설치해 줍니다.

pip uninstall pyzmq -y
pip install pyzmq==19.0.2

[bad file descriptor 오류 해결 방법](https://kosb.tistory.com/74)

댓글

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

회신 감사합니다. 

위에처럼 Python 3(ipykernel) 로 나오지만 주피터 노트북은 아직 에러 없이 잘 구동이 되긴하고 bad file descriptor 라고 터미널에 나타나지 않는 경우,  이대로 사용해도 괜찮을까요? 

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

안녕하세요. 

오류 없이 잘 구동된다면 그대로 사용하셔도 됩니다. 

감사합니다!

Hi everyone, I have a weird issue where I can run my script from PyCharm just fine, but when I use pyinstaller to make a single file executable, it gives me this error:

Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
  File "zmq\__init__.py", line 19, in <module>
  File "zmq\__init__.py", line 13, in _delvewheel_init_patch_0_0_9
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Duke\\AppData\\Local\\Temp\\_MEI286442\\pyzmq.libs\\.load_order'
[15396] Failed to execute script main

Is there a known fix for this?
Currently using pyzmq==22.0.2 and pyinstaller==4.2

Thanks in advance for any replies!

Asked 8 years, 7 months ago

Viewed 2k times

I Have installed zeromq 4.0.4 in my ubuntu machine.i have to downgrade my zmq to 3.2.4. i have tried sudo make uninstall , sudo make clean but none of them worked so far. and i also installed 3.2.4 from source. but still my system showing zmq version as 4.0.4. How can i get rid of old zmq files (Clean uninstall of 4.0.4)

asked Apr 17, 2014 at 10:11

Naveen SubramaniNaveen Subramani

2,0547 gold badges20 silver badges27 bronze badges

3

Usually you can just use sudo make uninstall if the developer of the package has taken care of making an uninstall target. This is probably not the case for zeromq since you are asking (have not tried myself).

To avoid that kind of problems one way is to use checkinstall instead of make install whenever possible. It will create and install a deb file that can be uninstalled using apt.

make clean Is used to clean the temporary files before building, not to uninstall.

In your situation all you can do, I'm afraid, is to manually remove the files installed by zeromq.

answered May 31, 2014 at 14:18

1

Jupyter notebook 실행 후 ipynb 파일 오픈 시 아래와 같은 오류가 발생하네요.

Bad file descriptor (C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)
Bad file descriptor (C:\ci\zeromq_1602704446950\work\src\epoll.cpp:100)

문제 

1. Anaconda Prompt를 연다 

2. Jupyter notebook을 실행한다.

3. Chrome으로 가서 ipynb 파일을 실행한다.

4. 아래와 같은 오류와 함께 Kernel이 종료 된다. 

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

시도

파일이 충돌하는 것 같은데, 해결점이 안보입니다. 

구글링 결과 jupyter를 재설치하라.

pip install --upgrade --force-reinstall --no-cache-dir jupyter

관련 패키지들을 재설치하라 등등 해결점이 있는데, 해결이 안되는군요.

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

답답합니다..ㅠ


해결 방법

김종관님의 댓글 덕분에 문제를 해결했습니다. 공유해주셔서 정말 감사합니다!

댓글 주신 stackoverflow의 댓글에 의하면 이 문제는 pyzmq 라이브러리와의 충돌 문제였습니다.

jupyterlab을 설치하게되면 pyzmq가 설치하는데 이가 파이썬 커널의 충돌을 일으키는 것이라고 하네요.

저에게 작동한 해결법은 간단합니다.

기존 설치된 버전의 pyzmq를 uninstall 해주시고 특정 버전을 다시 설치해 주시면 됩니다.

pip uninstall pyzmq

pip install pyzmq==19.0.2

(* pyzmq==19.0.2 사이에 쉼표 있으면 오류남.)

스택오버플로우 링크를 공유드립니다.

stackoverflow.com/questions/65690540/python-stopped-working-on-jupyter-startup

Python Stopped Working on Jupyter StartUp

I start Jupyter from my powershell prompt jupyter notebook and it loads up correctly, but when I open a new or existing notebook, the kernel sits busy for about 10 sec and then I get a pop-up saying

stackoverflow.com

Pyzmq 다운그레이드 - Pyzmq daungeuleideu

해결책을 공유해주신 김종관님께 다시한번 감사의 말씀 전합니다.