Re: [Owfs-developers] Installing pyownet

2019-10-28 Thread Mick Sulley
Hi Stefano, Thanks for the reply and thank you for developing pyownet and making it available.  I have been using it for many years now. I have always been confused over the use of sudo when installing packages, my approach has generally been to not use sudo and see if it all works as expect

Re: [Owfs-developers] Installing pyownet

2019-10-28 Thread Stefano Miccoli via Owfs-developers
There is little bit of confusion. The official OWFS bindings are - OW.py, based on SWIG wrapping the C API of libow - ownet.py, pure python owserver client you will find both in debian packages - python-ow, https://packages.debian.org/buster/python-ow

Re: [Owfs-developers] Installing pyownet

2019-10-27 Thread Mick Sulley
But that webpage says - To install pyownet: $ pip install pyownet On 27/10/2019 17:09, Martin Patzak wrote: No, pyownet is not part of ownet. Type "man ownet" pyownet has to be installed through pypi maybe you find more info here: https://github.com/miccoli/pyownet On 27.10.19 14:54, Mi

Re: [Owfs-developers] Installing pyownet

2019-10-27 Thread Mick Sulley
I am confused.  pyownet seems to be working with Python3 for me if I install it as sudo pip3 install pyownet that is unless there are some features of it that I have not used.  Is pyownet included within python3-ownet, or have i misunderstood that? Also on the pypi site https://pypi.org/proj

Re: [Owfs-developers] Installing pyownet

2019-10-27 Thread Matthias Urlichs via Owfs-developers
Hi, > Debian: "sudo apt install python3-ownet" (or the GUI equivalent). Having just done that … (a) the module is named "ownet" not "pyownet" (b) This module doesn't work with python3. Like, at all. I have created https://github.com/owfs/owfs/pull/44 to (barely) fix that, and I sent a bug repor

Re: [Owfs-developers] Installing pyownet

2019-10-27 Thread Stefano Miccoli via Owfs-developers
pyownet is only on pypi, not on debian: you have to use the virtualenv method. S. > On 27 Oct 2019, at 01:01, Mick Sulley wrote: > > I have a problem with that. I removed pyownet with > > sudo pip3 uninstall pyownet > > then I reinstalled with > > sudo apt install pyownet > > but t

Re: [Owfs-developers] Installing pyownet

2019-10-26 Thread Mick Sulley
I have a problem with that.  I removed pyownet with     sudo pip3 uninstall pyownet then I reinstalled with     sudo apt install pyownet but that gave me     E: Unable to locate package pyownet so I ran     sudo apt install python3-ownet which seemed to complete OK, but when I run my code

Re: [Owfs-developers] Installing pyownet

2019-10-26 Thread Stefano Miccoli via Owfs-developers
Best practice is to isolate packages downloaded from pypi in a virtual environment, and do not mess with the system wide python installation. As a general rule always avoid “sudo pip install”, and only install system wide python packages via the distribution package manager (a

Re: [Owfs-developers] Installing pyownet

2019-10-26 Thread Matthias Urlichs via Owfs-developers
On 26.10.19 12:53, Mick Sulley wrote: > Question - is it good practice to always install packages like this as > root? On Linux, best practice is to not use "pip" if the distribution already has a package for whatever you need. Debian: "sudo apt install python3-ownet" (or the GUI equivalent). --