Re: Migration von i-MSCP zu KeyHelp
Posted: Tue 26. Sep 2023, 07:26
Danke für das Feedback. Freut mich das Du den Sprung zu KeyHelp damit erledigen konntest.
Das offizielle KeyHelp Forum der Keyweb AG / The official KeyHelp forum of Keyweb AG
https://community.keyhelp.de/
Code: Select all
python3 -m pip install mysql-connector inquirer
Code: Select all
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Code: Select all
pip install --break-system-packages
Code: Select all
rm /usr/lib/python3.11/EXTERNALLY-MANAGED
Code: Select all
python3 -m pip install --break-system-packages mysql-connector-python inquirer
Code: Select all
Collecting mysql-connector-python
Using cached mysql_connector_python-8.1.0-cp311-cp311-manylinux_2_17_x86_64.whl (27.5 MB)
Collecting inquirer
Using cached inquirer-3.1.3-py3-none-any.whl (18 kB)
Collecting protobuf<=4.21.12,>=4.21.1
Using cached protobuf-4.21.12-cp37-abi3-manylinux2014_x86_64.whl (409 kB)
Collecting blessed>=1.19.0
Using cached blessed-1.20.0-py2.py3-none-any.whl (58 kB)
Collecting python-editor>=1.0.4
Using cached python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting readchar>=3.0.6
Using cached readchar-4.0.5-py3-none-any.whl (8.5 kB)
Collecting wcwidth>=0.1.4
Using cached wcwidth-0.2.8-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3/dist-packages (from blessed>=1.19.0->inquirer) (1.16.0)
Requirement already satisfied: setuptools>=41.0 in /usr/lib/python3/dist-packages (from readchar>=3.0.6->inquirer) (66.1.1)
Installing collected packages: wcwidth, python-editor, readchar, protobuf, blessed, mysql-connector-python, inquirer
Successfully installed blessed-1.20.0 inquirer-3.1.3 mysql-connector-python-8.1.0 protobuf-4.21.12 python-editor-1.0.4 readchar-4.0.5 wcwidth-0.2.8
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Code: Select all
sudo pip uninstall mysql-connector-python inquirer
sudo apt-get remove pv sshpass python3-pip python3-paramiko python3-distutils-extra python3-tqdm python3-wheel
Hast du beim Remove der Python Pakete geschaut, ob die nicht noch anderweitig Verwendung finden?
Code: Select all
root@host:~# apt-get remove -s pv sshpass python3-pip python3-paramiko python3-distutils-extra python3-tqdm python3-setuptools python3-wheel
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paket »python3-paramiko« ist nicht installiert, wird also auch nicht entfernt.
Paket »pv« ist nicht installiert, wird also auch nicht entfernt.
Paket »python3-distutils-extra« ist nicht installiert, wird also auch nicht entfernt.
Paket »python3-pip« ist nicht installiert, wird also auch nicht entfernt.
Paket »sshpass« ist nicht installiert, wird also auch nicht entfernt.
Paket »python3-tqdm« ist nicht installiert, wird also auch nicht entfernt.
Paket »python3-wheel« ist nicht installiert, wird also auch nicht entfernt.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
net-tools python3-attr python3-blinker python3-configobj python3-distutils python3-importlib-metadata python3-jinja2 python3-json-pointer python3-jsonpatch python3-jwt
python3-lib2to3 python3-markupsafe python3-more-itertools python3-oauthlib python3-pyrsistent python3-zipp
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
cloud-init python3-jsonschema python3-setuptools
0 aktualisiert, 0 neu installiert, 3 zu entfernen und 0 nicht aktualisiert.
Remv cloud-init [20.4.1-2+deb11u1]
Remv python3-jsonschema [3.2.0-3]
Remv python3-setuptools [52.0.0-4]
root@host:~#
Code: Select all
# debian
Reading state information... Done
python3-requests is already the newest version (2.28.1+dfsg-1).
python3-requests set to manually installed.
# pip
Installing collected packages: wcwidth, python-editor, readchar, protobuf, blessed, mysql-connector-python, inquirer
Successfully installed blessed-1.20.0 inquirer-3.1.3 mysql-connector-python-8.1.0 protobuf-4.21.12 python-editor-1.0.4 readchar-4.0.5 wcwidth-0.2.8
Code: Select all
sudo apt-get remove pv sshpass python3-pip python3-paramiko python3-distutils-extra python3-tqdm python3-wheel
Code: Select all
sudo pip uninstall mysql-connector-python inquirer blessed protobuf python-editor readchar wcwidth
Hmm...der Befehl ist identisch mit dem aus deinem vorhergehenden Post...Ralph wrote: ↑Wed 18. Oct 2023, 16:12 Teste bitte mal ob es damit passt auf einem Standard System ohne diese Migrations Packages:Code: Select all
sudo apt-get remove pv sshpass python3-pip python3-paramiko python3-distutils-extra python3-tqdm python3-setuptools python3-wheel
Code: Select all
root@host:~# apt-get remove -s python3-setuptools
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
net-tools python3-attr python3-blinker python3-configobj python3-distutils python3-importlib-metadata python3-jinja2 python3-json-pointer python3-jsonpatch python3-jwt
python3-lib2to3 python3-markupsafe python3-more-itertools python3-oauthlib python3-pyrsistent python3-zipp
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
cloud-init python3-jsonschema python3-setuptools
0 aktualisiert, 0 neu installiert, 3 zu entfernen und 0 nicht aktualisiert.
Remv cloud-init [20.4.1-2+deb11u1]
Remv python3-jsonschema [3.2.0-3]
Remv python3-setuptools [52.0.0-4]
root@host:~#
Danke! Dann würde ich meinen python3-setuptools besser auch beibehalten ....
Bei dem Punkt:mysql-connector (deprecated) wurde ersetzt durch mysql-connector-python
Gute Fragen!
Prost Mahlzeit, ja dann werde ich mal dranbleibenTobi wrote: ↑Thu 19. Oct 2023, 18:07 Gute Fragen!
So wie ich aktuell die Lage überblicke bist du mit der Erste der dieses Experiment wagen wird.
Daher freuen wir uns auf deinen geballten Erfahrungsbericht und unterstützen dich bis dahin seelisch & moralisch.
„Go, Ralph, go! Ja du schaffst das! Wir glauben an dich“
mysql-connector (deprecated) wurde ersetzt durch mysql-connector-python
Eher weniger..