Package Details: netgui 0.85-1

Git Clone URL: https://aur.archlinux.org/netgui.git (read-only)
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
Last Updated: 2018-04-16 00:24

Latest Comments

yochananmarqos commented on 2019-01-05 00:25

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

pivotraze commented on 2018-12-05 05:31

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

@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

@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

@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

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

@simona glad to hear it!

simona commented on 2018-04-08 02:48

Ok... gone. Thanks :-)

pivotraze commented on 2018-04-07 23:13

@simona: I rebuilt both the PKGBUILD and the .SRCINFO. Please try again :)

simona commented on 2018-04-07 19:37

:: netgui package(s) failed to install. :: ensure package version does not mismatch between .SRCINFO and PKGBUILD :: ensure package name has a VCS suffix if this is a devel package