question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken links to IPEA gpkg files

See original GitHub issue

All links to download geographic data from IPEA is broken returning 404 (Not Found).

Hence, the generation pipeline described in instance generation README.md finish unsuccessfully. The generate.py script fails to find the *.gpkg files in the data_raw directory, raising following error:

fiona._err.CPLE_OpenFailedError: ./loggibud/loggibud/v1/instance_generation/../../../data_raw/33.gpkg: No such 
file or directory

The (broken) links used in download.sh script are:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
gabisuritacommented, Jun 25, 2021

By checking the metadata from IPEA (available at this CSV), I believe that the new paths are:

https://www.ipea.gov.br/geobr/data_gpkg/census_tract/2010/33census_tract_2010.gpkg https://www.ipea.gov.br/geobr/data_gpkg/census_tract/2010/53census_tract_2010.gpkg https://www.ipea.gov.br/geobr/data_gpkg/census_tract/2010/15census_tract_2010.gpkg

But I couldn’t validate if anything else changed, and the rest of the pipeline still works. @pinho @minterciso Maybe you can check if just changing the paths and renaming the files work. I shall check this in a couple of days.

1reaction
ropinhocommented, Jun 25, 2021

@gabisurita I used these links to manually download the files (using curl) and placed them into the data_raw directory. The instances were generated successfully.

Therefore, I believe that replace the links in “download.sh” fix this issue. I can test this and open a PR if all OK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repairing broken data links—Help | ArcGIS for Desktop
You can repair these broken data links from the table of contents or by using ... of map documents; Changing the data source...
Read more >
Repairing corrupted GeoPackage - qgis - GIS Stack Exchange
Database disk image is malformed error whenever you try to open a locked gpkg file. In my case, the solution was to make...
Read more >
How do I find and fix a broken link? - Siteimprove Support
Steps to fix a broken link. Go to Quality Assurance > Links > Broken Links; Select the "Confirmed broken links" tab. Note: See...
Read more >
Five Tips for Fixing Broken Data Links in an ArcGIS Pro Project
Just right-click a layer and then click Properties. On the Properties dialog box, click the Source tab and click Change data source to...
Read more >
Viewing Broken Links - MadCap Flare's Online Help
You can view a list of files in your project where a broken link is located, including which file it is trying to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found