qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.66k stars 3.02k forks source link

Python Erros or Start-up Mac OS #59321

Closed AndrewLindsay closed 3 weeks ago

AndrewLindsay commented 3 weeks ago

What is the bug or the crash?

QGIS Startup Errors

Couldn't create run_startup_script.

Traceback (most recent call last):   File "", line 2, in   File "QgsPythonUtilsImpl::checkSystemImports [run_startup_script]", line 2, in   File "QgsPythonUtilsImpl::checkSystemImports [run_startup_script]", line 7, in StartupScriptRunner TypeError: unsupported operand type(s) for |: 'type' and 'type'

Python version:
3.9.5 (default, Sep 10 2021, 16:18:19) 
[Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version:
3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path:
['/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

An error occurred during execution of following code:
is_startup_script_executed = _ssr.run_startup_script(pyqgstart)

Traceback (most recent call last):   File "", line 1, in NameError: name '_ssr' is not defined

Python version:
3.9.5 (default, Sep 10 2021, 16:18:19) 
[Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version:
3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path:
['/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

An error occurred during execution of following code:
_ssr.log_messages()

Traceback (most recent call last):   File "", line 1, in NameError: name '_ssr' is not defined

Python version:
3.9.5 (default, Sep 10 2021, 16:18:19) 
[Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version:
3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path:
['/Applications/QGIS.app/Contents/MacOS/../Resources/python', '/Users/andrewlindsay/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/andrewlindsay/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

Steps to reproduce the issue

Start Application - All errors during start-up of app.

Versions

QGIS version3.40.0-Bratislava
QGIS code revision1d561ad8ad9
 
Libraries
Qt version5.15.2
Python version3.9.5
GDAL/OGR version3.3.2
PROJ version8.1.1
EPSG Registry database versionv10.028 (2021-07-07)
GEOS version3.9.1-CAPI-1.14.2
SQLite version3.35.2
PDAL version2.3.0
PostgreSQL client versionunknown
SpatiaLite version5.0.1
QWT version6.1.6
QScintilla2 version2.11.5
OS versionmacOS 15.0
 
Active Python plugins
FreehandRasterGeoreferencer0.8.3
SpreadsheetLayers2.1.2
profiletool4.2.6
quick_map_services0.19.34
Multi_Ring_Buffer1.1
HCMGIS24.10.20
latlontools3.7.2
xyz_3d0.1
ProjectSetup0.8
valuetool3.0.19
ProjectPackager0.7.4
processing2.12.99
grassprovider2.12.99
db_manager0.1.20
MetaSearch0.3.6

Supported QGIS version

New profile

Additional context

No response

TroyPudney commented 3 weeks ago

Same issue and error, MacOS 15.1 Mac mini M2 Pro

AtmosphericIgnition commented 3 weeks ago

Same issue here, macOS 15.1 (24B83), M1 Max MacBook Pro.

I'm using QGIS installed through Homebrew Cask.

sfc-gh-obielov commented 3 weeks ago

Same issue (M1 Max MacBook Pro): QGIS version | 3.40.0-Bratislava QGIS code revision | 1d561ad8ad9   Libraries Qt version | 5.15.2 Python version | 3.9.5 GDAL/OGR version | 3.3.2 PROJ version | 8.1.1 EPSG Registry database version | v10.028 (2021-07-07) GEOS version | 3.9.1-CAPI-1.14.2 SQLite version | 3.35.2 PDAL version | 2.3.0 PostgreSQL client version | unknown SpatiaLite version | 5.0.1 QWT version | 6.1.6 QScintilla2 version | 2.11.5 OS version | macOS 14.7   Active Python plugins processing | 2.12.99 grassprovider | 2.12.99 db_manager | 0.1.20 MetaSearch | 0.3.6

sfc-gh-obielov commented 3 weeks ago

@corrosive4354 3.40.0 is the latest available version for Mac: https://qgis.org/download/

ThomasR128 commented 3 weeks ago

Same issue here.

M1 MacBook Air macOS 14.7

Python version: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version: 3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

And: Python 3.9.5 ???? That is more than three years old. Current version is 3.13

JuanBreva commented 3 weeks ago

I'm having exactly the same issue.

QGIS version: 3.40.0-Bratislava.

Running on Mac OS Monterey.

belceli commented 3 weeks ago

I'm having exactly the same issue.

QGIS version: 3.40.0-Bratislava.

Running on MacOS Monterey.

abuabara commented 3 weeks ago

Me too. Tried to reinstall the version posted yesterday (https://download.qgis.org/downloads/macos/pr/qgis_pr_final-3_40_0_20241102_172144.dmg 2024-11-03 00:46) but still problematic.

pbfi commented 3 weeks ago

This is happening for me. I get 3 errors in a row.

Couldn't create run_startup_script. An error occurred during execution of following code: is_start_up_sxriupt_executed = _ssr.run_startup_script (pywgstart) An error occurred during excecution of following code:_ssr.log_messages()

After clicking through these my map project loads up ok. I've not done too much else yet to know if there are other down stream effects of the errors.

QGIS version: 3.40.0-Bratislava.

MacBook Pro 2.3 GHz Quad-Core Intel Core i7 Sequoia 15.1

agiudiceandrea commented 3 weeks ago

@AndrewLindsay, thanks for reporting. Does the issue completely prevent QGIS to start and run? What is the last QGIS version that the issue didn't occur with?

kommen commented 3 weeks ago

This error is related to this recent change: https://github.com/qgis/QGIS/commit/02236e6b9966cda997c9b71f6deb63234989c0a4

AndrewLindsay commented 3 weeks ago

@AndrewLindsay, thanks for reporting. Does the issue completely prevent QGIS to start and run? What is the last QGIS version that the issue didn't occur with?

It does not stop start-up, and I have not seen any issues once running. It is a new issue with this version. The previous version did not have any issues.

ostr00000 commented 3 weeks ago

It seems there is syntax error in this expression:

def run_startup_script(self, script_path: pathlib.Path | str | None) -> bool:
    ...

This error only appears when python<=3.9 is used (union for types was introduced in python==3.10 in https://peps.python.org/pep-0604/ )

It should be easy to fix. I am going to create PR later today.

ThomasR128 commented 3 weeks ago

There are easy fixes, and there are good fixes.

Python 3.9 is more than three years old. People, including those working on QGIS, will since have been accustomed to newer versions (3.13 is current) – and no-one will remember what was not yet supported in 2021. IMHO, the good fix would be to use an up-to-date Python version.

agiudiceandrea commented 3 weeks ago

The issue should also occur on Debian bullseye, since it provides Python 3.9 (anyway, actually QGIS 3.40 is not yet available on Debian bullseye). (Binary packages for QGIS >= 3.40 will no longer be provided by qgis.org for Debian bullseye https://lists.osgeo.org/pipermail/qgis-developer/2024-November/067133.html)

@ThomasR128, on macOS you can use QGIS also e.g. either from MacPorts or form conda-forge which use more recent version of Python.

ThomasR128 commented 3 weeks ago

@agiudiceandrea Yes, I certainly could, although I use Homebrew and I’m not sure if Homebrew and Mac-ports can co-exist. But that’s beside the point.

If MacPorts/conda-forge use newer versions of Python, and if @ostr00000 is right, this would just mean that the error does not manifest there. It is still there.

Your suggestion doesn’t stop QGIS delevoppers using functionality that was introduced after 3.9 because no-one can be expected to remember the Python revision history. And if MacPorts/conda-forge are able to bundle newer Python versions, why isn’t the official release?

sfc-gh-obielov commented 3 weeks ago

@ThomasR128 While many GIS experts are very familiar with GIS tools, they might have limited experience with SQL and Python. They may only have a MacBook Pro with the default version of Python, on which they install QGIS, and updating Python version could be a barrier.

ThomasR128 commented 3 weeks ago

@sfc-gh-obielov The default Python version that comes with the Mac (under /usr/local/bin/python3) is not used by Python. You don’t update this, macOS updates will do that for you.

QGIS comes with its own Python (in the application bundle under /Applications/QGIS.app/Contents/MacOS/lib/python3.9) which is four versions behind, while non-official releases are more up-to-date, hence my comments above.

palikao commented 3 weeks ago

Same here, macOS 14.7.1 on M1 pro

KristofBostoen commented 2 weeks ago

Similar problem on Mac OS 14.4 (23E214) M2 Home-Brew Install using Rosetta 2. Received 3 errors at startup which seem all Python related., but got to the start-up screen. Not sure what is affected. Installed QGIS for in preparation for a course. Looked online for a solution which got me here. Thanks in advance for any help. Kindly Kristof

Couldn't create run_startup_script. Traceback (most recent call last): File "", line 2, in File "QgsPythonUtilsImpl::checkSystemImports [run_startup_script]", line 2, in File "QgsPythonUtilsImpl::checkSystemImports [run_startup_script]", line 7, in StartupScriptRunner TypeError: unsupported operand type(s) for |: 'type' and 'type'

Python version: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version: 3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path: ['/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

An error occurred during execution of following code: is_startup_script_executed = _ssr.run_startup_script(pyqgstart)

Traceback (most recent call last): File "", line 1, in NameError: name '_ssr' is not defined

Python version: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version: 3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path: ['/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

An error occurred during execution of following code: _ssr.log_messages()

Traceback (most recent call last): File "", line 1, in NameError: name '_ssr' is not defined

Python version: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]

QGIS version: 3.40.0-Bratislava 'Bratislava', 1d561ad8ad9

Python path: ['/Applications/QGIS.app/Contents/MacOS/../Resources/python', '/Users/kb/Library/Application Support/QGIS/QGIS3/profiles/default/python', '/Users/kb/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Applications/QGIS.app/Contents/MacOS/lib/python39.zip', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/lib-dynload', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pyproj-3.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numpy-1.20.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Rtree-0.9.7-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/cftime-1.2.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/GDAL-3.3.2-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/pandas-1.3.3-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/patsy-0.5.1-py3.9.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Pillow-7.2.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/Fiona-1.8.13.post1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/matplotlib-3.3.0-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/netCDF4-1.5.4-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/rasterio-1.1.5-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/scipy-1.5.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/numba-0.50.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/opencv_contrib_python-4.3.0.36-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/statsmodels-0.11.1-py3.9-macosx-10.13.0-x86_64.egg', '/Applications/QGIS.app/Contents/MacOS/lib/python3.9/site-packages/geopandas-0.8.1-py3.9.egg']

agiudiceandrea commented 2 weeks ago

@KristofBostoen, the issue has been already fixed. The fix will be available in QGIS >= 3.34.1.

Jachimo commented 2 weeks ago

I am still getting the three errors on startup, using QGIS 3.40.0-Bratislava (1d561ad8ad9).

On the About page, QGIS reports that it is using Python 3.9.5. I presume (??) this is the version that's embedded inside QGIS.app, but I'm not entirely sure.

agiudiceandrea commented 2 weeks ago

@jachimo, have you read the previous comments? The issue only occurs in QGIS 3.40.0 and will be fixed in QGIS 3.40.1 and later versions.

Jachimo commented 2 weeks ago

@agiudiceandrea Hello, yes I saw that. What I was trying to let everyone know was that the error seems to still be present in QGIS 3.40, which I would have expected to contain the fix from version 3.34.

That said, I am not familiar enough with QGIS to know if this is actually a regression. But I thought it was worth mentioning.

agiudiceandrea commented 2 weeks ago

@Jachimo , the issue occurs only using QGIS 3.40.0 and will be fixed in QGIS 3.40.1 and later versions.

kasra-keshavarz commented 2 weeks ago

Is there a link to the older version for Mac (3.38.3?) that can be downloaded while the new version is being prepared? I tried to search for one but couldn't find any.

drf5n commented 2 weeks ago

Is there a link to the older version for Mac (3.38.3?) that can be downloaded while the new version is being prepared? I tried to search for one but couldn't find any.

https://download.qgis.org/downloads/macos/pr/

https://download.qgis.org/downloads/macos/pr/qgis_pr_final-3_38_3_20240913_122840.dmg

And you can see the intervals between publishing releases.

sabinz commented 2 weeks ago

I've had these problems for a while. I cannot change the Python version in QGIS no matter what I try. It seems to be bundled with 3.9, but everyone says the syntax that it relies upon needs 3.10+... Hopefully this can be fixed.