mapilio / MapSyncer

MIT License
7 stars 0 forks source link

Decode error of some sort? #22

Closed YanisKyr closed 9 months ago

YanisKyr commented 9 months ago

Short Information

Problem Definition Briefly (might be explained in steps)

Downloaded all images (after getting stuck a few times), I might have authenticated incorrectly for Mapillio at the end so I had to restart the process, and then this.

Extra information (can contain screen shots)

(mapsyncer_env) yaniskyr@yaniskyr-ubuntu:~/MapSyncer$ python run.py
Please enter the path to the folder to download images from:
/home/yaniskyr/Downloads/mapsync_temp/
Downloading sequence 5198521: 100%|████████| 1026/1026 [00:25<00:00, 39.92it/s]
Downloading sequences:   1%|▏                | 1/131 [00:30<1:05:50, 30.39s/it]
Traceback (most recent call last):
  File "/home/yaniskyr/MapSyncer/run.py", line 124, in <module>
    main()
  File "/home/yaniskyr/MapSyncer/run.py", line 30, in main
    download_user_images(folder_path)
  File "/home/yaniskyr/MapSyncer/components/download.py", line 50, in download_user_images
    download_success, _ , lth_images = _download_photo_sequence(osc_api,
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yaniskyr/MapSyncer/components/download.py", line 69, in _download_photo_sequence
    photos, error = osc_api.get_photos(sequence.online_id)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yaniskyr/MapSyncer/components/osc_api_gateway.py", line 255, in get_photos
    json_response = response.json()
                    ^^^^^^^^^^^^^^^
  File "/home/yaniskyr/MapSyncer/mapsyncer_env/lib/python3.11/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
YanisKyr commented 9 months ago

I ran it a couple more times, and the errors keep changing.

Downloading sequences: 100%|█████████████████| 131/131 [13:55<00:00,  6.38s/it]
Please enter your mapilio account information to continue.
If you don't have a mapilio account, please create one at https://mapilio.com/ 

Enter your username: yannakis
Enter your email: ******************
Enter mapilio user password: 
Traceback (most recent call last):
  File "/home/yaniskyr/MapSyncer/run.py", line 124, in <module>
    main()
  File "/home/yaniskyr/MapSyncer/run.py", line 35, in main
    check_authenticate = check_auth()
                         ^^^^^^^^^^^^
  File "/home/yaniskyr/MapSyncer/run.py", line 76, in check_auth
    check_authenticate = authenticator.perform_task(args)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Authenticate.perform_task() missing 1 required positional argument: 'vars_args'
bonj4 commented 9 months ago

Hi YanisKyr,

Our team has fixed the authentication error on v0.0.3. we have been researching the probable error. If you encounter an error, please know that we're here to assist you with resolving it quickly We truly appreciate your feedback.

YanisKyr commented 9 months ago

Thank you. Now how do I update to 0.0.3? :)

gorkemgul commented 9 months ago

Hi @YanisKyr,

You may simply update it by writing pip install mapsyncer --upgrade on CLI, in case you have the older versions

Sincerely,

YanisKyr commented 9 months ago

Alright, I've uploaded one sequence now!

I'm curious to see how it appears in Mapilio, that's why I uploaded only one of the 124 ;)

Enter the specific folder name: 4733209 
Uploading folder '4733209'... 
Some images has failed to upload due to anomaly detection. These images are => ['4733209_e8ef62865b98e7e32801102186baa270.jpg']
If shooting was taken at a point outside the polygon, these points and images will be published publicly...
Upload has been started.
🗺️ Currently at: Sequence 1, Total Number of Sequences: 1
Compressing 1/1: 100%|████████████████████| 100/100 [00:06<00:00, 14.67files/s]
Uploading 1/1: 100%|██████████████████████| 69.4M/69.4M [00:38<00:00, 1.90MB/s]
Upload has been successfully finished. 1 sequence(s) out of 1 sequences were uploaded correctly. Thanks for your contributions to Mapilio 🎉!