Benjamin-Loison / pyzo

Python to the people
https://pyzo.org
Other
0 stars 0 forks source link

Install on Linux Mint 22 Cinnamon #43

Open Benjamin-Loison opened 3 months ago

Benjamin-Loison commented 3 months ago

Do not have any issue on a relative Linux Mint 22 Cinnamon:

-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdA7nNonzRkuHmOa9lVQy1XVbseuhasbMN6JdrQaXLWX38w
9bCef8Aoh8vnWdzSeO1vvq0wejVP9GqkdMdWEmjcBSqU/d9lgykbmlec0UPb4qhO
0kABPay39PE3v3pH2EgF2v0N8fk9TsEtMt+NWjjA/NQ3aEJlrPpnZad7DQyi51kr
Af+HBrCW2J2LJfohWAUrIZt2
=KwYc
-----END PGP MESSAGE-----

Related to #30.

Benjamin-Loison commented 3 months ago

Let us proceed from a fresh setup where I paid attention to not have Pyzo installed with APT or pip.

Benjamin-Loison commented 3 months ago
pip uninstall pyzo
WARNING: Skipping pyzo as it is not installed.
sudo apt purge pyzo
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'pyzo' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Benjamin-Loison commented 3 months ago
sudo apt install -y pyzo
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: famfamfam-silk fonts-dejavu libqt5charts5 libqt5location5 libqt5positioningquick5 libqt5quickwidgets5 libqt5remoteobjects5 libqt5serialport5 libqt5webenginewidgets5 libqt5websockets5 libqt5xmlpatterns5 python3-pyqt5.qtchart python3-pyqt5.qtopengl python3-pyqt5.qtpositioning python3-pyqt5.qtquick python3-pyqt5.qtremoteobjects python3-pyqt5.qtsensors python3-pyqt5.qtserialport python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qttexttospeech python3-pyqt5.qtwebchannel python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit python3-pyqt5.qtwebsockets python3-pyqt5.qtxmlpatterns python3-qtpy Suggested packages: pyzo-doc The following NEW packages will be installed: famfamfam-silk fonts-dejavu libqt5charts5 libqt5location5 libqt5positioningquick5 libqt5quickwidgets5 libqt5remoteobjects5 libqt5serialport5 libqt5webenginewidgets5 libqt5websockets5 libqt5xmlpatterns5 python3-pyqt5.qtchart python3-pyqt5.qtopengl python3-pyqt5.qtpositioning python3-pyqt5.qtquick python3-pyqt5.qtremoteobjects python3-pyqt5.qtsensors python3-pyqt5.qtserialport python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qttexttospeech python3-pyqt5.qtwebchannel python3-pyqt5.qtwebengine python3-pyqt5.qtwebkit python3-pyqt5.qtwebsockets python3-pyqt5.qtxmlpatterns python3-qtpy pyzo 0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded. Need to get 5,676 kB of archives. After this operation, 24.7 MB of additional disk space will be used. Get:1 https://mirror.hoobly.com/ubuntu noble/universe amd64 fonts-dejavu all 2.37-8 [3,020 B] Get:2 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5charts5 amd64 5.15.13-1 [482 kB] Get:3 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5positioningquick5 amd64 5.15.13+dfsg-1 [43.6 kB] Get:4 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5location5 amd64 5.15.13+dfsg-1 [745 kB] Get:5 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5quickwidgets5 amd64 5.15.13+dfsg-1 [38.4 kB] Get:6 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5remoteobjects5 amd64 5.15.13-1 [198 kB] Get:7 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5serialport5 amd64 5.15.13-1 [34.3 kB] Get:8 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5webenginewidgets5 amd64 5.15.16+dfsg-3 [121 kB] Get:9 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5websockets5 amd64 5.15.13-1 [60.1 kB] Get:10 https://mirror.hoobly.com/ubuntu noble/universe amd64 libqt5xmlpatterns5 amd64 5.15.13-1 [899 kB] Get:11 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtchart amd64 5.15.6+dfsg-1build2 [148 kB] Get:12 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtopengl amd64 5.15.10+dfsg-1build6 [128 kB] Get:13 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtpositioning amd64 5.15.10+dfsg-1build6 [154 kB] Get:14 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtquick amd64 5.15.10+dfsg-1build6 [398 kB] Get:15 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtremoteobjects amd64 5.15.10+dfsg-1build6 [32.6 kB] Get:16 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtsensors amd64 5.15.10+dfsg-1build6 [56.4 kB] Get:17 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtserialport amd64 5.15.10+dfsg-1build6 [28.4 kB] Get:18 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtsql amd64 5.15.10+dfsg-1build6 [90.1 kB] Get:19 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtsvg amd64 5.15.10+dfsg-1build6 [30.1 kB] Get:20 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qttexttospeech amd64 5.15.10+dfsg-1build6 [17.8 kB] Get:21 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtwebchannel amd64 5.15.10+dfsg-1build6 [15.1 kB] Get:22 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtwebengine amd64 5.15.6-1build2 [119 kB] Get:23 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtwebkit amd64 5.15.10+dfsg-1build6 [111 kB] Get:24 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtwebsockets amd64 5.15.10+dfsg-1build6 [27.2 kB] Get:25 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-pyqt5.qtxmlpatterns amd64 5.15.10+dfsg-1build6 [44.8 kB] Get:26 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-qtpy all 2.4.1-2 [51.4 kB] Get:27 https://mirror.hoobly.com/ubuntu noble/universe amd64 famfamfam-silk all 1.3-1.1 [610 kB] Get:28 https://mirror.hoobly.com/ubuntu noble/universe amd64 pyzo all 4.12.3-1 [989 kB] Fetched 5,676 kB in 1s (7,177 kB/s) Selecting previously unselected package fonts-dejavu. (Reading database ... 916277 files and directories currently installed.) Preparing to unpack .../00-fonts-dejavu_2.37-8_all.deb ... Unpacking fonts-dejavu (2.37-8) ... Selecting previously unselected package libqt5charts5:amd64. Preparing to unpack .../01-libqt5charts5_5.15.13-1_amd64.deb ... Unpacking libqt5charts5:amd64 (5.15.13-1) ... Selecting previously unselected package libqt5positioningquick5:amd64. Preparing to unpack .../02-libqt5positioningquick5_5.15.13+dfsg-1_amd64.deb ... Unpacking libqt5positioningquick5:amd64 (5.15.13+dfsg-1) ... Selecting previously unselected package libqt5location5:amd64. Preparing to unpack .../03-libqt5location5_5.15.13+dfsg-1_amd64.deb ... Unpacking libqt5location5:amd64 (5.15.13+dfsg-1) ... Selecting previously unselected package libqt5quickwidgets5:amd64. Preparing to unpack .../04-libqt5quickwidgets5_5.15.13+dfsg-1_amd64.deb ... Unpacking libqt5quickwidgets5:amd64 (5.15.13+dfsg-1) ... Selecting previously unselected package libqt5remoteobjects5:amd64. Preparing to unpack .../05-libqt5remoteobjects5_5.15.13-1_amd64.deb ... Unpacking libqt5remoteobjects5:amd64 (5.15.13-1) ... Selecting previously unselected package libqt5serialport5:amd64. Preparing to unpack .../06-libqt5serialport5_5.15.13-1_amd64.deb ... Unpacking libqt5serialport5:amd64 (5.15.13-1) ... Selecting previously unselected package libqt5webenginewidgets5:amd64. Preparing to unpack .../07-libqt5webenginewidgets5_5.15.16+dfsg-3_amd64.deb ... Unpacking libqt5webenginewidgets5:amd64 (5.15.16+dfsg-3) ... Selecting previously unselected package libqt5websockets5:amd64. Preparing to unpack .../08-libqt5websockets5_5.15.13-1_amd64.deb ... Unpacking libqt5websockets5:amd64 (5.15.13-1) ... Selecting previously unselected package libqt5xmlpatterns5:amd64. Preparing to unpack .../09-libqt5xmlpatterns5_5.15.13-1_amd64.deb ... Unpacking libqt5xmlpatterns5:amd64 (5.15.13-1) ... Selecting previously unselected package python3-pyqt5.qtchart. Preparing to unpack .../10-python3-pyqt5.qtchart_5.15.6+dfsg-1build2_amd64.deb ... Unpacking python3-pyqt5.qtchart (5.15.6+dfsg-1build2) ... Selecting previously unselected package python3-pyqt5.qtopengl. Preparing to unpack .../11-python3-pyqt5.qtopengl_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtopengl (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtpositioning. Preparing to unpack .../12-python3-pyqt5.qtpositioning_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtpositioning (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtquick. Preparing to unpack .../13-python3-pyqt5.qtquick_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtquick (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtremoteobjects. Preparing to unpack .../14-python3-pyqt5.qtremoteobjects_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtremoteobjects (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtsensors. Preparing to unpack .../15-python3-pyqt5.qtsensors_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtsensors (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtserialport. Preparing to unpack .../16-python3-pyqt5.qtserialport_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtserialport (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtsql. Preparing to unpack .../17-python3-pyqt5.qtsql_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtsql (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtsvg. Preparing to unpack .../18-python3-pyqt5.qtsvg_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtsvg (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qttexttospeech. Preparing to unpack .../19-python3-pyqt5.qttexttospeech_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qttexttospeech (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtwebchannel. Preparing to unpack .../20-python3-pyqt5.qtwebchannel_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtwebchannel (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtwebengine. Preparing to unpack .../21-python3-pyqt5.qtwebengine_5.15.6-1build2_amd64.deb ... Unpacking python3-pyqt5.qtwebengine (5.15.6-1build2) ... Selecting previously unselected package python3-pyqt5.qtwebkit. Preparing to unpack .../22-python3-pyqt5.qtwebkit_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtwebkit (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtwebsockets. Preparing to unpack .../23-python3-pyqt5.qtwebsockets_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtwebsockets (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-pyqt5.qtxmlpatterns. Preparing to unpack .../24-python3-pyqt5.qtxmlpatterns_5.15.10+dfsg-1build6_amd64.deb ... Unpacking python3-pyqt5.qtxmlpatterns (5.15.10+dfsg-1build6) ... Selecting previously unselected package python3-qtpy. Preparing to unpack .../25-python3-qtpy_2.4.1-2_all.deb ... Unpacking python3-qtpy (2.4.1-2) ... Selecting previously unselected package famfamfam-silk. Preparing to unpack .../26-famfamfam-silk_1.3-1.1_all.deb ... Unpacking famfamfam-silk (1.3-1.1) ... Selecting previously unselected package pyzo. Preparing to unpack .../27-pyzo_4.12.3-1_all.deb ... Unpacking pyzo (4.12.3-1) ... Setting up python3-pyqt5.qttexttospeech (5.15.10+dfsg-1build6) ... Setting up fonts-dejavu (2.37-8) ... Setting up python3-pyqt5.qtsql (5.15.10+dfsg-1build6) ... Setting up libqt5positioningquick5:amd64 (5.15.13+dfsg-1) ... Setting up python3-pyqt5.qtopengl (5.15.10+dfsg-1build6) ... Setting up libqt5location5:amd64 (5.15.13+dfsg-1) ... Setting up libqt5xmlpatterns5:amd64 (5.15.13-1) ... Setting up libqt5remoteobjects5:amd64 (5.15.13-1) ... Setting up libqt5serialport5:amd64 (5.15.13-1) ... Setting up famfamfam-silk (1.3-1.1) ... Setting up python3-pyqt5.qtxmlpatterns (5.15.10+dfsg-1build6) ... Setting up libqt5charts5:amd64 (5.15.13-1) ... Setting up python3-pyqt5.qtsensors (5.15.10+dfsg-1build6) ... Setting up libqt5quickwidgets5:amd64 (5.15.13+dfsg-1) ... Setting up libqt5websockets5:amd64 (5.15.13-1) ... Setting up python3-pyqt5.qtwebsockets (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtserialport (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtremoteobjects (5.15.10+dfsg-1build6) ... Setting up libqt5webenginewidgets5:amd64 (5.15.16+dfsg-3) ... Setting up python3-pyqt5.qtwebchannel (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtwebkit (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtwebengine (5.15.6-1build2) ... Setting up python3-pyqt5.qtquick (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtpositioning (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtsvg (5.15.10+dfsg-1build6) ... Setting up python3-pyqt5.qtchart (5.15.6+dfsg-1build2) ... Setting up python3-qtpy (2.4.1-2) ... Setting up pyzo (4.12.3-1) ... /usr/share/pyzo/pyzo/codeeditor/parsers/c_parser.py:43: SyntaxWarning: invalid escape sequence '\/' + "(\/\/)|" # Identifiers/numbers (group 1) or /usr/share/pyzo/pyzo/codeeditor/parsers/c_parser.py:44: SyntaxWarning: invalid escape sequence '\/' + "(\/\*)|" # Single line comment (group 2) /usr/share/pyzo/pyzo/codeeditor/parsers/python_parser.py:455: SyntaxWarning: invalid escape sequence '\(' + "(\(|\[|\{)|" # End of string group /usr/share/pyzo/pyzo/codeeditor/parsers/python_parser.py:456: SyntaxWarning: invalid escape sequence '\)' + "(\)|\]|\})|" # Opening parenthesis (gr 5) /usr/share/pyzo/pyzo/core/menu.py:231: SyntaxWarning: invalid escape sequence '\(' name = re.sub("\(.*\)", "", name) /usr/share/pyzo/pyzo/tools/pyzoInteractiveHelp.py:663: SyntaxWarning: invalid escape sequence '\.' tmp = re.search("[a-zA-z_\.]*?" + name + "\(.*?\)", docs) /usr/share/pyzo/pyzo/tools/pyzoInteractiveHelp.py:663: SyntaxWarning: invalid escape sequence '\(' tmp = re.search("[a-zA-z_\.]*?" + name + "\(.*?\)", docs) /usr/share/pyzo/pyzo/util/zon.py:256: SyntaxWarning: invalid escape sequence '\w' m = re.search("^\w+? *?=", line2) Processing triggers for mate-menus (1.26.1+mint1) ... Processing triggers for libc-bin (2.39-0ubuntu8.2) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for desktop-file-utils (0.27-2build1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for doc-base (0.11.2) ... Processing 1 added doc-base file... Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ... ```
pyzo
Output: ``` Pyzo 4.12.3 Started our command server Loaded theme 'Solarized_Dark' Loaded theme 'Dark' Loaded theme 'Default' Loaded theme 'Solarized_Light' Loaded theme 'Scintilla' Uncaught Python exception: No module named 'imp' File "/usr/bin/pyzo", line 33, in sys.exit(load_entry_point('pyzo==4.12.3', 'console_scripts', 'pyzo')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/pyzo/pyzo/__main__.py", line 42, in main pyzo.start() File "/usr/share/pyzo/pyzo/__init__.py", line 57, in start start() File "/usr/share/pyzo/pyzo/_start.py", line 271, in start MainWindow(None, appLocale) File "/usr/share/pyzo/pyzo/core/main.py", line 96, in __init__ self._populate() File "/usr/share/pyzo/pyzo/core/main.py", line 151, in _populate from pyzo.tools import ToolManager File "/usr/share/pyzo/pyzo/tools/__init__.py", line 36, in import os, sys, imp ```

