I'm creating a custom Python script inside QGIS Processing in Mac OS system, I encountered a serious error cause a crash of QGIS application. If in my Python script I use this library:
from pathlib import Path
QGIS crash
I partially solve the issue using this:
import ntpath
and Work fine. Someone have a similar experience about?
-
Can you launch QGIS in a terminal and just enter that line in its Python Console to crash it? If so, does it print something to the terminal?bugmenot123– bugmenot1232024年02月05日 15:48:37 +00:00Commented Feb 5, 2024 at 15:48
-
in Python console inside Qgis app it work fine. Qgis app crash when I use pathlib inside a QgisProcessing scriptgianfranco di pietro– gianfranco di pietro2024年02月06日 08:18:07 +00:00Commented Feb 6, 2024 at 8:18
-
1Can you share a minimal script that triggers this?bugmenot123– bugmenot1232024年02月06日 09:34:50 +00:00Commented Feb 6, 2024 at 9:34
-
@bugmenot123 The code is in my repo project, heregianfranco di pietro– gianfranco di pietro2024年02月06日 10:44:40 +00:00Commented Feb 6, 2024 at 10:44
-
1That's a lot of code unrelated to the import, can you minimize and still get a crash?bugmenot123– bugmenot1232024年02月06日 16:12:06 +00:00Commented Feb 6, 2024 at 16:12
1 Answer 1
I partially solve the issue using this:
import ntpath
and Work fine. Someone have a similar experience about?
Explore related questions
See similar questions with these tags.