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

Build a Docker image using Dockerfile

Table of contents Build a Docker image using Dock...

Summary of constructor and super knowledge points in react components

1. Some tips on classes declared with class in re...

How to set up remote access to a server by specifying an IP address in Windows

We have many servers that are often interfered wi...

Native JS to achieve special effects message box

This article shares with you a special effect mes...

Linux system AutoFs automatic mount service installation and configuration

Table of contents Preface 1. Install the service ...

Quick solution for forgetting MySQL8 password

Preface When we forget the MySQL database passwor...

How to deploy Vue project under nginx

Today I will use the server nginx, and I also nee...

MySQL installation and configuration tutorial for Mac

This article shares the MySQL installation tutori...

JavaScript to achieve slow motion animation effect

This article shares the specific code for JavaScr...

MySQL deep paging (how to quickly paginate tens of millions of data)

Table of contents Preface Case optimization summa...

How to center your HTML button

How to center your HTML button itself? This is ea...

Example analysis of interval calculation of mysql date and time

This article uses an example to describe the inte...