usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.61k stars 616 forks source link

[BUG] Upgrade error - ModuleNotFoundError: No module named 'sleep' #1283

Closed SaJeTek-Developer closed 4 months ago

SaJeTek-Developer commented 4 months ago

Describe the bug When running the CyberPanel upgrade script, the upgrade fails with ModuleNotFoundError: No module named 'sleep' file: /root/cyberpanel_upgrade_tmp/upgrade.py This is also found in cyberpanel/plogical/upgrade.py

Expected behavior The line *import sleep" should be changed to "from time import sleep"

Operating system: Almalinux 9 Python 3.9

CyberPanel version: 2.3.5

Workaround A workaround for now is to manually edit /root/cyberpanel_upgrade_tmp/upgrade.py and change the line then make the file immutable and rerun the upgrade script.

shbs9 commented 4 months ago

I just updated on Alama 9 server with a normal upgrade script all going well no issues at all. image

shbs9 commented 4 months ago

can you share more detials or open a ticket at the platform so we can check your server

SaJeTek-Developer commented 4 months ago

Hi,

I wasn't able to reproduce after trying the script again.