Skip to content

Instantly share code, notes, and snippets.

View timlinux's full-sized avatar

Tim Sutton timlinux

View GitHub Profile
Couldn't load plugin transectizer due an error when calling its classFactory() method
Traceback (most recent call last):
File "/usr/local/qgis-master/share/qgis/python/qgis/utils.py", line 204, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/timlinux/.qgis2/python/plugins/transectizer/__init__.py", line 27, in classFactory
return transectizer(iface)
File "/home/timlinux/.qgis2/python/plugins/transectizer/transectizer.py", line 81, in __init__
self.dlg.ui.GPSButton.clicked.connect(self.getCoordsFromGPS)
AttributeError: 'Ui_transectizer' object has no attribute 'GPSButton'
Process: QGIS [43703]
Path: /Applications/QGIS-2.0.app/Contents/MacOS/QGIS
Identifier: org.qgis.qgis2
Version: 2.0.1 (2.0.1 [exported])
Code Type: X86-64 (Native)
Parent Process: launchd [273]
Responsible: QGIS [43703]
User ID: 501
Date/Time: 2014-02-13 14:24:26.599 +0700
Process: QGIS [43752]
Path: /Applications/QGIS-2.0.app/Contents/MacOS/QGIS
Identifier: org.qgis.qgis2
Version: 2.0.1 (2.0.1 [exported])
Code Type: X86-64 (Native)
Parent Process: launchd [273]
Responsible: QGIS [43752]
User ID: 501
Date/Time: 2014-02-13 14:28:50.684 +0700
from qgis.core import QgsComposition
from PyQt4 import QtCore, QtXml
path = 'c:\test.qpt'
template_file = QtCore.QFile(path)
template_file.open(QtCore.QIODevice.ReadOnly | QtCore.QIODevice.Text)
template_content = template_file.readAll()
template_file.close()
document = QtXml.QDomDocument()
document.setContent(template_content)
In file "/Users/timlinux/.qgis2/python/plugins/inasafe-dev/safe_qgis/utilities/impact_calculator_thread.py", line 186, in run check_integrity=self._check_integrity)
In file "/Users/timlinux/.qgis2/python/plugins/inasafe-dev/safe_qgis/safe_interface.py", line 546, in calculateSafeImpact check_integrity=check_integrity)
In file "/Users/timlinux/.qgis2/python/plugins/inasafe-dev/safe/engine/core.py", line 67, in calculate_impact F = impact_function.run(layers)
In file "/Users/timlinux/.qgis2/python/plugins/inasafe-dev/safe/impact_functions/inundation/flood_raster_roads_experimental.py", line 169, in run mark_value=(target_field_index, 1))
In file "/Users/timlinux/.qgis2/python/plugins/inasafe-dev/safe/common/qgis_vector_tools.py", line 169, in split_by_polygon if fields.indexFromName(target_field) == -1:
@timlinux
timlinux / qgis_processing.py
Created February 20, 2014 07:36
Monkey patch for processing
def new_loader(name):
Processing.initialize()
for provider in Processing.algs.values():
if name in provider:
return provider[name]
return None
Processing.getAlgorithm = new_loader
Checking out tag completed.Environment already set!
[linfiniti3] put: django_project/core/settings/private.py -> /home/web/projecta/django_project/core/settings/private.py
Environment already set!
[linfiniti3] run: ../venv/bin/python manage.py migrate
[linfiniti3] out: Traceback (most recent call last):
[linfiniti3] out: File "manage.py", line 12, in <module>
[linfiniti3] out: execute_from_command_line(sys.argv)
[linfiniti3] out: File "/home/web/projecta/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
[linfiniti3] out: utility.execute()
[linfiniti3] out: File "/home/web/projecta/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
pg_restore: [archiver (db)] Error from TOC entry 247; 1259 3268808 TABLE catalogue_visit timlinux
pg_restore: [archiver (db)] could not execute query: ERROR: function ndims(geometry) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
Command was: CREATE TABLE catalogue_visit (
id integer NOT NULL,
city character varying(255) NOT NULL,
country character vary...
./safe_qgis/impact_statistics/aggregator.py:684:80: E501 line too long (88 > 79 characters)
./safe_qgis/tools/about_dialog.py:41:1: W391 blank line at end of file
./safe_qgis/tools/options_dialog.py:167:80: E501 line too long (80 > 79 characters)
./safe_qgis/tools/wizard_dialog.py:546:48: E226 missing whitespace around arithmetic operator
./safe_qgis/tools/test/test_wizard_dialog.py:70:37: E226 missing whitespace around arithmetic operator
./safe/postprocessors/postprocessor_factory.py:83:1: W293 blank line contains whitespace
./safe/postprocessors/test_age_postprocessor.py:65:22: W292 no newline at end of file
./safe/postprocessors/test_gender_postprocessor.py:53:70: E502 the backslash is redundant between brackets
./safe/postprocessors/test_gender_postprocessor.py:60:22: W292 no newline at end of file
./safe/postprocessors/test_minimum_needs_postprocessor.py:58:22: W292 no newline at end of file
Open Pull Requests for qgis/QGIS
1342 05/08 use GDAL vsipreload trick to be abl etiennesky:vsipreload
1339 05/08 Identify2 etiennesky:identify2
1338 05/07 Line multi labeling manisandro:line_multi_labeling
1337 05/07 fix #10198 Oslandia:test_qgis_mapserver
1336 05/07 Fix bug #10181: Graduated styles sh ahuarte47:Issue_10181
1335 05/06 Apply settings before saving style, manisandro:apply_settings_when_saving_style
1332 04/30 Improve delete part feature for pol leyan:deletePart
1331 04/28 Graduatedboundaries 3nids:graduatedboundaries
1330 04/28 Add GEOS single sided buffer operat giohappy:master