Pypi: imp3 does not look relevant among results for imp, see https://pypi.org/search/?q=imp.

The only DuckDuckGo and Google results for "Uncaught Python exception: No module named 'imp'" are:

apt show python3-zombie-imp
Output: ``` Package: python3-zombie-imp Version: 0.0.2-2 Priority: optional Section: universe/python Source: python-zombie-imp Origin: Ubuntu Maintainer: Ubuntu Developers Original-Maintainer: Gianfranco Costamagna Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 56.3 kB Depends: python3:any Download-Size: 11.9 kB APT-Sources: https://mirror.hoobly.com/ubuntu noble/universe amd64 Packages Description: copy of the `imp` module that was removed in Python 3.12 # zombie-imp . ~~A particularly mischevious act of necromancy. That is,~~ A copy of the `imp` module that was removed in Python 3.12. . Don't use this, it'll probably trick and bite you. . . # Usage . Can be summoned by `import zombie_imp`. . On Python versions where `imp` was banished, reanimate it using `import imp`. It promises (with a sneer) to be the same as before. . Some functionality that was severed from `pkgutil` is interred in `zombie_imp.pkgutil`, ready for reattachment: . - `ImpImporter` - `ImpLoader` ```

Source: https://bugs.launchpad.net/ubuntu/+source/pyzo/+bug/2063934#edit-description

sudo apt install -y python3-zombie-imp
Output: ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: python3-zombie-imp 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 11.9 kB of archives. After this operation, 56.3 kB of additional disk space will be used. Get:1 https://mirror.hoobly.com/ubuntu noble/universe amd64 python3-zombie-imp all 0.0.2-2 [11.9 kB] Fetched 11.9 kB in 0s (53.1 kB/s) Selecting previously unselected package python3-zombie-imp. (Reading database ... 917967 files and directories currently installed.) Preparing to unpack .../python3-zombie-imp_0.0.2-2_all.deb ... Unpacking python3-zombie-imp (0.0.2-2) ... Setting up python3-zombie-imp (0.0.2-2) ... ```

Then pyzo works quite fine:

pyzo
Pyzo 4.12.3
Started our command server
Loaded theme 'Solarized_Dark'
Loaded theme 'Dark'
Loaded theme 'Default'
Loaded theme 'Solarized_Light'
Loaded theme 'Scintilla'
QTextCursor::setPosition: Position '1' out of range

keeping the terminal focus.