From 3a6ebe6714555ef19e57535efd198fb3de124ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Richter?= <2268851+x3rAx@users.noreply.github.com> Date: Thu, 29 Sep 2022 22:22:29 +0200 Subject: [PATCH 1/2] Update GitHub URL to SecureGateway --- docs/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index da2042a..92f2bbe 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -18,7 +18,7 @@ Run the canadapter:: To download the example files and test files, you need to use:: - $ git clone https://github.com/caran/sgframework.git + $ git clone https://github.com/caran/SecureGateway.git In order to run tests, you might need to enable the virtual CAN bus. On Debian:: From 5e08c02413228f2c17c11160d023349d417c019f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Richter?= <2268851+x3rAx@users.noreply.github.com> Date: Thu, 29 Sep 2022 22:29:06 +0200 Subject: [PATCH 2/2] Add install command for `wheel` `wheel` is required for building `paho-mqtt`. On a fresh installation of Ubuntu 20.04, installing `sgframework` results in the following error: ``` ERROR: Command errored out with exit status 1: command: /home/mfr/Projects/virtual-can/.direnv/python-3.8.10/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4oqdwr7u/paho-mqtt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4oqdwr7u/paho-mqtt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-swwzebag cwd: /tmp/pip-install-4oqdwr7u/paho-mqtt/ Complete output (6 lines): 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: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Failed building wheel for paho-mqtt ``` Installing `whell` up front fixes it. --- docs/installation.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/installation.rst b/docs/installation.rst index 92f2bbe..4fa22c3 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -4,6 +4,7 @@ Installation At the command line:: + $ pip3 install wheel $ pip3 install sgframework This will also install the dependencies ``paho-mqtt`` and ``can4python``.