Skip to content
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

(feat) Support Python versions 3.13 and higher #87

Open
dfgHiatus opened this issue Jan 31, 2025 · 9 comments
Open

(feat) Support Python versions 3.13 and higher #87

dfgHiatus opened this issue Jan 31, 2025 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@dfgHiatus
Copy link
Contributor

dfgHiatus commented Jan 31, 2025

Currently, Babble supports Python versions 3.8-3.12. With the new release of Python version 3.13, it makes to support it.

@dfgHiatus dfgHiatus added the enhancement New feature or request label Jan 31, 2025
@dfgHiatus
Copy link
Contributor Author

It should be noted that the wheels for onnxruntime-directml and onnxruntime-gpu do not exist yet, so GPU acceleration is not supported on newer versions of Python.

@dfgHiatus dfgHiatus self-assigned this Jan 31, 2025
@dfgHiatus
Copy link
Contributor Author

Here is what a unified requirements file looks like, taking into account version differences across Python:

onnxruntime==1.19.2; '3.8' <= python_version and python_version <= '3.12'
onnxruntime==1.20.1; '3.13' <= python_version

onnxruntime-directml==1.19.2; platform_system == "Windows" and '3.8' <= python_version and python_version <= '3.12'
# onnxruntime-directml==1.20.1; platform_system == "Windows" and '3.13' <= python_version

onnxruntime-gpu==1.19.2; platform_system == "Linux" and '3.8' <= python_version and python_version <= '3.12'
# onnxruntime-gpu==1.20.1; platform_system == "Linux" and '3.13' <= python_version

torch==2.4.1; '3.8' == python_version
torch==2.5.1; '3.9' <= python_version and python_version <= '3.12'
torch==2.6.0; '3.13' <= python_version

torchvision==0.19.1; '3.8' == python_version
torchvision==0.20.1; '3.9' <= python_version and python_version <= '3.12'
torchvision==0.21.0; '3.13' <= python_version

opencv_python==4.11.0.86;
pillow==11.0.0;
pysimplegui==4.70.1;
python_osc==1.9.0;
pydantic==2.10.6;
pyserial==3.5;
colorama==0.4.6;
desktop-notifier==6.0.0;
comtypes==1.4.8; 
pygrabber==0.2;
psutil==6.1.1;
requests==2.32.3;

@dfgHiatus
Copy link
Contributor Author

Bump:

onnxruntime==1.19.2; '3.10' <= python_version and python_version <= '3.12'
onnxruntime==1.20.1; '3.13' <= python_version

onnxruntime-directml==1.19.2; platform_system == "Windows" and '3.10' <= python_version and python_version <= '3.12'
# onnxruntime-directml==1.20.1; platform_system == "Windows" and '3.13' <= python_version

onnxruntime-gpu==1.19.2; platform_system == "Linux" and '3.10' <= python_version and python_version <= '3.12'
# onnxruntime-gpu==1.20.1; platform_system == "Linux" and '3.13' <= python_version

torch==2.5.1; '3.10' <= python_version and python_version <= '3.12'
torch==2.6.0; '3.13' <= python_version

torchvision==0.20.1; '3.10' <= python_version and python_version <= '3.12'
torchvision==0.21.0; '3.13' <= python_version

opencv_python==4.11.0.86;
pillow==11.0.0;
pysimplegui==4.70.1;
python_osc==1.9.0;
pydantic==2.10.6;
pyserial==3.5;
colorama==0.4.6;
desktop-notifier==6.0.0;
comtypes==1.4.8; 
pygrabber==0.2;
psutil==6.1.1;
requests==2.32.3;

@dfgHiatus
Copy link
Contributor Author

Never mind, this is over-engineering it.

@Gregregorovich
Copy link

Gregregorovich commented Feb 19, 2025

Fedora 41 ships Python3.13 as the default Python version. To get Babble to run I've had to modify the install and run scripts to use python3.12 [...] instead of python3 [...] and python3.12 -m pip [...] instead of pip [...]. I also had to install pip on the old versions of python, which required running python 3.12 -m ensurepip --upgrade

(Is this the right place to put this? Or should this be a new issue?)

@dfgHiatus
Copy link
Contributor Author

Good point to make. I know Arch also ships with 3.13 by default now, I should make a note prior to running the install script to have the global python version on a user's system to 3.12.8 (for now)

@Gregregorovich
Copy link

I'm not entirely sure how I would go about doing that, at least in F41, because I can't just uninstall python3 as KDE Plasma has python dependencies, even with python312 installed. Using alternatives doesn't seem to work for pip, so presumably that's not the best way to do so, hence my editing of the install and run scripts.

@dfgHiatus
Copy link
Contributor Author

Have you tried using pyenv?

@dfgHiatus
Copy link
Contributor Author

Python 3.13 support is now possible by using a nightly build as described here: microsoft/onnxruntime#22274 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants