After restarting the Baota panel, it prompts -ModuleNotFoundError: No module named 'geventwebsocket'

After restarting the Baota panel, it prompts -ModuleNotFoundError: No module named 'geventwebsocket'

background:

Because the server deployed the flask project and installed python3, the Baota panel reported an error when restarting

[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 "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'geventwebsocket'
]
------------------------------------------------------
Error: BT-Panel service startup failed.

Solution:

1. Install geventwebsocket in python3

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

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

Then I tried to install this module using pip:

sudo pip3 install geventwebsocket

The result is still wrong

2. Continue to install gevent-websocket

sudo pip3 install gevent-websocket

After installation, there is still an error, 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! ! !

Summarize

The above is what I introduced to you about the prompt after restarting the Baota panel - ModuleNotFoundError: No module named ''''geventwebsocket''''. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Solution to forgetting the password of the pagoda panel in Linux 3.X/4.x/5.x
  • How to install the Linux version of Baota Panel in a directory other than /www
  • Baota Linux Panel is a free Chinese Linux VPS host control panel suitable for fast website building
  • BT Baota Linux Server Management Assistant sets up VPS panel (installation and initial setup application)
  • Introduction to Baota Linux Panel 2.8.9 Stable Version

<<:  Solve the problem of MySQL 8.0 still prompting Access denied even though the input is correct

>>:  Sample code for implementing Alipay sandbox payment with Vue+SpringBoot

Recommend

How to create a swap partition file in Linux

Introduction to Swap Swap (i.e. swap partition) i...

MySQL 8.0.25 installation and configuration tutorial under Linux

The latest tutorial for installing MySQL 8.0.25 o...

Detailed tutorial on how to install MySQL 5.7.18 in Linux (CentOS 7) using YUM

The project needs to use MySQL. Since I had alway...

A method of making carousel images with CSS3

Slideshows are often seen on web pages. They have...

Docker installs Elasticsearch7.6 cluster and sets password

Starting from Elasticsearch 6.8, free users are a...

Example code for implementing a text marquee with CSS3

Background Here's what happened, Luzhu accide...

How to Set Shortcut Icons in Linux

Preface Creating shortcuts in Linux can open appl...

Understanding and application scenarios of enumeration types in TypeScript

Table of contents 1. What is 2. Use Numeric Enume...

Linux directory switching implementation code example

Switching files is a common operation in Linux. W...

Nginx rewrite regular matching rewriting method example

Nginx's rewrite function supports regular mat...

HTML 5 Reset Stylesheet

This CSS reset is modified based on Eric Meyers...

The combination and difference between ENTRYPOINT and CMD in dockerfile

In the previous article [Detailed explanation of ...

How to quickly build a LAMP environment on CentOS platform

This article uses an example to describe how to q...