Skip to content

Python error when open ml4w-hyprland in new install #25

@Fedex159

Description

@Fedex159

Hi, I am gettting this error when open ml4w-hyprland app:

Exception in thread Thread-1 (initUI):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/app/share/hyprland-settings/hyprland_settings/main.py", line 138, in initUI
    value = lib.getKeywordValue(i["value"],self.rowtype)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/share/hyprland-settings/hyprland_settings/library/library.py", line 190, in getKeywordValue
    if custom_val == "1":
       ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'custom_val' where it is not associated with a value

I just used ml4w-hyprland in the terminal.

I just installed arch and the ml4w dotfiles.

Here what I see:

Image

If I add this line:

    def getKeywordValue(self,keyword,rowtype):
        value = self.loadKeywordValue(keyword)
        
        custom_val = ''
       ...

is working, but all the vars are empty is that ok?

Image

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions