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

python error

Open vyshgit opened this issue 1 year ago • 39 comments

"class": algorithms.TripleDES, Traceback (most recent call last): File "/home/obi/.config/Ax-Shell/main.py", line 7, in from fabric import Application ImportError: cannot import name 'Application' from 'fabric' (/home/obi/.local/lib/python3.13/site-packages/fabric/init.py) me noob

vyshgit avatar Jun 16 '25 09:06 vyshgit

update: i fixed the issue after running install script ,when i open the hyprland only my wallpaper changed also the keybindings ,however no ax shell ,some keybindings wont work etc

vyshgit avatar Jun 16 '25 13:06 vyshgit

Hi, looks like Fabric didn't get installed (a lot of people is getting the same error, no idea why). Install with yay -S python-fabric-git and run the install command again. :)

Axenide avatar Jun 17 '25 03:06 Axenide

Hi, looks like Fabric didn't get installed (a lot of people is getting the same error, no idea why). Install with yay -S python-fabric-git and run the install command again. :)

Bro check the other message

vyshgit avatar Jun 17 '25 04:06 vyshgit

Try python ~/.config/Ax-Shell/main.py in a terminal and show me the output.

Axenide avatar Jun 17 '25 04:06 Axenide

Try python ~/.config/Ax-Shell/main.py in a terminal and show me the output.

Traceback (most recent call last): File "/home/obi/.config/Ax-Shell/main.py", line 12, in <module> from modules.bar import Bar File "/home/obi/.config/Ax-Shell/modules/bar.py", line 19, in <module> from modules.dock import Dock File "/home/obi/.config/Ax-Shell/modules/dock.py", line 17, in <module> from modules.corners import MyCorner File "/home/obi/.config/Ax-Shell/modules/corners.py", line 6, in <module> from widgets.wayland import WaylandWindow as Window File "/home/obi/.config/Ax-Shell/widgets/wayland.py", line 54, in <module> class WaylandWindow(Window): ...<304 lines>... } File "/home/obi/.config/Ax-Shell/widgets/wayland.py", line 55, in WaylandWindow @Property( ~~~~~~~~^ Layer, ^^^^^^ flags="read-write", ^^^^^^^^^^^^^^^^^^^ default_value=Layer.TOP, ^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/obi/.local/lib/python3.13/site-packages/fabric/core/service.py", line 124, in __init__ super().__init__( ~~~~~~~~~~~~~~~~^ type=_type, ^^^^^^^^^^^ ...<8 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/home/obi/.local/lib/python3.13/site-packages/gi/_propertyhelper.py", line 150, in __init__ self._check_default() ~~~~~~~~~~~~~~~~~~~^^ File "/home/obi/.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

vyshgit avatar Jun 17 '25 12:06 vyshgit

Run this and if version is older than 3.51.0, you have to update python-gobject:

pacman -Q | grep python-gobject

Axenide avatar Jun 17 '25 13:06 Axenide

Run this and if version is older than 3.51.0, you have to update python-gobject:

pacman -Q | grep python-gobject

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

vyshgit avatar Jun 17 '25 13:06 vyshgit

Alright, same issue as #185 so we'll continue here. I'll see what it could be.

Axenide avatar Jun 17 '25 14:06 Axenide

If possible, could you show me the version files? Just to check.

cat ~/.config/Ax-Shell/version.json | grep version

@vyshgit @ZeninVibes

Axenide avatar Jun 17 '25 14:06 Axenide

If possible, could you show me the version files? Just to check.

cat ~/.config/Ax-Shell/version.json | grep version @vyshgit @ZeninVibes

[obi@t ~]$ cat ~/.config/Ax-Shell/version.json | grep version
	"version": "0.0.16",

wadu

vyshgit avatar Jun 17 '25 14:06 vyshgit

hehe vysh boi got the same shit here

notg0d avatar Jun 17 '25 15:06 notg0d

I have no idea what the issue could be. I'll try installing from scratch to test. I'll come back if I get any errors.

Axenide avatar Jun 17 '25 15:06 Axenide

Alright, I got the same error. It was because of old build files. The solution in this case would be just doing this:

yay -Scc

Make sure to say yes to deleting those files. And then reinstall python-gobject:

yay -S python-gobject

Please try and tell me if it works. :)

Axenide avatar Jun 17 '25 16:06 Axenide

Nahh bruhh Not working either I force removed the python-gobject and installed again bot also not working with that Still getting the same typecode from object error

notg0d avatar Jun 18 '25 01:06 notg0d

Alright, I got the same error. It was because of old build files. The solution in this case would be just doing this:

yay -Scc

Make sure to say yes to deleting those files. And then reinstall python-gobject:

yay -S python-gobject

Please try and tell me if it works. :)

Update: i installed a fresh arch inside one of my other partition and tried Ax-Shell and it did worked ig(widgets are now visible). However i did what u told me to in my main Os ,but the issue still persists

vyshgit avatar Jun 18 '25 07:06 vyshgit

Try with this:

yay -S python-gobject --rebuildtree --cleanbuild

Axenide avatar Jun 18 '25 08:06 Axenide

Its showing there is no --cleanbuild option

notg0d avatar Jun 18 '25 08:06 notg0d

Lol sorry my bad, that's from makepkg xD

Here:

yay -S python-gobject --rebuild --redownload --answerclean All

Axenide avatar Jun 18 '25 09:06 Axenide

Lol sorry my bad, that's from makepkg xD

Here:

yay -S python-gobject --rebuild --redownload --answerclean All

it didn't work bro

vyshgit avatar Jun 18 '25 12:06 vyshgit

Lol sorry my bad, that's from makepkg xD Here: yay -S python-gobject --rebuild --redownload --answerclean All

it did'nt work bro

i used claude to fix the issue ,now the widgets are there and they are pretty functional but when i try to access them via keybinds(eg. SUPER+,) the respective widget opens and close right away

vyshgit avatar Jun 18 '25 12:06 vyshgit