Skip to content
Back to skills

4 Failure Diagnosis

ASecurity

Sub-skill of qgis: 4. FAILURE DIAGNOSIS.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 4-failure-diagnosis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 4 Failure Diagnosis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 4 Failure Diagnosis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-4-failure-diagnosis-7bc2bd48/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-4-failure-diagnosis-7bc2bd48)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qgis-4-failure-diagnosis
description: 'Sub-skill of qgis: 4. FAILURE DIAGNOSIS.'
version: 1.0.0
category: engineering/gis
type: reference
scripts_exempt: true
---

# 4. FAILURE DIAGNOSIS

## 4. FAILURE DIAGNOSIS


| Error | Cause | Fix |
|-------|-------|-----|
| `Layer is not valid` | Wrong path, unsupported driver, malformed file | Check path; verify with `ogrinfo`; inspect CRS |
| `QgsApplication not initialized` | Missing `initQgis()` call | Call `qgs.initQgis()` before any QGIS operation |
| `QGIS prefix path not set` | Missing env setup | Set `QgsApplication.setPrefixPath("/usr", True)` or use default |
| `No module named 'qgis'` | QGIS Python not on PYTHONPATH | Run inside QGIS Python console or set `PYTHONPATH` |
| `CRS is not valid / unknown` | EPSG code not found | Use `QgsCoordinateReferenceSystem.fromEpsgId(4326)` |
| Processing `OUTPUT is None` | Algorithm failed silently | Check `feedback.pushWarning()` output; validate inputs |
| `offscreen` platform error | Qt platform missing | Install `libqt5gui5`; set `QT_QPA_PLATFORM=offscreen` |
| Shapefile truncated field names | Shapefile 10-char limit | Export to GeoPackage instead |

---

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.