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

Summary of the use of TypeScript in React projects

Preface This article will focus on the use of Typ...

Forty-nine JavaScript tips and tricks

Table of contents 1. Operation of js integer 2. R...

Detailed explanation of MySQL database triggers

Table of contents 1 Introduction 2 Trigger Introd...

How to access the local machine (host machine) in Docker

Question How to access the local database in Dock...

A detailed account of the process of climbing a pit of Docker deployment service

First time writing. Allow me to introduce myself....

Installation steps of mysql under linux

1. Download the mysql tar file: https://dev.mysql...

How to use Docker to build a tomcat cluster using nginx (with pictures and text)

First, create a tomcat folder. To facilitate the ...

Detailed explanation of memory management of MySQL InnoDB storage engine

Table of contents Storage Engine Memory Managemen...

Conditional comments to determine the browser (IE series)

<!--[if IE 6]> Only IE6 can recognize <![...

Newbies quickly learn the steps to create website icons

<br />Original URL: http://www.lxdong.com/po...

Detailed explanation of nginx installation, deployment and usage on Linux

Table of contents 1. Download 2. Deployment 3. Ng...

How to make if judgment in js as smooth as silk

Table of contents Preface Code Implementation Ide...

The difference and usage of Vue2 and Vue3 brother component communication bus

Table of contents vue2.x vue3.x tiny-emitter plug...

Use simple jQuery + CSS to create a custom a tag title tooltip

Introduction Use simple jQuery+CSS to create a cus...

Summary of pitfalls of using nginx as a reverse proxy for grpc

background As we all know, nginx is a high-perfor...