Created
June 20, 2016 12:53
-
-
Save timlinux/4b9c73546c1757b15b44ec349d228cb1 to your computer and use it in GitHub Desktop.
Failing tests on QGIS 2.8.1 with
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====================================================================== | |
| ERROR: Test generate_html_reports function. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/timlinux/inasafe/safe/gui/tools/test/test_impact_merge_dialog.py", line 514, in test_generate_html_reports | |
| first_report_dict, second_report_dict) | |
| File "/home/timlinux/inasafe/safe/gui/tools/impact_merge_dialog.py", line 843, in generate_html_reports | |
| html_to_file(html, path) | |
| File "/home/timlinux/inasafe/safe/utilities/utilities.py", line 319, in html_to_file | |
| with codecs.open(file_path, 'w', encoding='utf-8') as f: | |
| File "/usr/lib/python2.7/codecs.py", line 896, in open | |
| file = __builtin__.open(filename, mode, buffering) | |
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 66: ordinal not in range(128) | |
| -------------------- >> begin captured logging << -------------------- | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for 7bbf4348833a36f235084c151dd8413e: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| InaSAFE: DEBUG: SQLite version: 3.11.0 | |
| InaSAFE: DEBUG: Tables: CREATE TABLE metadata (hash varchar(32) primary key,json text, xml text) | |
| InaSAFE: DEBUG: metadata table already exists | |
| InaSAFE: DEBUG: Error No hash found for d591c99e15be5e594fbf9b0b601a6dda: | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: Test generate_reports function. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/timlinux/inasafe/safe/gui/tools/test/test_impact_merge_dialog.py", line 560, in test_generate_reports | |
| first_report_dict, second_report_dict) | |
| File "/home/timlinux/inasafe/safe/gui/tools/impact_merge_dialog.py", line 843, in generate_html_reports | |
| html_to_file(html, path) | |
| File "/home/timlinux/inasafe/safe/utilities/utilities.py", line 319, in html_to_file | |
| with codecs.open(file_path, 'w', encoding='utf-8') as f: | |
| File "/usr/lib/python2.7/codecs.py", line 896, in open | |
| file = __builtin__.open(filename, mode, buffering) | |
| UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 66: ordinal not in range(128) | |
| ====================================================================== | |
| ERROR: Test merge function. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/timlinux/inasafe/safe/gui/tools/test/test_impact_merge_dialog.py", line 397, in test_merge | |
| self.impact_merge_dialog.merge() | |
| File "/home/timlinux/inasafe/safe/gui/tools/impact_merge_dialog.py", line 606, in merge | |
| self.tr('First and Second layer does not use chosen ' | |
| InvalidLayerError: First and Second layer does not use chosen Aggregation layer | |
| ====================================================================== | |
| ERROR: ASC raster files with bad data causes good error message | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/timlinux/inasafe/safe/storage/test/test_io.py", line 1421, in test_bad_ascii_data | |
| read_layer(asc_filename) | |
| File "/home/timlinux/inasafe/safe/storage/core.py", line 28, in read_layer | |
| return Raster(filename) | |
| File "/home/timlinux/inasafe/safe/storage/raster.py", line 107, in __init__ | |
| self.read_from_file(data) | |
| File "/home/timlinux/inasafe/safe/storage/raster.py", line 182, in read_from_file | |
| fid = self.fid = gdal.Open(filename, gdal.GA_ReadOnly) | |
| File "/usr/lib/python2.7/dist-packages/osgeo/gdal.py", line 1800, in Open | |
| return _gdal.Open(*args) | |
| RuntimeError: Couldn't find data values in ASCII Grid file. | |
| ====================================================================== | |
| FAIL: Aggregation results are correct using native QGIS zonal stats. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/timlinux/inasafe/safe/gui/widgets/test/test_dock.py", line 671, in test_full_run_qgszstats | |
| self.assertIn(line, result) | |
| AssertionError: u'JAKARTA P\xfaSAT, 93, 46, 37, 4' not found in u'\n*****Analysis Results\n\n In the event of continuous flood how many population might need evacuation\n\n\n---\n**People in >= 1.0 m of water**, 100------\n**Total affected population**, 100------\n**Unaffected population**, 100------\n**Total population**, 200------\n**Population needing evacuation <sup>1</sup>**, 100---\n\n*****Evacuated population minimum needs\n\n\n---\n**Relief items to be provided single**, **Total**------\nToilets, 5------\n**Relief items to be provided weekly**, **Total**------\nRice [kg], 280------\nDrinking Water [l], 1,750------\nClean Water [l], 6,700------\nFamily Kits, 20---\n\n*****Action checklist\n\n - Which group or population is most affected?\n - Who are the vulnerable people in the population and why?\n - How will warnings be disseminated?\n - What are people\'s likely movements?\n - What are the security factors for the affected population?\n - What are the security factors for relief responders?\n - How will we reach evacuated people?\n - What kind of food does the population normally consume?\n - What are the critical non-food items required by the affected population?\n - Are there enough water supply, sanitation, hygiene, food, shelter, medicines and relief items available for 100 people?\n - If yes, where are they located and how will we distribute them?\n - If no, where can we obtain additional relief items and how will we distribute them?\n - What are the related health risks?\n - Who are the key people responsible for coordination?\n\n\n*****Notes and assumptions\n\n - Total population in the analysis area: 200\n - <sup>1</sup>People need evacuation if flood levels exceed 1.0 m.\n - The minimum needs are based on Perka 7/2008.\n - All values are rounded up to the nearest integer in order to avoid representing human lives as fractions.\n - Population rounding is applied to all population values, which may cause discrepancies when adding values.\n\n\nDetailed gender report (affected people)</caption>\n\n---\nKab_name, Total, Female count (affected), Weekly hygiene packs, Additional weekly rice kg for pregnant and lactating women------\nJAKARTA PSAT, 93, 46, 37, 4------\nJAKARTA BARAT, 7, 3, 3, 0------\nTotal in aggregation areas, 100, 49, 40, 4---\n_Columns and rows containing only 0 or "No data" values are excluded from the tables._\nDetailed age report (affected people)</caption>\n\n---\nKab_name, Total, Youth count (affected), Adult count (affected), Elderly count (affected)------\nJAKARTA PSAT, 93, 24, 61, 7------\nJAKARTA BARAT, 7, 2, 5, 1------\nTotal in aggregation areas, 100, 26, 66, 8---\n_Columns and rows containing only 0 or "No data" values are excluded from the tables._\nDetailed minimum needs report (affected people)</caption>\n\n---\nKab_name, Rice [kg], Drinking Water [l], Clean Water [l], Family Kits, Toilets------\nJAKARTA PSAT, 260, 1,628, 6,231, 19, 5------\nJAKARTA BARAT, 20, 123, 469, 1, 0------\nTotal in aggregation areas, 280, 1,751, 6,700, 20, 5---\n_Columns and rows containing only 0 or "No data" values are excluded from the tables._\n\n<h5 class="info"><i class="icon-info-sign icon-white"></i> Analysis details</h5>Hazard details<p>Continuous Flood - sourced from Akbar Gumbira</p>Exposure details<p>Population - sourced from Not specified</p>\n\n' | |
| -------------------- >> begin captured logging << -------------------- | |
| InaSAFE: DEBUG: Search path: /usr/local/qgis-2.8.1//bin:/home/timlinux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/docker-helpers:/snap/bin:/usr/local/docker-helpers | |
| InaSAFE: DEBUG: Path for gdalwarp: ['/usr/bin/gdalwarp'] | |
| InaSAFE: DEBUG: "/usr/bin/gdalwarp" -q -t_srs EPSG:4326 -r near -tr 0.0020000000000003127 0.0020000000000003127 -cutline /tmp/quake/inasafe/2016-06-20/timlinux/work/extent_8cqF2F.kml -crop_to_cutline -ot Float64 -of GTiff "/home/timlinux/inasafe/safe/test/data/hazard/continuous_flood_20_20.asc" "/tmp/quake/inasafe/2016-06-20/timlinux/work/clip_11xzvb.tif" | |
| InaSAFE: DEBUG: Search path: /usr/local/qgis-2.8.1//bin:/home/timlinux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/docker-helpers:/snap/bin:/usr/local/docker-helpers | |
| InaSAFE: DEBUG: Path for gdalwarp: ['/usr/bin/gdalwarp'] | |
| InaSAFE: DEBUG: "/usr/bin/gdalwarp" -q -t_srs EPSG:4326 -r near -tr 0.0020000000000003127 0.0020000000000003127 -cutline /tmp/quake/inasafe/2016-06-20/timlinux/work/extent_ej1YJe.kml -crop_to_cutline -ot Float64 -of GTiff "/home/timlinux/inasafe/safe/test/data/exposure/pop_binary_raster_20_20.asc" "/tmp/quake/inasafe/2016-06-20/timlinux/work/clip_Evd_nS.tif" | |
| InaSAFE: DEBUG: Do aggregation | |
| InaSAFE: DEBUG: Removing this attributes: [2, 3] | |
| InaSAFE: DEBUG: Native zonal stats duration: 0.002612s | |
| InaSAFE: INFO: 7.0 | |
| InaSAFE: INFO: 93.0 | |
| InaSAFE: DEBUG: 2016-06-20 14:12:54.339971 | |
| InaSAFE: DEBUG: False | |
| InaSAFE: DEBUG: JSON Path /tmp/quake/inasafe/2016-06-20/timlinux/impacts/FloodOnPopulation_20June2016_14h12.54-KIOWkJ.json | |
| InaSAFE: DEBUG: myEngineImpactLayer.is_raster | |
| InaSAFE: DEBUG: Rendering raster using 2+ styling | |
| InaSAFE: DEBUG: [{'min': 0.0, 'max': 0.125, 'colour': '#FFFFFF', 'label': '[0 - 0.125]', 'transparency': 0, 'quantity': 0.125}, {'min': 0.12500000000000003, 'max': 0.25, 'colour': '#38A800', 'label': '[0.125 - 0.25] Low', 'transparency': 0, 'quantity': 0.25}, {'min': 0.25000000000000006, 'max': 0.375, 'colour': '#79C900', 'label': '[0.25 - 0.375]', 'transparency': 0, 'quantity': 0.375}, {'min': 0.37500000000000006, 'max': 0.5, 'colour': '#CEED00', 'label': '[0.375 - 0.5]', 'transparency': 0, 'quantity': 0.5}, {'min': 0.50000000000000011, 'max': 0.625, 'colour': '#FFCC00', 'label': '[0.5 - 0.625] Medium', 'transparency': 0, 'quantity': 0.625}, {'min': 0.62500000000000011, 'max': 0.75, 'colour': '#FF6600', 'label': '[0.625 - 0.75]', 'transparency': 0, 'quantity': 0.75}, {'min': 0.75000000000000011, 'max': 0.875, 'colour': '#FF0000', 'label': '[0.75 - 0.875]', 'transparency': 0, 'quantity': 0.875}, {'min': 0.87500000000000011, 'max': 1.0, 'colour': '#7A0000', 'label': '[0.875 - 1] High', 'transparency': 0, 'quantity': 1.0}] | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.0, 'max': 0.125, 'colour': '#FFFFFF', 'label': '[0 - 0.125]', 'transparency': 0, 'quantity': 0.125} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.12500000000000003, 'max': 0.25, 'colour': '#38A800', 'label': '[0.125 - 0.25] Low', 'transparency': 0, 'quantity': 0.25} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.25000000000000006, 'max': 0.375, 'colour': '#79C900', 'label': '[0.25 - 0.375]', 'transparency': 0, 'quantity': 0.375} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.37500000000000006, 'max': 0.5, 'colour': '#CEED00', 'label': '[0.375 - 0.5]', 'transparency': 0, 'quantity': 0.5} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.50000000000000011, 'max': 0.625, 'colour': '#FFCC00', 'label': '[0.5 - 0.625] Medium', 'transparency': 0, 'quantity': 0.625} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.62500000000000011, 'max': 0.75, 'colour': '#FF6600', 'label': '[0.625 - 0.75]', 'transparency': 0, 'quantity': 0.75} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.75000000000000011, 'max': 0.875, 'colour': '#FF0000', 'label': '[0.75 - 0.875]', 'transparency': 0, 'quantity': 0.875} | |
| InaSAFE: DEBUG: Evaluating class: | |
| {'min': 0.87500000000000011, 'max': 1.0, 'colour': '#7A0000', 'label': '[0.875 - 1] High', 'transparency': 0, 'quantity': 1.0} | |
| InaSAFE: DEBUG: Transparency list: (min, max, percentTransparent | |
| InaSAFE: DEBUG: 0.0 0.0 100.0 | |
| InaSAFE: DEBUG: Setting colour ramp list | |
| InaSAFE: DEBUG: Setting shader function | |
| InaSAFE: DEBUG: Setting up renderer | |
| InaSAFE: DEBUG: Assigning renderer to raster layer | |
| InaSAFE: DEBUG: Setting raster transparency list | |
| InaSAFE: DEBUG: Saving style as default | |
| InaSAFE: DEBUG: Setting raster style done! | |
| --------------------- >> end captured logging << --------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment