You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I now start QGIS and from scipy.interpolate import interp1d from the python shell, (the first) QGIS gets stucked and starts a second QGIS instance.
First QGIS
The first QGIS instance does not respond anymore, until the second is closed:
It shows the following python shell stacktrace:
# Python Console
# Use iface to access QGIS API interface or type '?' for more info
# Security warning: typing commands from an untrusted source can harm your computer
from scipy.interpolate import interp1d
Traceback (most recent call last):
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/Users/jakimowb/miniforge3/envs/example/share/qgis/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/scipy/__init__.py", line 67, in <module>
from scipy._lib import _pep440
File "/Users/jakimowb/miniforge3/envs/example/share/qgis/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/scipy/_lib/__init__.py", line 12, in <module>
from scipy._lib._testutils import PytestTester
File "/Users/jakimowb/miniforge3/envs/example/share/qgis/python/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/scipy/_lib/_testutils.py", line 21, in <module>
_tags = list(sys_tags())
^^^^^^^^^^^^^^^^
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/packaging/tags.py", line 543, in sys_tags
yield from cpython_tags(warn=warn)
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/packaging/tags.py", line 212, in cpython_tags
platforms = list(platforms or platform_tags())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jakimowb/miniforge3/envs/example/lib/python3.12/site-packages/packaging/tags.py", line 412, in mac_platforms
version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
Second QGIS
The new QGIS instance shows several warnings & errors in the log panel. Users/jakimow is the current directory from which the 1st qgis instance was started from shell:
General Log:
2024-02-22T11:41:07 WARNING Unable to load /Users/jakimowb/-sS
2024-02-22T11:41:07 WARNING Unable to load /Users/jakimowb/-c
2024-02-22T11:41:07 WARNING Unable to load /Users/jakimowb/import platform;print(platform.mac_ver()[0])
Messages Log:
2024-02-22T11:41:07 CRITICAL Authentication System : DISABLED. Resources authenticating via the system can not be accessed
2024-02-22T11:41:07 CRITICAL Invalid Data Source : /Users/jakimowb/-sS is not a valid or recognized data source.
2024-02-22T11:41:07 CRITICAL Invalid Data Source : /Users/jakimowb/-c is not a valid or recognized data source.
2024-02-22T11:41:07 CRITICAL Invalid Data Source : /Users/jakimowb/import platform; print(platform.mac_ver()[0]) is not a valid or recognized data source.
All plugins are disabled. Open the plugin manager fails with:
Solution to issue cannot be found in the documentation.
Issue
I create a new empty conda environment with QGIS and scipy as:
When I now start QGIS and
from scipy.interpolate import interp1d
from the python shell, (the first) QGIS gets stucked and starts a second QGIS instance.First QGIS
The first QGIS instance does not respond anymore, until the second is closed:
It shows the following python shell stacktrace:
Second QGIS
The new QGIS instance shows several warnings & errors in the log panel.
Users/jakimow
is the current directory from which the 1st qgis instance was started from shell:General Log:
Messages Log:
All plugins are disabled. Open the plugin manager fails with:
System tested on
macBook Pro, 2020
1,4 GHz Quad-Core Intel Core i5
macOS 14.3.1 Sonoma
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: