@tao I have shuffled around my files and created a zip file. However, mapillary_tools
exposed more blunders.
$ mapillary_tools --version
mapillary_tools version 0.13.2
$ mapillary_tools upload --organization_key 'XXXXXXXXXXXX' "$PWD"
2025-02-27 22:58:42,321 - INFO - Uploading to organization: {"slug": "org slug", "name": "org name", "id": "XXXXXXXXXXXX"}
Uploading ZIP mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (1/16): 0%| | 0.00/169G [00:00<?, ?B/s]
2025-02-27 22:59:11,323 - WARNING - Error uploading chunk_size 16777216 at begin_offset 0: SSLError: HTTPSConnectionPool(host='rupload.facebook.com', port=443): Max retries exceeded with url: /mapillary_public_uploads/mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2427)')))
2025-02-27 22:59:11,323 - INFO - Retrying in 2 seconds (1/200)
Uploading ZIP mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (1/16): 0%| | 0.00/169G [00:03<?, ?B/s]
Uploading ZIP mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (1/16): 0%| | 0.00/169G [00:00<?, ?B/s]
2025-02-27 22:59:15,074 - WARNING - Error uploading chunk_size 16777216 at begin_offset 0: SSLError: HTTPSConnectionPool(host='rupload.facebook.com', port=443): Max retries exceeded with url: /mapillary_public_uploads/mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2427)')))
2025-02-27 22:59:15,074 - INFO - Retrying in 4 seconds (2/200)
.
.
.
Rerouting produces:
2025-02-27 23:19:04,031 - INFO - Uploading to organization: {"slug": "org slug", "name": "org name", "id": "XXXXXXXXXXXX"}
Uploading ZIP mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (1/16): 0%| | 0.00/169G [00:00<?, ?B/s]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/upload.py", line 705, in _upload_zipfiles
cluster_id = mly_uploader.upload_zipfile(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/uploader.py", line 132, in upload_zipfile
return self.upload_stream(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/uploader.py", line 221, in upload_stream
return _upload_stream(
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/uploader.py", line 427, in _upload_stream
raise ex
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/uploader.py", line 400, in _upload_stream
file_handle = upload_service.upload(fp, offset=begin_offset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/upload_api_v4.py", line 145, in upload
resp.raise_for_status()
File "/usr/local/lib/python3.12/dist-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://rupload.facebook.com/mapillary_public_uploads/mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/mapillary_tools", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/commands/__main__.py", line 162, in main
args.func(argvars)
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/commands/upload.py", line 50, in run
upload(**args)
File "/usr/local/lib/python3.12/dist-packages/mapillary_tools/upload.py", line 681, in upload
raise wrap_http_exception(inner_ex) from inner_ex
mapillary_tools.upload.UploadHTTPError
Uploading ZIP mly_tools_cef561684c9ea6cee92104ed27ff4b65.zip (1/16): 0%| | 0.00/169G [00:02<?, ?B/s]
This is pathetic. For goodness sake, how am I supposed to upload anything? Now, I cannot even upload a simple zip file. Again, we are trying to simply upload files here. This is not
science, you know.