Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Error Starting from main.py using python

Open ZeninVibes opened this issue 1 year ago • 9 comments

`Traceback (most recent call last):

File "/home/zenin/.config/Ax-Shell/main.py", line 12, in from modules.bar import Bar File "/home/zenin/.config/Ax-Shell/modules/bar.py", line 19, in from modules.dock import Dock File "/home/zenin/.config/Ax-Shell/modules/dock.py", line 17, in from modules.corners import MyCorner File "/home/zenin/.config/Ax-Shell/modules/corners.py", line 6, in from widgets.wayland import WaylandWindow as Window File "/home/zenin/.config/Ax-Shell/widgets/wayland.py", line 54, in class WaylandWindow(Window): ...<304 lines>... } File "/home/zenin/.config/Ax-Shell/widgets/wayland.py", line 55, in WaylandWindow @Property( ~~~~~~~~^ Layer, ^^^^^^ flags="read-write", ^^^^^^^^^^^^^^^^^^^ default_value=Layer.TOP, ^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/zenin/.local/lib/python3.13/site-packages/fabric/core/service.py", line 124, in init super().init( ~~~~~~~~~~~~~~~~^ type=_type, ^^^^^^^^^^^ ...<8 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/home/zenin/.local/lib/python3.13/site-packages/gi/_propertyhelper.py", line 150, in init self._check_default() ~~~~~~~~~~~~~~~~~~~^^ File "/home/zenin/.local/lib/python3.13/site-packages/gi/_propertyhelper.py", line 289, in _check_default elif not _gi.GType(default).is_a(ptype): ~~~~~~~~~^^^^^^^^^ TypeError: could not get typecode from object`

I already downgraded Pygobject to 35.0 before this as mentioned in #77 but it doesn't work.

ZeninVibes avatar Jun 16 '25 14:06 ZeninVibes

You are likely using an outdated commit. Please switch to the main branch and upgrade PyGObject; downgrading is not necessary when using the main branch.

S4NKALP avatar Jun 16 '25 16:06 S4NKALP

Hi, as S4NKALP said, downgrading isn't necessary anymore. Update python-gobject before updating Ax-Shell and you should be good.

Axenide avatar Jun 17 '25 03:06 Axenide

I Uninstalled and reinstalled the shell using the command after updating pygobject still the same issue persists

ZeninVibes avatar Jun 17 '25 05:06 ZeninVibes

Alright @ZeninVibes, try this command and show me the errors:

python ~/.config/Ax-Shell/main.py

Axenide avatar Jun 17 '25 06:06 Axenide

Alright @ZeninVibes, try this command and show me the errors:

python ~/.config/Ax-Shell/main.py

Traceback (most recent call last): File "/home/zenin/.config/Ax-Shell/main.py", line 12, in from modules.bar import Bar File "/home/zenin/.config/Ax-Shell/modules/bar.py", line 19, in from modules.dock import Dock File "/home/zenin/.config/Ax-Shell/modules/dock.py", line 17, in from modules.corners import MyCorner File "/home/zenin/.config/Ax-Shell/modules/corners.py", line 6, in from widgets.wayland import WaylandWindow as Window File "/home/zenin/.config/Ax-Shell/widgets/wayland.py", line 54, in class WaylandWindow(Window): ...<304 lines>... } File "/home/zenin/.config/Ax-Shell/widgets/wayland.py", line 55, in WaylandWindow @Property( ~~~~~~~~^ Layer, ^^^^^^ flags="read-write", ^^^^^^^^^^^^^^^^^^^ default_value=Layer.TOP, ^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/zenin/.local/lib/python3.13/site-packages/fabric/core/service.py", line 124, in init super().init( ~~~~~~~~~~~~~~~~^ type=_type, ^^^^^^^^^^^ ...<8 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/home/zenin/.local/lib/python3.13/site-packages/gi/_propertyhelper.py", line 150, in init self._check_default() ~~~~~~~~~~~~~~~~~~~^^ File "/home/zenin/.local/lib/python3.13/site-packages/gi/_propertyhelper.py", line 289, in _check_default elif not _gi.GType(default).is_a(ptype): ~~~~~~~~~^^^^^^^^^ TypeError: could not get typecode from object

Mostly the same output

ZeninVibes avatar Jun 17 '25 07:06 ZeninVibes

Still looks like you don't have your python-gobject updated, but let's check. Run this one:

pacman -Q | grep python-gobject

Axenide avatar Jun 17 '25 07:06 Axenide

pacman -Q | grep python-gobject python-gobject 3.52.3-3

this is the output

ZeninVibes avatar Jun 17 '25 09:06 ZeninVibes

Hmm, I have the same version and it works. I wonder... Maybe you need to update Fabric? Try this:

yay -S python-fabric-git --devel

That will install the latest commit, instead of the latest tag.

Axenide avatar Jun 17 '25 13:06 Axenide

Alright, I see that you and other person have the same issue. This is a dupe of #184 so we'll continue in that one, okay?

Axenide avatar Jun 17 '25 14:06 Axenide