Hi Charles, Can you give any instructions for installing the NutMonitor. I am looking at the readme in /scripts/python but am unsure how to proceed. I know absolutely nothing about python. Is there no install process for this? On 18/09/17 11:32, Charles Lepple wrote:> On Sep 17, 2017, at 6:33 PM, MTS <mts5204 at bigpond.com> wrote: >> I am using the same configs as I have in Linux Mint. What do I need to change here? > Sounds like this worked itself out, but if you change upsd.users in the future, you will need to reload (sudo upsd -c reload) or restart upsd.
On Sep 17, 2017, at 9:39 PM, MTS <mts5204 at bigpond.com> wrote:> > I am looking at the readme in /scripts/python but am unsure how to proceed.To be honest, the install process for the GUI is pretty much "install the distro package", due to the additional dependencies. (I have been trying to install some Python GUI modules from PyPI for another project, and the .deb packages seem way cleaner.) To install the PyNUT module, look for the 'site-packages' directory in the output of this command: python -c 'import sys; print sys.path' Copy PyNUT.py to that directory. (The Debian/Ubuntu/Mint way is to put modules in python-support, then the postinst does some magic to compile the modules into the site-packages for each of the Python versions that are installed.) To run the NUT-Monitor GUI, you will need PyGTK. For help there, you may need to ask on a Solus list or forum.
Hi Charles, I installed all the components according to the readme. I also ran python -c 'import sys; print sys.path' Then Copy PyNUT.py to that directory. Unfortunately I couldn't get it to work. For now I am happy to have a graceful shut-down. Thanks for your help. On 18/09/17 12:00, Charles Lepple wrote:> On Sep 17, 2017, at 9:39 PM, MTS <mts5204 at bigpond.com> wrote: >> I am looking at the readme in /scripts/python but am unsure how to proceed. > To be honest, the install process for the GUI is pretty much "install the distro package", due to the additional dependencies. (I have been trying to install some Python GUI modules from PyPI for another project, and the .deb packages seem way cleaner.) > > To install the PyNUT module, look for the 'site-packages' directory in the output of this command: > > python -c 'import sys; print sys.path' > > Copy PyNUT.py to that directory. > > (The Debian/Ubuntu/Mint way is to put modules in python-support, then the postinst does some magic to compile the modules into the site-packages for each of the Python versions that are installed.) > > To run the NUT-Monitor GUI, you will need PyGTK. For help there, you may need to ask on a Solus list or forum. > > > > >