googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.17k stars 705 forks source link

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

Closed HaraldBerlin closed 1 year ago

HaraldBerlin commented 2 years ago

I'm running it in Google Colab.

mayankmalik-colab commented 2 years ago

It seems like you are manually installing vsketch as this is not one of the preinstalled packages. We are on Python 3.7, but we will upgrade it soon. Hopefully, it should work once we are on Python >=3.8.

HaraldBerlin commented 2 years ago

Hello googlecolab/colabtools,

thanks for your reply! It seems to be not only me. Obviously no one can use this:

https://colab.research.google.com/github/marceloprates/prettymaps/blob/master/notebooks/examples.ipynb

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.

Best regards / Mit freundlichen Grüßen / Meilleures salutations / Distinti saluti

  Harald Friedrich

Dipl.-Wirtsch.-Ing. (TU) / Industrial Engineer CEO / Owner

Ing.-Büro FRIEDRICH

+49 (0) 6659 919 444 <tel:+496659919444>, Fax: +49 (0) 6659 919 445 

<tel:+496659919445>

Fuldaer Straße 20, DE-36124 Eichenzell

***@***.*** ***@***.***>

www.ibfriedrich.com <https://www.ibfriedrich.com>

Am 13.09.2022 um 01:37 schrieb mayankmalik-colab:

It seems like you are manually installing |vsketch| as this is not one of the preinstalled packages. We are on Python 3.7, but we will upgrade it soon. Hopefully, it should work once we are on Python |>=3.8|.

— Reply to this email directly, view it on GitHub https://github.com/googlecolab/colabtools/issues/3057#issuecomment-1244713116, or unsubscribe https://github.com/notifications/unsubscribe-auth/A265FJE3R4MNQLTLMBT45MDV565CPANCNFSM6AAAAAAQILV5OE. You are receiving this because you authored the thread.Message ID: @.***>

cperry-goog commented 2 years ago

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

HaraldBerlin commented 1 year ago

Thank you for the information!

Best regards / Mit freundlichen Grüßen / Meilleures salutations / Distinti saluti

  Harald Friedrich

Dipl.-Wirtsch.-Ing. (TU) / Industrial Engineer CEO / Owner

Ing.-Büro FRIEDRICH

+49 (0) 6659 919 444 <tel:+496659919444>, Fax: +49 (0) 6659 919 445 

<tel:+496659919445>

Fuldaer Straße 20, DE-36124 Eichenzell

***@***.*** ***@***.***>

www.ibfriedrich.com <https://www.ibfriedrich.com>

Am 15.09.2022 um 23:11 schrieb cperry-goog:

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

— Reply to this email directly, view it on GitHub https://github.com/googlecolab/colabtools/issues/3057#issuecomment-1248635339, or unsubscribe https://github.com/notifications/unsubscribe-auth/A265FJCI5OLFYF2TLMN3EPLV6OGIBANCNFSM6AAAAAAQILV5OE. You are receiving this because you authored the thread.Message ID: @.***>

metrizable commented 1 year ago

Colab is now on Python 3.8 with #3246.

HaraldBerlin commented 1 year ago

Thanks a lot metrizable, it works! (Y)