Python throwing errors #22

Closed
opened 2025-08-04 10:16:26 +00:00 by nurly3 · 16 comments
nurly3 commented 2025-08-04 10:16:26 +00:00 (Migrated from github.com)

Describe the bug

I created a virtual envoirnment with fabric and pydbus, setproctitle but this error comes

Traceback (most recent call last):
File "/home/nurlyx/git/Modus/main.py", line 8, in
from modules.dock import Dock
File "/home/nurlyx/git/Modus/modules/dock.py", line 22, in
from modules.corners import MyCorner
File "/home/nurlyx/git/Modus/modules/corners.py", line 3, in
from widgets.wayland import WaylandWindow as Window
File "/home/nurlyx/git/Modus/widgets/wayland.py", line 55, in
class WaylandWindow(Window):
...<314 lines>...
}
File "/home/nurlyx/git/Modus/widgets/wayland.py", line 56, in WaylandWindow
@Property(
~~~~~~~~^
Layer,
^^^^^^
flags="read-write",
^^^^^^^^^^^^^^^^^^^
default_value=Layer.TOP,
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/nurlyx/git/Modus/.venv/lib/python3.13/site-packages/fabric/core/service.py", line 125, in init
super().init(
~~~~~~~~~~~~~~~~^
type=_type,
^^^^^^^^^^^
...<8 lines>...
**kwargs,
^^^^^^^^^
)
^
File "/home/nurlyx/git/Modus/.venv/lib/python3.13/site-packages/gi/_propertyhelper.py", line 150, in init
self._check_default()
~~~~~~~~~~~~~~~~~~~^^
File "/home/nurlyx/git/Modus/.venv/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

Reproduction

git clone the repo create a virtual virtualenvoirnment in python source activate.fish, install fabric, install setproctitle and pydbus

System Info

System:
    OS: Linux 6.15 Arch Linux
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 8.83 GB / 15.29 GB
    Container: Yes
    Shell: 4.0.2 - /bin/fish
  Binaries:
    Node: 24.4.1 - /usr/bin/node
    npm: 11.5.2 - /usr/bin/npm
    pnpm: 10.13.1 - /usr/bin/pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
### Describe the bug I created a virtual envoirnment with fabric and pydbus, setproctitle but this error comes Traceback (most recent call last): File "/home/nurlyx/git/Modus/main.py", line 8, in <module> from modules.dock import Dock File "/home/nurlyx/git/Modus/modules/dock.py", line 22, in <module> from modules.corners import MyCorner File "/home/nurlyx/git/Modus/modules/corners.py", line 3, in <module> from widgets.wayland import WaylandWindow as Window File "/home/nurlyx/git/Modus/widgets/wayland.py", line 55, in <module> class WaylandWindow(Window): ...<314 lines>... } File "/home/nurlyx/git/Modus/widgets/wayland.py", line 56, in WaylandWindow @Property( ~~~~~~~~^ Layer, ^^^^^^ flags="read-write", ^^^^^^^^^^^^^^^^^^^ default_value=Layer.TOP, ^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/nurlyx/git/Modus/.venv/lib/python3.13/site-packages/fabric/core/service.py", line 125, in __init__ super().__init__( ~~~~~~~~~~~~~~~~^ type=_type, ^^^^^^^^^^^ ...<8 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/home/nurlyx/git/Modus/.venv/lib/python3.13/site-packages/gi/_propertyhelper.py", line 150, in __init__ self._check_default() ~~~~~~~~~~~~~~~~~~~^^ File "/home/nurlyx/git/Modus/.venv/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 ### Reproduction git clone the repo create a virtual virtualenvoirnment in python source activate.fish, install fabric, install setproctitle and pydbus ### System Info ```Shell System: OS: Linux 6.15 Arch Linux CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H Memory: 8.83 GB / 15.29 GB Container: Yes Shell: 4.0.2 - /bin/fish Binaries: Node: 24.4.1 - /usr/bin/node npm: 11.5.2 - /usr/bin/npm pnpm: 10.13.1 - /usr/bin/pnpm ``` ### Validations - [x] Follow our [Code of Conduct](https://github.com/S4NKALP/.github/blob/main/CODE_OF_CONDUCT.md) - [x] Read the [Contributing Guide](https://github.com/S4NKALP/.github/blob/main/CONTRIBUTING.md). - [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [x] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
S4NKALP commented 2025-08-04 10:34:42 +00:00 (Migrated from github.com)

update the python-gobject to latest version

update the `python-gobject` to latest version
nurly3 commented 2025-08-04 11:24:39 +00:00 (Migrated from github.com)

I have it on the latest version

I have it on the latest version
S4NKALP commented 2025-08-04 11:53:24 +00:00 (Migrated from github.com)

I have it on the latest version

Which version

> I have it on the latest version Which version
nurly3 commented 2025-08-04 12:01:15 +00:00 (Migrated from github.com)

» gobject-query --version
2.84.3

» gobject-query --version 2.84.3
S4NKALP commented 2025-08-04 12:04:16 +00:00 (Migrated from github.com)

» gobject-query --version
2.84.3

Are you using a Virtual environment?

> » gobject-query --version > 2.84.3 Are you using a Virtual environment?
nurly3 commented 2025-08-04 12:05:40 +00:00 (Migrated from github.com)

Yes

Yes
nurly3 commented 2025-08-04 12:05:58 +00:00 (Migrated from github.com)

I mentioned that in the issue

But I've also tried it in my system outside of the venv

I mentioned that in the issue But I've also tried it in my system outside of the venv
S4NKALP commented 2025-08-04 12:15:19 +00:00 (Migrated from github.com)

I mentioned that in the issue

But I've also tried it in my system outside of the venv

Please verify the installed version of GObject using the following command:

pacman -Qi python-gobject

If you're using a virtual environment, kindly install the dependencies using the requirements.txt file you will find in the repo.
and after installing please then run
pip install --no-deps git+https://github.com/Fabric-Development/fabric.git

> I mentioned that in the issue > > But I've also tried it in my system outside of the venv Please verify the installed version of GObject using the following command: ```pacman -Qi python-gobject``` If you're using a virtual environment, kindly install the dependencies using the requirements.txt file you will find in the repo. and after installing please then run ```pip install --no-deps git+https://github.com/Fabric-Development/fabric.git```
S4NKALP commented 2025-08-04 12:19:04 +00:00 (Migrated from github.com)

@nurly3
you can follow the installation process
i have updated the README

@nurly3 you can follow the installation process i have updated the README
nurly3 commented 2025-08-04 12:19:49 +00:00 (Migrated from github.com)

✖ pacman -Qi python-gobject
Name : python-gobject
Version : 3.52.3-3
Description : Python bindings for GLib/GObject/GIO/GTK
Architecture : x86_64
URL : https://pygobject.gnome.org/

✖ pacman -Qi python-gobject Name : python-gobject Version : 3.52.3-3 Description : Python bindings for GLib/GObject/GIO/GTK Architecture : x86_64 URL : https://pygobject.gnome.org/
nurly3 commented 2025-08-04 12:19:54 +00:00 (Migrated from github.com)

Still can't run

Still can't run
S4NKALP commented 2025-08-04 12:26:25 +00:00 (Migrated from github.com)

✖ pacman -Qi python-gobject Name : python-gobject Version : 3.52.3-3 Description : Python bindings for GLib/GObject/GIO/GTK Architecture : x86_64 URL : https://pygobject.gnome.org/

it should work if you have latest version

> ✖ pacman -Qi python-gobject Name : python-gobject Version : 3.52.3-3 Description : Python bindings for GLib/GObject/GIO/GTK Architecture : x86_64 URL : https://pygobject.gnome.org/ it should work if you have latest version
S4NKALP commented 2025-08-04 12:26:49 +00:00 (Migrated from github.com)

Still can't run

can you create new venv and do the same mention in readme

> Still can't run can you create new venv and do the same mention in readme
nurly3 commented 2025-08-04 12:29:32 +00:00 (Migrated from github.com)

I did I think its my system's issue I am getting another issue battery.svg not fonud in Modus/config/assets/battery.svg I don't have a battery in my laptop

I did I think its my system's issue I am getting another issue battery.svg not fonud in Modus/config/assets/battery.svg I don't have a battery in my laptop
nurly3 commented 2025-08-04 12:35:33 +00:00 (Migrated from github.com)

Copied a battery icon from battery folder to the parent directory it worked thanks for being patient with me!

Copied a battery icon from battery folder to the parent directory it worked thanks for being patient with me!
S4NKALP commented 2025-08-04 12:37:43 +00:00 (Migrated from github.com)

Copied a battery icon from battery folder to the parent directory it worked thanks for being patient with me!

this issues is fixed

> Copied a battery icon from battery folder to the parent directory it worked thanks for being patient with me! this issues is fixed
Sign in to join this conversation.