Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

After restarting the pagoda panel, prompt ModuleNotFoundError: No module named & # 039

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you after restarting the pagoda panel hint ModuleNotFoundError: what to do with No module named 'geventwebsocket', I believe most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Background:

Restart the pagoda panel because the server deployed the flask project and installed python3.

[Traceback (most recent call last):

File "/ root/anaconda3/lib/python3.7/site-packages/gunicorn/util.py", line 135, in load_class

Mod = import_module ('. Join (components))

File "/ root/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module

Return _ bootstrap._gcd_import (name [level:], package, level)

File "", line 1006, in _ gcd_import

File "", line 983, in _ find_and_load

File "", line 953, in _ find_and_load_unlocked

File "", line 219, in _ call_with_frames_removed

File "", line 1006, in _ gcd_import

File "", line 983, in _ find_and_load

File "", line 953, in _ find_and_load_unlocked

File "", line 219, in _ call_with_frames_removed

File "", line 1006, in _ gcd_import

File "", line 983, in _ find_and_load

File "", line 965, in _ find_and_load_unlocked

ModuleNotFoundError: No module named 'geventwebsocket'

]

Error: BT-Panel service startup failed.

Solution:

1. Python3 install geventwebsocket

I don't want to disassemble python3, nor do I want to delete python3's soft link, so I found this method on the Internet.

After a closer look, it seems that the module geventwebsocket is missing after upgrading python3.7.

Then I tried to install this module on pip:

Sudo pip3 install geventwebsocket

As a result, it still reported an error.

2. Continue to install gevent-websocket

Sudo pip3 install gevent-websocket

There is also an error after installation, prompting No module named 'paramiko'

3. Continue to install paramiko

Sudo pip3 install paramiko

4. Then restart the pagoda panel

Sudo / etc/init.d/bt

Success!

The above is all the contents of the article "prompt ModuleNotFoundError: what to do with No module named 'geventwebsocket' after restarting the Pagoda Panel". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report