Package Details: nut-monitor 2.8.3-3

Git Clone URL: https://aur.archlinux.org/nut-monitor.git (read-only, click to copy)
Package Base: nut-monitor
Description: GUI to manage devices connected a NUT server
Upstream URL: http://www.networkupstools.org/
Licenses: GPL3
Submitter: zman0900
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 16
Popularity: 0.063754
First Submitted: 2014-01-29 05:38 (UTC)
Last Updated: 2025-06-03 16:19 (UTC)

Latest Comments

1 2 3 Next › Last »

dcelasun commented on 2025-06-03 16:23 (UTC)

@fow0ryl upstream doesn't support qt6 and the app depends on qt5, just search for qt5 in the PKGBUILD.

dcelasun commented on 2025-06-03 16:22 (UTC)

@ToadKing thanks, should be fixed now.

ToadKing commented on 2025-06-03 07:45 (UTC)

There's a file conflict with the latest nut package:

error: failed to commit transaction (conflicting files)
nut-monitor: /usr/lib/python3.13/site-packages/PyNUT.py exists in filesystem (owned by nut)

fow0ryl commented on 2025-05-05 15:30 (UTC) (edited on 2025-05-05 15:31 (UTC) by fow0ryl)

Please upgrade to qt6 because qt5 is outdated

depends=('nut' 'python' 'python-pyqt6' 'hicolor-icon-theme' 'python-telnetlib-313-and-up')

should do the job ...

dcelasun commented on 2025-04-07 05:43 (UTC)

@zman0900 fixed, thanks!

zman0900 commented on 2025-04-06 22:37 (UTC)

Needs "python-telnetlib-313-and-up" as a dependency - this won't run after cleaning up unrequired packages.

dcelasun commented on 2025-01-27 13:55 (UTC)

Here's a working PKGBUILD for the latest 2.8.2 version:

# Maintainer: Dan Ziemba <zman0900@gmail.com>

pkgname=nut-monitor
pkgver=2.8.2
pkgrel=1
pkgdesc="GUI to manage devices connected a NUT server"
arch=('any')
url="http://www.networkupstools.org/"
license=('GPL3')
depends=('nut' 'python' 'python-pyqt5' 'hicolor-icon-theme')
makedepends=('desktop-file-utils' 'python-telnetlib-313-and-up')
source=("http://www.networkupstools.org/source/2.8/nut-$pkgver.tar.gz")
sha256sums=('e4b4b0cbe7dd39ba9097be7f7d787bb2fffbe35df64dff53b5fe393d659c597d')

prepare() {
  cd "$srcdir/nut-$pkgver"

  sed -i 's|os.path.dirname( sys.argv\[0\] )|"/usr/share/nut-monitor"|' scripts/python/app/NUT-Monitor-py3qt5.in
}

build() {
  cd "$srcdir/nut-$pkgver"

  ./configure \
    --prefix=/usr \
    --without-python2
}

package() {
  cd "$srcdir/nut-$pkgver"
  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
  install -v -d -m 755 "${pkgdir}${site_packages}"
  install -m644 scripts/python/module/PyNUT.py "${pkgdir}${site_packages}"

  install -v -d -m 755 ${pkgdir}/usr/{bin,share/{appdata,nut-monitor/{pixmaps,ui,icons/256x256}}}
  install -m 755 scripts/python/app/NUT-Monitor-py3qt5 ${pkgdir}/usr/bin
  install -m 644 scripts/python/app/nut-monitor.appdata.xml ${pkgdir}/usr/share/appdata
  install -m 644 scripts/python/app/pixmaps/* ${pkgdir}/usr/share/nut-monitor/pixmaps
  install -m 644 scripts/python/app/ui/*.ui ${pkgdir}/usr/share/nut-monitor/ui
  install -m 644 scripts/python/app/icons/256x256/nut-monitor.png ${pkgdir}/usr/share/nut-monitor/icons/256x256

  for size in {48x48,64x64,256x256,scalable}; do
    install -v -d -m 755 ${pkgdir}/usr/share/icons/hicolor/${size}/apps
    install -m 644 scripts/python/app/icons/${size}/* ${pkgdir}/usr/share/icons/hicolor/${size}/apps
  done

  desktop-file-install --dir=$pkgdir/usr/share/applications scripts/python/app/nut-monitor-py3qt5.desktop

  ln -s NUT-Monitor-py3qt5 ${pkgdir}/usr/bin/nut-monitor
}

alexsv83 commented on 2025-01-17 18:38 (UTC)

For fixed "No module named 'telnetlib'" need install "python-telnetlib-313-and-up" from AUR. "PyNUT not found" this is a regression, for fixed need add this:

local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -v -d -m 755 "${pkgdir}${site_packages}"
install -m644 scripts/python/module/PyNUT.py "${pkgdir}${site_packages}"

in function "package()" PKGBUILD file after string "cd "$srcdir/nut-$pkgver"".

teJECSke commented on 2025-01-16 08:55 (UTC)

    import telnetlib
ModuleNotFoundError: No module named 'telnetlib'
configure: error: Prerequisites for PyNUT not found, can't install as required for NUT-Monitor desktop application

scenkner commented on 2023-12-10 16:59 (UTC)

I see. Thank you.