Package Details: netgui 0.85-1

Git Clone URL: https://aur.archlinux.org/netgui.git (read-only, click to copy)
Package Base: netgui
Description: GUI for netctl, stable but beta. Replaces WiFiz.
Upstream URL: https://github.com/codywd/NetGUI
Keywords: gui netctl netgui
Licenses: MIT
Conflicts: netcfg, wicd
Provides: netgui
Replaces: wifiz, wifiz-git
Submitter: pivotraze
Maintainer: pivotraze
Last Packager: pivotraze
Votes: 0
Popularity: 0.000000
First Submitted: 2018-04-05 19:41 (UTC)
Last Updated: 2018-04-16 00:24 (UTC)

Latest Comments

1 2 Next › Last »

pivotraze commented on 2022-12-14 14:10 (UTC)

@manouchk I pushed a potential fix to the develop branch. I purchased a new laptop charger for my Windows/Linux laptop and will be testing it then. If it works, I'll push to main and update this PKGBUILD.

manouchk commented on 2022-12-13 17:02 (UTC) (edited on 2022-12-13 17:02 (UTC) by manouchk)

The problem of yochananmarqos (2018) still occur. I commented also on github. This is on archlinux (not manjaro).

yochananmarqos commented on 2019-01-05 00:25 (UTC)

@pivotraze I hope you're feeling better. I think you meant adding python2-setuptools to makedepends.

pivotraze commented on 2018-12-05 05:31 (UTC)

Hey guys,

Just wanted to make a quick comment. I will be looking into your issue soon, I just haven't been able to yet because I am extremely sick right now. I apologise for the wait.

Python2 is used only for the setup.py portion, but python3 is used for all other scripts. It is a planned update to remove python2. I guess I should have put Python2 as a make dependency.

To get around your issue, you should be able to simply create the missing file with something like:

{ "notification_type": "Terminal" }

Bogus commented on 2018-12-05 00:12 (UTC) (edited on 2018-12-05 00:17 (UTC) by Bogus)

@yochananmarqos, I am not an expert in programming, but if I am not mistaken and if I understand correctly the code in the Github files, can it be that either the json or gi Python module is missing (or both)? These modules seem to be essential in creating the files, your error code is mentioning (see lines 95-166 in main.py, where GObject and Gtk from the gi module are used to build the class NetGUI). You can check it out by trying to load them in a console after initiating Python3. If they are indeed missing, I would install these modules or run makepkg -si without changing the original PKGBUILD. Another possible reason can be the version of Notify (see lines 18-22 in main.py) or the libnotify package (not Python module!). If this is not working, I am sorry to say that I have currently no idea.

yochananmarqos commented on 2018-12-04 23:47 (UTC) (edited on 2018-12-05 00:51 (UTC) by yochananmarqos)

@Bogus The setup.py still uses the python2 shebang. I tried the following and still receive the same stderr I posted below:

prepare() {
    cd $srcdir/$_gitname
    sed -i 's"#!/usr/bin/python2"#!/usr/bin/python3"g' setup.py
}

package() {
    cd $srcdir/$_gitname
    python setup.py install --root="$pkgdir/" --optimize=1
}

Bogus commented on 2018-12-04 23:23 (UTC) (edited on 2018-12-04 23:48 (UTC) by Bogus)

@pivotraze, so far as I read the webpage of the project, @codywd acknowledges the use of Python3 over Python2 (see Dependencies section and second point in Why fork WiFiz into NetGUI section). The PKGBUILD in the repository uses python2. Shouldn't be the python2 command changed to python (in case Python3 is chosen OS-wide) or otherwise python3?

yochananmarqos commented on 2018-12-03 23:42 (UTC)

The GUI does not launch:

$ su -c "netgui"
Traceback (most recent call last):
  File "/usr/share/netgui/main.py", line 559, in <module>
    NetGUI()
  File "/usr/share/netgui/main.py", line 114, in __init__
    self.notifications = Notification()
  File "/usr/share/netgui/Library/notifications.py", line 9, in __init__
    user_prefs = json.load(open(preferences_file))
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/netgui/preferences.json'

I opened an issue on GitHub here.

pivotraze commented on 2018-04-08 15:33 (UTC)

@simona glad to hear it!

simona commented on 2018-04-08 02:48 (UTC)

Ok... gone. Thanks :-)