marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.12k stars 522 forks source link

Colab ERROR: Package 'vsketch' requires a different Python: 3.7.13 not in '<3.11,>=3.8' #98

Open HaraldBerlin opened 2 years ago

HaraldBerlin commented 2 years ago

How can I get a newer Python in Colab for vsketch? All my installation attempts failed. Thanks for any idea!

HaraldBerlin commented 2 years ago

I updated to Python 3.8 using the following 3 lines:

!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh
!chmod +x mini.sh
!bash ./mini.sh -b -f -p /usr/local

Installation section runs then without errors. I restart the runtime. Unfortunately then the "Imports" section throws:

ModuleNotFoundError: No module named 'prettymaps

If I now click this link again https://colab.research.google.com/github/marceloprates/prettymaps/blob/master/notebooks/examples.ipynb suddenly all example maps run as expected without starting them manually. Unfortunately I always get errors: Running an own code section, changing the existing examples and I cannot even run them anew. Always errors like

NameError: name 'plt' is not defined

This is no fun.

sanbuphy commented 2 years ago

I met the same problem and didn't know how to solve it. I try to use that in my computer but false. Because i can't intall the vsketch,it always shows "error: subprocess-exited-with-error"

HaraldBerlin commented 2 years ago

Hello sanbuphy, a person called cperry-goog wrote me in an eMail:

"Users upgrading Python in Colab is not supported; we're working on a 3.8 upgrade."

So we hope that it will work soon. Thanks to the colab peopel!

sanbuphy commented 2 years ago

It was delightful that i find a Web App: https://chrieke-prettymapp-streamlit-prettymappapp-1k0qxh.streamlitapp.com/#prettymapp You can try this app, I think it's very cool.