speedtest-cli stopped working today?
Tony Arnold
tony.arnold at manchester.ac.uk
Tue Apr 13 16:12:33 UTC 2021
Peter,
On Tue, 2021-04-13 at 16:32 +0100, Peter Flynn wrote:
> On 12/04/2021 22:45, Jim Byrnes wrote:
> > On 4/12/21 4:14 PM, Liam Proven wrote:
> > > On Mon, 12 Apr 2021 at 23:07, Jim Byrnes <
> > > jf_byrnes at comcast.net
> > > > wrote:
> > > > People used to recommend not removing python2 because there
> > > > were still
> > > > system scripts using it. I don't know how relevant that is now.
> > >
> > > Sure, but the OP said it was not installed and that he installed
> > > it.
>
> I should have been more accurate. I originally typed
>
> $ python setup.py
> python: command not found.
>
> Then
>
> $ sudo apt install python
>
> led me down a rabbit-hole that revealed there are actually three
> packages:
>
> python
> python-is-python2
> python-is-python3
>
> which are packages to get you the right version; but by default,
> although apparently mint 20.1 installs python3 correctly, it does NOT
> provide the simple command "python".
Never has done on Linux, or at least on Ubuntu. The command 'python'
has always meant python 2. 'python3' means version 3.
And previously python 2 was installed by default an python3 was an
extra. That's change around now.
> None of them provide anything called 'setuptools'. However, there
> does
> appear to be a package called python3-setuptools which installs OK.
That's correct. setuptools is not a requirement for python3, so it
needs installing separately.
> However, Python is less than useful about installation. Having
> unzipped
> speedtest-cli-master.zip, typing
>
> $ python setup.py
>
> gets me the error message:
>
> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> or: setup.py --help [cmd1 cmd2 ...]
> or: setup.py --help-commands
> or: setup.py cmd --help
>
> error: no commands supplied
The way to install packages that use setup tools is to do:
$ pip3 install .
where . is the directory where setup.py can be found.
Even this i no longer the recommended syntax! The 'modern' syntax is to
use this
$ python3 -m pip install .
This is all well documented if not that intuitive.
> However, the README does contain THE most important piece of
> information: download the speedtest-cli-py and make it executable.
> End of story.
HaHa! Yes RTFM is always a good idea!
Regards,
Tony.
--
Tony Arnold MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | Office 1, Kilburn Building | The University of Manchester | Manchester M13 9PL | T: +44 161 275 6093 | M: +44 773 330 0039
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4054 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210413/1804559e/attachment.bin>
More information about the ubuntu-users
mailing list