This is a process I used to reproduce it…
pi@rak-gateway:~ $ rm -rf .local/
pi@rak-gateway:~ $ pip install -e git+https://github.com/hologram-io/hologram-python.git@refactor/removeauth#egg=hologram-python
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Obtaining hologram-python from git+https://github.com/hologram-io/hologram-python.git@refactor/removeauth#egg=hologram-python
Updating ./src/hologram-python clone (to revision refactor/removeauth)
Running command git fetch -q --tags
Running command git reset --hard -q b0634bed6d33782c11558202442853fe75b3321e
Collecting hjson~=3.0.0
Using cached https://www.piwheels.org/simple/hjson/hjson-3.0.2-py3-none-any.whl (54 kB)
Collecting mock~=3.0.5
Using cached https://www.piwheels.org/simple/mock/mock-3.0.5-py2.py3-none-any.whl (25 kB)
Collecting psutil~=5.6.3
Using cached https://www.piwheels.org/simple/psutil/psutil-5.6.7-cp39-cp39-linux_armv7l.whl (264 kB)
Collecting pyroute2==0.5.*
Using cached https://www.piwheels.org/simple/pyroute2/pyroute2-0.5.19-py3-none-any.whl (403 kB)
Collecting pyserial~=3.4.0
Using cached https://www.piwheels.org/simple/pyserial/pyserial-3.4-py2.py3-none-any.whl (193 kB)
Collecting python-pppd==1.0.3
Using cached https://www.piwheels.org/simple/python-pppd/python_pppd-1.0.3-py3-none-any.whl (5.5 kB)
Collecting pyudev~=0.21.0
Using cached https://www.piwheels.org/simple/pyudev/pyudev-0.21.0-py3-none-any.whl (56 kB)
Collecting pyusb~=1.0.2
Using cached https://www.piwheels.org/simple/pyusb/pyusb-1.0.2-py3-none-any.whl (57 kB)
Collecting requests~=2.22.0
Using cached https://www.piwheels.org/simple/requests/requests-2.22.0-py2.py3-none-any.whl (57 kB)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from mock~=3.0.5->hologram-python) (1.16.0)
Collecting chardet<3.1.0,>=3.0.2
Using cached https://www.piwheels.org/simple/chardet/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting idna<2.9,>=2.5
Using cached https://www.piwheels.org/simple/idna/idna-2.8-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests~=2.22.0->hologram-python) (2020.6.20)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached https://www.piwheels.org/simple/urllib3/urllib3-1.25.11-py2.py3-none-any.whl (127 kB)
Installing collected packages: urllib3, idna, chardet, requests, pyusb, pyudev, python-pppd, pyserial, pyroute2, psutil, mock, hjson, hologram-python
Running setup.py develop for hologram-python
Successfully installed chardet-3.0.4 hjson-3.0.2 hologram-python idna-2.8 mock-3.0.5 psutil-5.6.7 pyroute2-0.5.19 pyserial-3.4 python-pppd-1.0.3 pyudev-0.21.0 pyusb-1.0.2 requests-2.22.0 urllib3-1.25.11
pi@rak-gateway:~ $ sudo ~/.local/bin/hologram send --cloud --devicekey `cat device.key` -t "hello" -v "this is a test"
Traceback (most recent call last):
File "/home/pi/.local/bin/hologram", line 4, in <module>
__import__('pkg_resources').require('hologram-python==0.9.0')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3243, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3226, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 568, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'hologram-python==0.9.0' distribution was not found and is required by the application