Hello!
I was wondering how i can get datalore to run python 3.9 or 3.10 in pip mode or conda mode? y have tried everythong but i dont seem to get this working. And this could be a deal breaker if icant get my code to work. the minimn i requere is 3.9.12 please help
There is no place that i know of to choose the python kernel version.I can only see that i am running in python 3.8.12
Same issue. I’ve spent hours debugging my problem loading custom packages from GitHub, only to finally realize the problem is that the packages are using language features from laster versions of Python, specifically – the match statement
I tried implementing the environment.yml and init.sh, as shown by @artem.borzilov, however received the following errors:
E: Unable to locate package python3.11-venv
E: Couldn’t find any package by glob 'python3.11-venv
’
E: Couldn’t find any package by regex 'python3.11-venv
’
/data/notebook_files/init.sh: 2: /usr/bin/python3.11: not found
/data/notebook_files/init.sh: 3: /opt/python/envs/my311/bin/python: not found
Any help on solving this issue would be greatly appreciated.
E: Unable to locate package python3.11-venv
E: Couldn’t find any package by glob 'python3.11-venv
’
E: Couldn’t find any package by regex 'python3.11-venv
’
/data/notebook_files/init.sh: 2: /usr/bin/python3.11: not found
/data/notebook_files/init.sh: 3: /opt/python/envs/my311/bin/python: not found
Is there anything I did incorrectly? Any tips on how to procede?
Kind regards.
E: Unable to locate package python3.11-venv
E: Couldn't find any package by glob 'python3.11-venv
'
E: Couldn't find any package by regex 'python3.11-venv
'
/data/notebook_files/init.sh: 2: /usr/bin/python3.11: not found
/data/notebook_files/init.sh: 3: /opt/python/envs/my311/bin/python: not found
E: Unable to locate package python3.11-venv
E: Couldn't find any package by glob 'python3.11-venv
'
E: Couldn't find any package by regex 'python3.11-venv
'
/data/notebook_files/init.sh: 3: /usr/bin/python3.11: not found
Sharing this to help with the identification of the issue.
I also getting this warning in the error log (attached to the notebook files), but it shouldn’t affect the installation of the package.
E: Couldn’t find any package by glob 'python3.11-venv
’
It seems, there are non-unix line ending characters in your init.sh file, please try creating init.sh using the following magics (will overwrite existing file):
For other people reading this in the future, and having the same issue, here’s what I did:
downloaded the init.sh file from the notebook of @artem.borzilov’s
uploaded it in my notebook
As for the cause of the problem, you are correct @igro, there is indeed an extra byte that shows up when I copy and paste the file, as can be seem bellow:
there is indeed an extra byte that shows up when I copy and paste the file
Thank you for confirming this, I didn’t manage to reproduce it on my Windows VM, but I’ll file a ticket in our tracker and we will investigate this issue further.
I just had this issue and resolved with this thread. One thing should be noted, use Run → Stop Machine vs Kernel → Restart kernel after getting the environment.yml and init.sh files correct. Not sure that the difference is.
I did update to 3.11 just as in this thread (which matched my greater project) and noticed the python version as ‘3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]’. Is there a way to update to a newer version of python 3.11?
One thing should be noted, use Run → Stop Machine vs Kernel → Restart kernel after getting the environment.yml and init.sh files correct. Not sure that the difference is.
“Restart kernel” will restart kernel (reset state) on the running agent
“Stop machine” (+ “Start machine”) will re-create the computational agent completely
I did update to 3.11 just as in this thread (which matched my greater project) and noticed the python version as ‘3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]’. Is there a way to update to a newer version of python 3.11?
It seems, it is the only version in the default apt ppa:
$ apt search ^python3.11$
Sorting... Done
Full Text Search... Done
python3.11/jammy-updates,now 3.11.0~rc1-1~22.04 amd64 [installed]
Interactive high-level object-oriented language (version 3.11)
From what I see, it is usually recommended to add a third party ppa containing most recent builds.
Alternatively you can also build a specific required version from the sources.