Opened 13 months ago
Last modified 8 months ago
#68411 assigned defect
Uninstalling failed QGIS3 installation via MacPorts on macOS Ventura 13.3.1
Reported by: | kunterbunt23 | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | nilason (Nicklas Larsson) | |
Port: | qgis3 |
Description
Uninstalling failed QGIS3 installation via MacPorts on macOS Ventura 13.3.1
I posted a question on stackoverflow (no answer so far). https://stackoverflow.com/questions/77261338/uninstall-qgis-and-related-ports-with-macports
I installed qgis3 using the following command
sudo port install qgis3
. The installation looked good at first, but it seems to be incomplete or partially failed. If there is a way to view the history retroactively, then I would run that and attach it here.
I now have folders in MacPorts with the following apps:
- Python 3.11: IDLE.app, Python Launcher.app
- Qt5: Assistant.app, Designer.app, Linguist.app, pixeltool.app, qdbusviewer.app, qml.app
But no folder in Applications/QGis3
Now I wanted to uninstall it with the commands:
sudo port clean --all qgis3 sudo port uninstall --follow-dependents qgis3
This does not work. There is no error message or any other reaction.
I hope you can help me. There is a relation to the tickets, but I don't see a complete match and couldn't follow the solutions unfortunately....
Thanks a lot!
Snippet from the installation process and occurred errors:
Error: Failed to build py311-mapclassify: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-mapclassify/py311-mapclassify/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port qgis3 failed
Infos about the installed qgis3 Version:
qgis3 @3.28.7_1 (gis) Variants: debug, grass, grass7, postgresql10, postgresql11, postgresql12, postgresql13, postgresql14, [+]postgresql15, postgresql95, postgresql96, proj6, proj7, proj8, [+]proj9, [+]python310, python37, python38, python39, server, universal Description: QGIS is a full-featured, user-friendly, free-and-open-source (FOSS) geographical information system (GIS) that runs on Unix platforms, Windows, and MacOS. Homepage: https://www.qgis.org/ Build Dependencies: cmake, pkgconfig, bison, ld64, flex, py310-pyqt-builder, py310-sip Library Dependencies: libiconv, expat, libtasn1, libzip, openssl, gsl, geos, gdal, PDAL, protobuf3-cpp, exiv2, sqlite3, spatialite, spatialindex, qca-qt5, qca-qt5-ossl, qtkeychain-qt5, qwt-qt5, qjson-qt5, postgresql15, python310, py310-pyqt5, py310-pyqt5-scintilla, py310-gdal, py310-six, py310-protobuf3, proj9, qt5-qtbase, qt5-qtwebkit, qt5-qtscript, qt5-sqlite-plugin, qt5-qtscxml, qt5-qtxmlpatterns Runtime Dependencies: py310-psycopg2, py310-requests, py310-owslib, py310-yaml, py310-jinja2, py310-pygments Platforms: darwin License: GPL-2+ Maintainers: Email: vince@macports.org, GitHub: Veence Policy: openmaintainer
Attachments (4)
Change History (20)
comment:1 follow-up: 7 Changed 13 months ago by jmroot (Joshua Root)
Cc: | nilason added |
---|---|
Owner: | set to Veence |
Port: | qgis3 added |
Status: | new → assigned |
comment:2 Changed 13 months ago by nilason (Nicklas Larsson)
Looks like problem installing py-mapclassify, addressed with https://github.com/macports/macports-ports/pull/20738
comment:4 Changed 13 months ago by nilason (Nicklas Larsson)
Replying to kunterbunt23:
Uninstalling failed QGIS3 installation via MacPorts on macOS Ventura 13.3.1
Did you have the opportunity to try again? It should work now.
comment:5 Changed 13 months ago by kunterbunt23
Sorry for the late reply. I only got around to trying it again today. Attached is the installation process of QGIS. Towards the end there are some error messages again. I have not yet installed any more of the ports mentioned in the process (see code block). You can also find the file main.log in the original ticket above.
Errors:
Error: Failed to fetch isl: Could not resolve host: ywg.ca.distfiles.macports.org Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_isl/isl/main.log for details. Error: Problem while installing isl Error: rev-upgrade failed: Error rebuilding py311-h5py Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Installation Process (Code Block):
---> Computing dependencies for libpng ---> Fetching archive for libpng ---> Attempting to fetch libpng-1.6.40_0.darwin_22.arm64.tbz2 from https://packages.macports.org/libpng ---> Attempting to fetch libpng-1.6.40_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/libpng ---> Installing libpng @1.6.40_0 ---> Cleaning libpng ---> Computing dependencies for libpng ---> Deactivating libpng @1.6.39_0 ---> Cleaning libpng ---> Activating libpng @1.6.40_0 ---> Cleaning libpng ---> Computing dependencies for libedit ---> Fetching archive for libedit ---> Attempting to fetch libedit-20230828-3.1_0.darwin_22.arm64.tbz2 from https://packages.macports.org/libedit ---> Attempting to fetch libedit-20230828-3.1_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/libedit ---> Installing libedit @20230828-3.1_0 ---> Cleaning libedit ---> Computing dependencies for libedit ---> Deactivating libedit @20221030-3.1_0 ---> Cleaning libedit ---> Activating libedit @20230828-3.1_0 ---> Cleaning libedit ---> Computing dependencies for libxslt ---> Fetching archive for libxslt ---> Attempting to fetch libxslt-1.1.38_0.darwin_22.arm64.tbz2 from https://packages.macports.org/libxslt ---> Attempting to fetch libxslt-1.1.38_0.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/libxslt ---> Installing libxslt @1.1.38_0 ---> Cleaning libxslt ---> Computing dependencies for libxslt ---> Deactivating libxslt @1.1.37_2 ---> Cleaning libxslt ---> Activating libxslt @1.1.38_0 ---> Cleaning libxslt ---> Computing dependencies for qgis3 The following dependencies will be installed: ''deleted to short the Code Block (if needed I can send them again'' Continue? [Y/n]: Y ---> Fetching archive for python311 ---> Attempting to fetch python311-3.11.6_0+lto+optimizations.darwin_22.arm64.tbz2 from https://packages.macports.org/python311 ---> Attempting to fetch python311-3.11.6_0+lto+optimizations.darwin_22.arm64.tbz2.rmd160 from https://packages.macports.org/python311 ''shorted to keep the code clean'' ---> Fetching archive for qgis3 ---> Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from https://packages.macports.org/qgis3 ---> Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from https://cph.dk.packages.macports.org/qgis3 ---> Attempting to fetch qgis3-3.32.3_1+plugin_support311+postgresql15+proj9+python311.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/qgis3 ---> Fetching distfiles for qgis3 ---> Attempting to fetch QGIS-3_32_3.tar.gz from https://distfiles.macports.org/qgis3 ---> Verifying checksums for qgis3 ---> Extracting qgis3 ---> Applying patches to qgis3 ---> Configuring qgis3 ---> Building qgis3 ---> Staging qgis3 into destroot ---> Installing qgis3 @3.32.3_1+plugin_support311+postgresql15+proj9+python311 ---> Activating qgis3 @3.32.3_1+plugin_support311+postgresql15+proj9+python311 ---> Cleaning qgis3 ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 24 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: py311-h5py @3.10.0 Continue? [Y/n]: Y ---> Computing dependencies for isl ---> Fetching archive for isl ---> Attempting to fetch isl-0.24_1.darwin_22.arm64.tbz2 from https://packages.macports.org/isl ---> Attempting to fetch isl-0.24_1.darwin_22.arm64.tbz2 from https://cph.dk.packages.macports.org/isl ---> Attempting to fetch isl-0.24_1.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/isl ---> Fetching distfiles for isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://cph.dk.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://fra.de.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://ema.uk.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://fco.it.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://mirror.fcix.net/macports/distfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://jog.id.distfiles.macports.org/macports/distfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://jnb.za.distfiles.macports.org/distfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://pek.cn.distfiles.macports.org/macports/distfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://cjj.kr.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://astuteinternet.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://cfhcable.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://deac-ams.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://deac-fra.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://deac-riga.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://excellmedia.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://freefr.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://gigenet.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://iweb.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://jaist.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://jztkft.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://kumisystems.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://liquidtelecom.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://managedway.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://nchc.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://netactuate.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://netcologne.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://netix.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://newcontinuum.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://phoenixnap.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://pilotfiber.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://razaoinfo.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://tenet.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://svwh.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://ufpr.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://versaweb.dl.sourceforge.net/libisl ---> Attempting to fetch isl-0.24.tar.bz2 from http://atl.us.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://kmq.jp.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://mse.uk.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://nue.de.distfiles.macports.org/isl ---> Attempting to fetch isl-0.24.tar.bz2 from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/isl ---> Attempting to fetch isl-0.24.tar.bz2 from https://ywg.ca.distfiles.macports.org/mirror/macports/distfiles/isl Error: Failed to fetch isl: Could not resolve host: ywg.ca.distfiles.macports.org Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_isl/isl/main.log for details. Error: Problem while installing isl Error: rev-upgrade failed: Error rebuilding py311-h5py Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. ---> Some of the ports you installed have notes: ffmpeg has the following notes: Support for rav1e now disabled by default; enable via +rav1e This build of ffmpeg includes GPLed code and is therefore licensed under GPL v2 or later. The following modules are GPLed: libvidstab libx264 libx265 libxvid postproc To include all nonfree, GPLed and LGPL code use variant +nonfree. To remove nonfree and GPLed code leaving only LGPL code remove the +gpl2 variant. kealib has the following notes: To be able to use KEA format in GDAL, set and export (or setenv) the variable GDAL_DRIVER_PATH to /opt/local/lib/gdalplugins. leveldb has the following notes: Before version 1.23 leveldb has RTTI and a lot of code uses typeid. Version 1.23 disables RTTI which lead to broken things from plyvel to ceph. We re-enable RTTI by default, if you wish to disable it switch off rtti variant by: port upgrade --enforce-variants leveldb -rtti Before version 1.21 leveldb exposed helpers/memenv/memenv.h and some code uses it. Version 1.21 prevent that which lead to broken things like qtwebkit. We re-enable exposing memenv by default, if you wish to disable it switch off memenv variant by: port upgrade --enforce-variants leveldb -memenv opencv4 has the following notes: * opencv4 binaries are now prefixed with 'opencv4_', to prevent conflicts with other OpenCV-related ports. * Python bindings are now implemented via subports 'pyXX-opencv4', to support multiple Python versions side-by-side. py311-cython has the following notes: To make the Python 3.11 version of Cython the one that is run when you execute the commands without a version suffix, e.g. 'cython', run: port select --set cython cython311 py311-fonttools has the following notes: To make the Python 3.11 version of fonttools the one that is run when you execute the commands without a version suffix, e.g. 'fonttools', run: sudo port select --set fonttools fonttools-311 py311-ipython has the following notes: To make this the default IPython or IPython3 (i.e., the version run by the 'ipython' or 'ipython3' commands), run one or both of: sudo port select --set ipython py311-ipython sudo port select --set ipython3 py311-ipython py311-matplotlib has the following notes: The default backend is the interactive Mac OS X backend. Different backends can be specified using the ~/.matplotlib/matplotlibrc file. More details regarding backends can be found in the matplotlib FAQ: https://matplotlib.org/stable/users/explain/backends.html py311-nbconvert has the following notes: * To convert markdown to formats other than HTML, nbconvert uses pandoc. Install it by running: sudo port install pandoc * To convert notebooks to PDF, nbconvert makes use of LaTeX and the XeTeX as the rendering engine. Install it by running: sudo port install texlive-xetex py311-pygments has the following notes: To make the Python 3.11 version of Pygments the one that is run when you execute the commands without a version suffix, e.g. 'pygmentize', run: port select --set pygments py311-pygments py311-sip has the following notes: py311-sip is available under a PSF license with one addition: 4. Licensee may not use SIP to generate Python bindings for any C or C++ library for which bindings are already provided by Riverbank. GPL-2 or GPL-3 licenses are also available. For details see /opt/local/share/doc/py311-sip/LICENSE [-GPL2 -GPL3] py311-sympy has the following notes: To make the Python 3.11 version of py-sympy the one that is run when you execute the commands without a version suffix, e.g. 'isympy', run: port select --set py-sympy py311-sympy python311 has the following notes: To make this the default Python or Python 3 (i.e., the version run by the 'python' or 'python3' commands), run one or both of: sudo port select --set python python311 sudo port select --set python3 python311 qgis3 has the following notes: Some QGIS plugins may fail with error message noting missing PyQt5.QtWebKit module, this could be solved by manually installing the module with e.g. `sudo port install py311-pyqt5 +webkit` (just make sure you use the same Python version for py-pyqt5 as for the QGIS Python bindings). rsgislib has the following notes: Install a Python sub-port to install Python bindings, for available sub-ports see: 'port info --subports rsgislib'. shared-mime-info has the following notes: A startup item has been generated that will start shared-mime-info with launchd, and will be enabled automatically on activation. Execute the following command to manually _disable_ it: sudo port unload shared-mime-info
Thanks for the help! What is the best way to proceed now?
comment:6 Changed 13 months ago by kunterbunt23
Replying to kunterbunt23:
Uninstalling failed QGIS3 installation via MacPorts on macOS Ventura 13.3.1
I posted a question on stackoverflow (no answer so far). https://stackoverflow.com/questions/77261338/uninstall-qgis-and-related-ports-with-macports
I installed qgis3 using the following command
sudo port install qgis3. The installation looked good at first, but it seems to be incomplete or partially failed. If there is a way to view the history retroactively, then I would run that and attach it here.
I now have folders in MacPorts with the following apps:
- Python 3.11: IDLE.app, Python Launcher.app
- Qt5: Assistant.app, Designer.app, Linguist.app, pixeltool.app, qdbusviewer.app, qml.app
But no folder in Applications/QGis3
Now I wanted to uninstall it with the commands:
sudo port clean --all qgis3 sudo port uninstall --follow-dependents qgis3This does not work. There is no error message or any other reaction.
I hope you can help me. There is a relation to the tickets, but I don't see a complete match and couldn't follow the solutions unfortunately....
Thanks a lot!
Snippet from the installation process and occurred errors:
Error: Failed to build py311-mapclassify: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-mapclassify/py311-mapclassify/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port qgis3 failedInfos about the installed qgis3 Version:
qgis3 @3.28.7_1 (gis) Variants: debug, grass, grass7, postgresql10, postgresql11, postgresql12, postgresql13, postgresql14, [+]postgresql15, postgresql95, postgresql96, proj6, proj7, proj8, [+]proj9, [+]python310, python37, python38, python39, server, universal Description: QGIS is a full-featured, user-friendly, free-and-open-source (FOSS) geographical information system (GIS) that runs on Unix platforms, Windows, and MacOS. Homepage: https://www.qgis.org/ Build Dependencies: cmake, pkgconfig, bison, ld64, flex, py310-pyqt-builder, py310-sip Library Dependencies: libiconv, expat, libtasn1, libzip, openssl, gsl, geos, gdal, PDAL, protobuf3-cpp, exiv2, sqlite3, spatialite, spatialindex, qca-qt5, qca-qt5-ossl, qtkeychain-qt5, qwt-qt5, qjson-qt5, postgresql15, python310, py310-pyqt5, py310-pyqt5-scintilla, py310-gdal, py310-six, py310-protobuf3, proj9, qt5-qtbase, qt5-qtwebkit, qt5-qtscript, qt5-sqlite-plugin, qt5-qtscxml, qt5-qtxmlpatterns Runtime Dependencies: py310-psycopg2, py310-requests, py310-owslib, py310-yaml, py310-jinja2, py310-pygments Platforms: darwin License: GPL-2+ Maintainers: Email: vince@macports.org, GitHub: Veence Policy: openmaintainer
Changed 13 months ago by kunterbunt23
comment:7 Changed 13 months ago by kunterbunt23
Replying to jmroot:
It looks like you don't have qgis3 installed, which you can verify with
port installed qgis3
. That would mean the installation failed (but it looks like many of its dependencies were installed first.) Please runsudo port clean qgis3
and thensudo port install qgis3
, and if the latter fails, it will print an error message with the path to a file calledmain.log
, which you should add to this ticket as an attachment.
I added the file main.log to the original Ticket.
comment:8 Changed 13 months ago by nilason (Nicklas Larsson)
Please try the following:
sudo port clean qgis3 sudo port selfupdate sudo port upgrade outdated sudo port install qgis3
If the installation fails again, attach the main.log
file.
(And please avoid posting such a long log "in-page", as in comment 5).
comment:9 follow-up: 10 Changed 13 months ago by kunterbunt23
Sorry, will not happen again. I have installed QGIS and was able to launch it. During the startup process, warnings and error messages appeared (see screenshot).
Changed 13 months ago by kunterbunt23
Attachment: | Bildschirmfoto 2023-10-19 um 13.50.37.png added |
---|
Error Messages during Starting QGIS3
comment:10 Changed 13 months ago by nilason (Nicklas Larsson)
Replying to kunterbunt23:
Sorry, will not happen again.
No worries, just difficult to follow the discussion with such obstacles :)
I have installed QGIS and was able to launch it. During the startup process, warnings and error messages appeared (see screenshot).
That's great! Seems you have a plugin which is in need of the python module future
. Try installing it with sudo port install py311-future
.
comment:11 follow-up: 13 Changed 13 months ago by kunterbunt23
Done. Got another Error Message. I will add it too. Could there be a connection with the PlugIn UMEP?
Changed 13 months ago by kunterbunt23
Attachment: | Bildschirmfoto 2023-10-19 um 14.10.54.png added |
---|
Second Error Message
comment:12 follow-up: 14 Changed 13 months ago by kunterbunt23
Actually, I still wanted to switch to the stable long-term version. Is that "just like that" or do I have to uninstall the current version and reinstall everything?
comment:13 Changed 13 months ago by nilason (Nicklas Larsson)
Replying to kunterbunt23:
Done. Got another Error Message. I will add it too. Could there be a connection with the PlugIn UMEP?
No, that one is a completely different issue, see #67844. Probably nothing to worry about.
comment:14 Changed 13 months ago by nilason (Nicklas Larsson)
Replying to kunterbunt23:
Actually, I still wanted to switch to the stable long-term version. Is that "just like that" or do I have to uninstall the current version and reinstall everything?
Yes you have to uninstall qgis3
and then install qgis3-ltr
. Now with all dependencies in place, that shouldn't be any problem.
Changed 13 months ago by kunterbunt23
Attachment: | Bildschirmfoto 2023-10-19 um 15.48.39.png added |
---|
Error trough starting QGIS3 LTR
comment:16 Changed 13 months ago by nilason (Nicklas Larsson)
The latest error indicates there are more python modules missing for that plugin. Unfortunately the SuPy
is not available as port (yet). I'll see what I can do. In the mean time you could deactivate/uninstall the plugin.
It looks like you don't have qgis3 installed, which you can verify with
port installed qgis3
. That would mean the installation failed (but it looks like many of its dependencies were installed first.) Please runsudo port clean qgis3
and thensudo port install qgis3
, and if the latter fails, it will print an error message with the path to a file calledmain.log
, which you should add to this ticket as an attachment.