-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please provide scripts that are Python 3.x compatible #227
Comments
hi, |
Any update on this? It's been nearly a year and I don't see any branches that are an intuitively obvious Python3 rewrite. |
"pip" now warns:
|
I am still interested in updated version for python 3.5 or newer. |
Python 2 will be discontinued on January 1, 2020. This means main distributions will stop supporting it. For example, python2 package and all its subpackages have already been removed from Fedora 32 (i.e. the next Fedora release due to be distributed on April 21, 2020). It is urgent to have mapillary_tools migrated to python3. |
The same on Debian. The next stable version (bullseye) won't have support for python 2 any more. This is already the case for the current Debian testing version (python-pip has already been dropped, for example). Please make mapillary_tools compatible with python 3. |
I'm running Debian unstable and python-pip is no longer available only python3-pip, when I do |
I ran into the same problem while trying to update mapillary-tools to the latest version. Luckily I already had a copy of mapillary-tools installed which still works. Upgrading/Reinstallation seems to be no longer possible on Debian testing or unstable, though. |
Fedora 32 was released on April, 28th. It only provides python3. Now it is no longer possible to run mapillary-tools. |
Yeah I went through my system and cleared out any old local python packages, it was after I did this that mapillary_tools broke and now I seem to be stuck. |
A workaround could be to run it with docker, but after an hour of trying to get docker containers running i give up. If anyone else knows how to get a docker container up, install pip packages and mount a local directory, I think that would be a good workaround. |
Following up on @andrewharvey 's suggestion, here is a Docker-based solution. First, create the folders that you will share with the Docker container:
You will copy the pics you want to upload in the Then run a Docker container with pre-installed
This should download from Docker hub the container with mapillary_tools preinstalled that I have created (find the full Dockerfile if you want to build it yourself at the bottom of this post, ideally the nice folks at Mapillary would provide it themselves). When you run this, you will find yourself on the terminal inside the container. Now is the time to authenticate with:
Insert your credentials, and you're good to go: you are now inside the container and can run commands as you normally would. Keep in mind that inside the Docker, the pics folder is located at So you can run your usual commands like this:
You can also exit the container, by giving the command You're back in your terminal, on your host machine. Since your credentials are stored locally, you don't need to authenticate again in the future, and you can start the container and start uploading pictures with a single command, like this:
Of course you can specify the relevant subfolder (e.g. "/pics/new_pics"). Also, if you're syncing GPS tracks, keep in mind that the timezone inside the docker is UTC, not the timezone set in your host machine. You can pass the timezone when you start the Docker container with, for example, the parameter: "-e TZ=Europe/Amsterdam". Here's a full list of accepted timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones If you're on some recent Fedora, you may want to use Hope this helps. Here's the full Dockerfile I used if you prefer to build it locally:
|
The Travis continuous integration on GitHub also requires Python 3 which means every pull request now gets an error: | pip 20.1.1 from /home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/pip (python 3.6) My understanding is that pip is a Python 3 shim that just says Python 2 is no longer supported. |
According to the Telegram group there is ongoing development for a new upload framework, eventually replacing mapillary_tools. Unclear though why there is no reaction from the developers here. |
Mapillary development process going all closed seems to have helped with getting bought, but it did not help the tools for sure :) |
Where is the Telegram group? I found https://t.me/s/mapillary via a google but it only has a handful of messages around 2018. |
|
It looks like UnitedRPMs is providing a python2-pip RPM for Fedora 32..... https://fedora.pkgs.org/32/unitedrpms-x86_64/python2-pip-19.1.1-7.fc32.noarch.rpm.html |
Meanwhile, is there any other method to manually upload images via command line? |
Run some old distro with Python2 in VM This is also discussed in the following issue: #374 (comment) |
Hi all, The Python3 port is close to be done. I tested the basic process and upload and it works great. It would be great to have your help to get more tested. The installation is documented here: https://github.com/mapillary/mapillary_tools/tree/fix-upload#package-installation-python3 Thanks! |
Great work and thanks for the testing invitation. In the meantime i have moved to kartaview where i am uploading my photos. Keep going and have fun |
Thanks all! |
@ptpt , thank you for the release, works well 🥇 |
upload_with_preprocessing.py is still python 2.x
Please provide scripts that use python 3.x
The text was updated successfully, but these errors were encountered: