0

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?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Feb 5, 2024 at 15:41
7
  • 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? Commented 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 script Commented Feb 6, 2024 at 8:18
  • 1
    Can you share a minimal script that triggers this? Commented Feb 6, 2024 at 9:34
  • @bugmenot123 The code is in my repo project, here Commented Feb 6, 2024 at 10:44
  • 1
    That's a lot of code unrelated to the import, can you minimize and still get a crash? Commented Feb 6, 2024 at 16:12

1 Answer 1

0

I partially solve the issue using this:

import ntpath

and Work fine. Someone have a similar experience about?

answered Feb 5, 2024 at 15:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.