[GH-ISSUE #17] Do not force the installation of python2 #11

Closed
opened 2026-03-03 13:50:30 +03:00 by kerem · 5 comments
Owner

Originally created by @jksdou on GitHub (Feb 18, 2020).
Original GitHub issue: https://github.com/inpanel/inpanel/issues/17

Do not force the installation of python2. In the installation script, replace it with the default python of the system
默认使用系统自带的Python,系统未安装的默认安装最新版本的Python

Originally created by @jksdou on GitHub (Feb 18, 2020). Original GitHub issue: https://github.com/inpanel/inpanel/issues/17 Do not force the installation of python2. In the installation script, replace it with the default python of the system 默认使用系统自带的Python,系统未安装的默认安装最新版本的Python
kerem 2026-03-03 13:50:30 +03:00
Author
Owner

@AtomRun-Code commented on GitHub (Mar 15, 2022):

没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。
系统:almalinux-8.4-x86_64

海外VPS,由于系统里没有python,然后
yum install python2
后来把官方的安装命令改成了
python2 install.py
用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9?

通过
systemctl status inpanel
得到两行错误的提示,不知道是什么意思:
Active: failed (Result: protocol)
Failed to start SYSV: InPanel is a web-based linux VPS management tools.

<!-- gh-comment-id:1067483071 --> @AtomRun-Code commented on GitHub (Mar 15, 2022): 没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。 系统:almalinux-8.4-x86_64 海外VPS,由于系统里没有python,然后 `yum install python2` 后来把官方的安装命令改成了 `python2 install.py` 用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9? 通过 `systemctl status inpanel` 得到两行错误的提示,不知道是什么意思: Active: failed (Result: protocol) Failed to start SYSV: InPanel is a web-based linux VPS management tools.
Author
Owner

@jksdou commented on GitHub (Mar 17, 2022):

没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。 系统:almalinux-8.4-x86_64

海外VPS,由于系统里没有python,然后 yum install python2 后来把官方的安装命令改成了 python2 install.py 用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9?

通过 systemctl status inpanel 得到两行错误的提示,不知道是什么意思: Active: failed (Result: protocol) Failed to start SYSV: InPanel is a web-based linux VPS management tools.

抱歉,没有针对 almalinux 系统进行适配处理。

请尝试使用命令 python2 server.py 直接执行,查看是否能够正常运行

运行此命令 systemctl status inpanel 需要系统支持此服务,前提需要将文件 scripts/init.d/centos/inpanel 放置在 /etc/init.d/

<!-- gh-comment-id:1070351653 --> @jksdou commented on GitHub (Mar 17, 2022): > 没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。 系统:almalinux-8.4-x86_64 > > 海外VPS,由于系统里没有python,然后 `yum install python2` 后来把官方的安装命令改成了 `python2 install.py` 用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9? > > 通过 `systemctl status inpanel` 得到两行错误的提示,不知道是什么意思: Active: failed (Result: protocol) Failed to start SYSV: InPanel is a web-based linux VPS management tools. 抱歉,没有针对 almalinux 系统进行适配处理。 请尝试使用命令 `python2 server.py` 直接执行,查看是否能够正常运行 运行此命令 `systemctl status inpanel` 需要系统支持此服务,前提需要将文件 `scripts/init.d/centos/inpanel` 放置在 `/etc/init.d/` 内
Author
Owner

@AtomRun-Code commented on GitHub (Mar 29, 2022):

没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。 系统:almalinux-8.4-x86_64
海外VPS,由于系统里没有python,然后 yum install python2 后来把官方的安装命令改成了 python2 install.py 用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9?
通过 systemctl status inpanel 得到两行错误的提示,不知道是什么意思: Active: failed (Result: protocol) Failed to start SYSV: InPanel is a web-based linux VPS management tools.

抱歉,没有针对 almalinux 系统进行适配处理。

请尝试使用命令 python2 server.py 直接执行,查看是否能够正常运行

运行此命令 systemctl status inpanel 需要系统支持此服务,前提需要将文件 scripts/init.d/centos/inpanel 放置在 /etc/init.d/

谢谢你的回复,现在已经换成了Debian11(代号:Bullseye)。再试试,由于宝塔需要手机注册认证,真心希望inpanel可以借此机会发展起来。看过一些网上的介绍,简洁高效,真是维护人员的福音。

一天下来,还是出问题!哎~

Platform debian 11.2 [Linux]
* Checking Platform... debian ...OK
* Install Dependent Software... [ FAILED ]
* Current Python Version is [2.7] ... [ OK ]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
* Install GIT ... [ OK ]
* Installing InPanel
Traceback (most recent call last):
  File "/home/inpanel/install.py", line 392, in <module>
    install.install()
  File "/home/inpanel/install.py", line 367, in install
    self.handle_inpanel()
  File "/home/inpanel/install.py", line 211, in handle_inpanel
    self._run('%s stop' % self.initd_script)
  File "/home/inpanel/install.py", line 111, in _run
    return subprocess.call(shlex.split(cmd))
  File "/usr/lib/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
<!-- gh-comment-id:1081785674 --> @AtomRun-Code commented on GitHub (Mar 29, 2022): > > 没怎么看懂大哥想说的是啥。反正我已经正在踩雷的路上。 系统:almalinux-8.4-x86_64 > > 海外VPS,由于系统里没有python,然后 `yum install python2` 后来把官方的安装命令改成了 `python2 install.py` 用户名,密码和端口都设定好了。启动不成功,我是不是要换成python3.9? > > 通过 `systemctl status inpanel` 得到两行错误的提示,不知道是什么意思: Active: failed (Result: protocol) Failed to start SYSV: InPanel is a web-based linux VPS management tools. > > 抱歉,没有针对 almalinux 系统进行适配处理。 > > 请尝试使用命令 `python2 server.py` 直接执行,查看是否能够正常运行 > > 运行此命令 `systemctl status inpanel` 需要系统支持此服务,前提需要将文件 `scripts/init.d/centos/inpanel` 放置在 `/etc/init.d/` 内 ###### 谢谢你的回复,现在已经换成了Debian11(代号:Bullseye)。再试试,由于宝塔需要手机注册认证,真心希望inpanel可以借此机会发展起来。看过一些网上的介绍,简洁高效,真是维护人员的福音。 -------------------------------------------------- 一天下来,还是出问题!哎~ ``` log Platform debian 11.2 [Linux] * Checking Platform... debian ...OK * Install Dependent Software... [ FAILED ] * Current Python Version is [2.7] ... [ OK ] Reading package lists... Done Building dependency tree... Done Reading state information... Done git is already the newest version (1:2.30.2-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. * Install GIT ... [ OK ] * Installing InPanel Traceback (most recent call last): File "/home/inpanel/install.py", line 392, in <module> install.install() File "/home/inpanel/install.py", line 367, in install self.handle_inpanel() File "/home/inpanel/install.py", line 211, in handle_inpanel self._run('%s stop' % self.initd_script) File "/home/inpanel/install.py", line 111, in _run return subprocess.call(shlex.split(cmd)) File "/usr/lib/python2.7/subprocess.py", line 172, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 13] Permission denied ```
Author
Owner

@jksdou commented on GitHub (Mar 30, 2022):

由于此面板【对软件的管理是基于系统自带的软件包管理模式】的限制,目前只支持 CentOS,加上 python 版本兼容问题,目前项目正在重构中(还是基于 python 语言)

计划分发单文件执行程序,从根本上解决版本问题(已完成),基础功能正在开发补充中,另外系统兼容功能还在探索中,当前具体开发进度可以在分支 1.2.0 查看。

如果您有更好的方案,可以进一步探讨。

<!-- gh-comment-id:1082602419 --> @jksdou commented on GitHub (Mar 30, 2022): > 由于此面板【对软件的管理是基于系统自带的软件包管理模式】的限制,目前只支持 CentOS,加上 python 版本兼容问题,目前项目正在重构中(还是基于 python 语言) 计划分发单文件执行程序,从根本上解决版本问题(已完成),基础功能正在开发补充中,另外系统兼容功能还在探索中,当前具体开发进度可以在分支 1.2.0 查看。 如果您有更好的方案,可以进一步探讨。
Author
Owner

@AtomRun-Code commented on GitHub (Mar 30, 2022):

努力学习中,希望有朝一日能为项目作出贡献。加油!

<!-- gh-comment-id:1083214027 --> @AtomRun-Code commented on GitHub (Mar 30, 2022): > 努力学习中,希望有朝一日能为项目作出贡献。加油!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/inpanel#11
No description provided.