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

OneTrainer AttributeError: module tkinter - and FluxGym Error #1127

Open
technerd-official opened this issue Jan 28, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@technerd-official
Copy link

Package

OneTrainer and FluxGym

When did the issue occur?

Installing the Package

What GPU / hardware type are you using?

Nvidia 3090

What happened?

OneTrainer does not launch. My system is Linux ZorinOS 17. Errors below

Can I fix it myself somehow? Any clues?

PS. FluxGym also not working. It launches fine but when I want to start training: "train.sh: line 1: accelerate: command not found"

Console output

/home/joshua/Downloads/Data/Packages/OneTrainer/venv/lib/python3.10/site-packages/_distutils_hack/init.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
AttributeError: module '_tkinter' has no attribute 'file'. Did you mean: 'name'?

The above exception was the direct cause of the following exception:

ImportError: failed to load tkinter functions

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/joshua/Downloads/Data/Packages/OneTrainer/scripts/train_ui.py", line 5, in
from modules.ui.TrainUI import TrainUI
File "/home/joshua/Downloads/Data/Packages/OneTrainer/modules/ui/TrainUI.py", line 22, in
from modules.ui.TrainingTab import TrainingTab
File "/home/joshua/Downloads/Data/Packages/OneTrainer/modules/ui/TrainingTab.py", line 4, in
from modules.ui.TimestepDistributionWindow import TimestepDistributionWindow
File "/home/joshua/Downloads/Data/Packages/OneTrainer/modules/ui/TimestepDistributionWindow.py", line 13, in
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
File "/home/joshua/Downloads/Data/Packages/OneTrainer/venv/lib/python3.10/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in
from . import _backend_tk
File "/home/joshua/Downloads/Data/Packages/OneTrainer/venv/lib/python3.10/site-packages/matplotlib/backends/_backend_tk.py", line 25, in
from . import _tkagg
ImportError: initialization failed

Version

v2.13.2

What Operating System are you using?

Linux

@technerd-official technerd-official added the bug Something isn't working label Jan 28, 2025
@XDM-Inc
Copy link

XDM-Inc commented Feb 1, 2025

having the same issue here but for onetrainer

fedora linux 41 (KDE)
radeon 7900 xtx

a dirty workaround is to delete the venv folder and remake it with
python3.10 -m venv venv while in this directory (you have to install python3.10 for that to work)
then source venv/bin/activate
and finally pip install -r requirements.txt --force-reinstall (radeon users must open the requirements.txt and change the first line from"requirements-cuda.txt" to "requirements-rocm.txt" )
this lets the app launch but i dont know if theirs any side effects to this as im still trying to learn how to use this app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants