Skip to content

The install.sh script does not install the rpi-ws281x Python library due to a server outage #5

Description

@JardaG

The following code is used in the install.sh script:
SOFT = $ (pip search rpi-ws281x | grep "INSTALLED")
which, however, is currently failing due to a failure on the part of PyPI's search backends, pls. see the error listing below.

I suggest using this code instead.
SOFT = $ (pip list | grep "rpi-ws281x")
Or better yet, replace pip call with pip3 everywhere, which solves incorrect include when running other scripts using python3, especially in smartups.service.

	SOFT = $ (pip3 list | grep "rpi-ws281x")
	if [ -z "$SOFT" ]; then
		pip3 install rpi-ws281x

Contents of the message when trying to install:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 48, in run
    pypi_hits = self.search(query, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 65, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/usr/lib/python3/dist-packages/pip/_internal/download.py", line 791, in request
    return self.parse_response(response.raw)
  File "/usr/lib/python3.7/xmlrpc/client.py", line 1342, in parse_response
    return u.close()
  File "/usr/lib/python3.7/xmlrpc/client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions