label-maker labels raising a tilepie.reader.InvalidFormatError
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python, sqlite
- Domain
- data, machine-learning
Research direction
Reproduce label-maker download and label-maker labels with the sample config.json, then inspect the mentioned entry points label_maker/main.py, label_maker/label.py, and tilepie/reader.py. Compare the generated data/togo-z12.mbtiles with the commands and errors from tippecanoe; done means the labels command reads the MBTiles file without InvalidFormatError.
Written by the indexing model from the issue text.
Description
Hi all,
Thanks a lot for releasing this software. I am trying to use your toolkit to conduct my own research using satellite imagery. But unfortunately I am hitting a wall when I try.
I am running python 3.6.6 on pyenv (I noticed that label-maker doesn't seem to work on python 2.7) and I have installed label-maker using the procedure you explain here: http://devseed.com/label-maker/
Using the sample config.json you suggest in your documentation I then run label-maker download, this seems to create a valid sqlite3 mbtiles file on ~/data, all fine so far. After that I try to run label-maker labels and that fails with the following error message:
label-maker labels
Retiling QA Tiles to zoom level 12 (takes a bit)
tippecanoe-decode: invalid option -- 'c'
Usage: tippecanoe-decode file.mbtiles zoom x y
tippecanoe: invalid option -- '-'
Usage: tippecanoe -o out.mbtiles [-n name] [-l layername] [-z maxzoom] [-Z minzoom] [-B basezoom] [-d detail] [-D lower-detail] [-m min-detail] [-x excluded-field ...] [-y included-field ...] [-X] [-r droprate] [-b buffer] [-t tmpdir] [-a rco] [-p sfkld] [-q] [-P] [file.json ...]
Determining labels for each tile
Traceback (most recent call last):
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/tilepie/reader.py", line 42, in _query
self._cur.execute(sql, *args)
sqlite3.OperationalError: no such table: tiles
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zilog/.pyenv/versions/3.6.6/bin/label-maker", line 11, in <module>
load_entry_point('label-maker==0.4.0', 'console_scripts', 'label-maker')()
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/label_maker/main.py", line 84, in cli
make_labels(dest_folder=dest_folder, sparse=sparse, **config)
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/label_maker/label.py", line 85, in make_labels
_mapper, _callback, _done)
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/tilepie/__init__.py", line 26, in tilereduce
tilecontent = uncompress(tm.tile(tile[0], tile[1], tile[2]))
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/tilepie/reader.py", line 60, in tile
WHERE zoom_level=? AND tile_column=? AND tile_row=?;''', (z, x, tms_y))
File "/home/zilog/.pyenv/versions/3.6.6/lib/python3.6/site-packages/tilepie/reader.py", line 44, in _query
raise InvalidFormatError(("%s while reading %s") % (e, self.filename))
tilepie.reader.InvalidFormatError: no such table: tiles while reading data/togo-z12.mbtiles```
It seems like there are several things going on here, so I am not sure how to move on forward with this. Any help is much appreciated.
- Dominant language
- Python
- Stars
- 471
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/label-maker
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#195 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
developmentseed/label-maker#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#185 ·
-
Generalize Final data.npz outputMay be free again @martham93 claimed this 2281 days ago, and no pull request is open. Openenhancement
developmentseed/label-maker#181 · 1 comment · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
developmentseed/label-maker#180 · 1 comment ·
All issues in developmentseed/label-maker
Similar issues
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day