Skip to main content

Questions tagged [assertionerror]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
100 views

PyQGIS QgsTask AssertionError

I am trying the QgsTask feature from PyQGIS. There is a large function which needs to be run in a task. def starttask(self): task = QgsTask.fromFunction("Perform Task", self.chartload) ...
Christian Land's user avatar
0 votes
1 answer
57 views

While trying to insert a layer to an existing .mxd, I get an AssertionError, and can't figure out why

I am trying to add new raster layers to an existing .mxd (and then eventually remove the old ones, once I've updated the new raster layer's symbology to match the old ones). I'm running into an issue ...
Kristine's user avatar
6 votes
1 answer
901 views

AssertionError when applying expression to field value with PyQGIS

I am trying create new columns in an attribute table and fill them with values with expressions using Python Console in QGIS. I successfully create the new columns but when I try to fill them, I get ...
Anthony's user avatar
  • 133
1 vote
1 answer
306 views

Opening GRASS GIS 7.8.4 Results in Error

When trying to create a new location in GRASS GIS 7.8.4 on a machine running Windows 11 I get the following error: Traceback (most recent call last): File "C:\PROGRA~1\QGIS32~1.1\apps\grass\...
Nandula's user avatar
  • 783
0 votes
1 answer
124 views

AssertionError: Invalid MXD filename

I am trying to publish a draft service definition using arcpy.mapping.CreateMapSDDraft and am getting the referenced Assertion Error. I've tried the responses to users with similar questions with no ...
r2dave2's user avatar
  • 61
1 vote
0 answers
115 views

arcpy.mapping.UpdateLayer returns runtime error

I am trying to update the style for a layer present in my saved map document with a source .lyr file present on my disk in the home folder. It returns an assertion error. The code I am trying to run ...
Barracuda's user avatar
3 votes
3 answers
443 views

Projection fails when ran with assertions enabled [closed]

The following minimal example runs fine only when assertions are disabled: src/main/kotlin/main.kt: package com.regions import org.geotools.geojson.feature.FeatureJSON import org.geotools.geometry....
Tobias Hermann's user avatar
0 votes
1 answer
261 views

Add Table View to Data View in ArcMap gives Assertion Error

I'm trying to create a Python AddIn for ArcMap 10.6 and the first process of the tool will be to add a tableview to a map document. At this point I just want python code to bring up rows from a table ...
geoJshaun's user avatar
  • 1,535
2 votes
0 answers
328 views

Installing GeoTrace plugin in QGIS on Mac OSX?

I am trying to install the experimental plugin called GeoTrace in QGIS 3.2 on Mac OSX. Error message is as follows: File "/Users/petergriffin/Library/Application Support/QGIS/QGIS3/profiles/default/...
Geodatsci's user avatar
  • 123
1 vote
1 answer
221 views

Adding geoprocessing results as layer to dataframe using ArcPy? [duplicate]

I am still new to ArcPy. I'm running a really simple script, it selects a feature from a dataset (one town out of many), saves the data, and adds it to the (empty) dataframe. map = mapping....
user avatar
0 votes
1 answer
250 views

AssertionError in adding lyr file

This is only part of a bigger code block that I'm building. The goal of these lines is to import a new layer, and select one feature from the feature class(TOWNSSURVEY_POLYM). The code imports the ....
user avatar
5 votes
0 answers
446 views

plugin compile with make would not compile module [closed]

Ubuntu 14.04 QGIS 2.6 PyQt4 I'm following one of many tutorials on 'plugin builder', here is the latest one I'm trying with: http://www.digital-geography.com/build-qgis-plugin/ It all seems very ...
Andy's user avatar
  • 193
5 votes
2 answers
1k views

ArcPy Report syntax error

I'm working on trying to use arcpy to automate the creation of a report, but I'm running into a problem. >>> arcpy.mapping.ExportReport('2013pp',"C:\reports\2013_Graffiti.rlf","C:\reports\...
David Meek's user avatar
5 votes
2 answers
5k views

Creating empty group layer within existing group layer using arcpy.mapping?

Referencing this question, Adding new group layer with ArcPy?, I'm trying to use python to add a empty group within a group layer. So far I'm able to add a empty group within the map document, ...
artwork21's user avatar
  • 35.1k
4 votes
5 answers
2k views

Can ArcPy's AsShape be used with GeoJSON FeatureCollection of Polygons with Labels?

The AsShape documentation provides examples that work very well. However, I have been given what I believe to be valid GeoJSON that is a FeatureCollection of two polygons each with a Label. It ...
PolyGeo's user avatar
  • 65.2k
6 votes
2 answers
9k views

Assertion Error when attempting arcpy.mapping.AddLayer

Whenever I attempt to use AddLayer it gives me: Runtime error <type 'exceptions.AssertionError'> This is what I've been using: arcpy.mapping.AddLayer(MainDF, r"\\GEOGDATA\campusmapping\...
Tanner's user avatar
  • 7,383