themix-project / themix-gui

Graphical application for generating different color variations of Oomox (Numix-based) and Materia (ex-Flat-Plat) themes (GTK2, GTK3, Cinnamon, GNOME, Openbox, Xfwm), Archdroid, Gnome-Color, Numix, Papirus and Suru++ icon themes. Have a hack for HiDPI in gtk2. Its Base16 plugin also allowing a lot of app themes support like Alacritty, Emacs, GTK4, KDE, VIM and many more.
GNU General Public License v3.0
2.06k stars 67 forks source link

ModuleNotFoundError: No module named 'oomox_gui.i18n' #158

Closed ivanbartsov closed 5 years ago

ivanbartsov commented 5 years ago
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/oomox/oomox_gui/__main__.py", line 1, in <module>
    from .main import main
  File "/opt/oomox/oomox_gui/main.py", line 18, in <module>
    from .theme_file_parse import read_colorscheme_from_path
  File "/opt/oomox/oomox_gui/theme_file_parse.py", line 1, in <module>
    from .theme_model import THEME_MODEL
  File "/opt/oomox/oomox_gui/theme_model.py", line 4, in <module>
    from .plugin_loader import (
  File "/opt/oomox/oomox_gui/plugin_loader.py", line 46, in <module>
    init_plugins()
  File "/opt/oomox/oomox_gui/plugin_loader.py", line 29, in init_plugins
    os.path.join(plugin_path, "oomox_plugin.py")
  File "/opt/oomox/oomox_gui/helpers.py", line 23, in get_plugin_module
    spec.loader.exec_module(module)
  File "/opt/oomox/oomox_gui/../plugins/oomoxify/oomox_plugin.py", line 8, in <module>
    from oomox_gui.i18n import _
ModuleNotFoundError: No module named 'oomox_gui.i18n'

Platform: Arch Linux Version: oomox 1.7.0.2-3 from the AUR

Blame led me to this commit, but I may be mistaken

actionless commented 5 years ago

is it fine with oomox-git?

actionless commented 5 years ago

the commit which you are referencing is newer than version 1.7.0.2

actionless commented 5 years ago

i've updated aur package for oomox, please try now

ivanbartsov commented 5 years ago

i've updated aur package for oomox, please try now

Yeah, now the error is gone, thanks for the quick reaction! :+1:

is it fine with oomox-git?

Yup, oomox-git is ok.

Also, now I noticed with oomox the /opt/oomox/plugins/import_base16/base16-data/ folder is empty (so oomox logs an error and the base16 preset group is empty in the UI). I checked the PKGBUILD files and oomox-git's PKGBUILD has base16-builder repo listed as a submodule, while PKGBUILD for oomox doesn't have any references to it.

Let me know if you want me to file a separate issue for that.

actionless commented 5 years ago

@ivanbartsov please try now

ivanbartsov commented 5 years ago

@actionless yup, all is well now, the folder is in place.

actionless commented 5 years ago

thanks for reporting!