@@ -159,3 +159,48 @@ If you receive the error ``No module named pkg_resources``, you need to install
159
159
Alternatively, install pip with `get-pip `_.
160
160
161
161
.. _get-pip : https://pip.pypa.io/en/stable/installing/
162
+
163
+
164
+ I'm getting ``command not found `` when running ``pinout ``
165
+ =========================================================
166
+
167
+ The gpiozero library is available as a Debian package for Python 2 and Python 3,
168
+ but the ``pinout `` tool cannot be made available by both packages, so it's only
169
+ included with the Python 3 version of the package. To make sure the ``pinout ``
170
+ tool is available, the ``python3-gpiozero `` package must be installed:
171
+
172
+ .. code-block :: console
173
+
174
+ $ sudo apt install python3-gpiozero
175
+
176
+ Alternatively, installing gpiozero using ``pip `` will install the command line
177
+ tool:
178
+
179
+ .. code-block :: console
180
+
181
+ $ sudo pip3 install gpiozero
182
+
183
+ or:
184
+
185
+ .. code-block :: console
186
+
187
+ $ sudo pip install gpiozero
188
+
189
+
190
+ The ``pinout `` command line tool incorrectly identifies my Raspberry Pi model
191
+ =============================================================================
192
+
193
+ If your Raspberry Pi model is new, it's possible it wasn't known about at the
194
+ time of the gpiozero release you are using. Ensure you have the latest version
195
+ installed (remember, the ``pinout `` tool usually comes from the Python 3 version
196
+ of the package as noted in the previous FAQ).
197
+
198
+ If the Pi model you are using isn't known to gpiozero, it may have been added
199
+ since the last release. You can check the `GitHub issues `_ to see if it's been
200
+ reported before, or check the ``commits``_ on GitHub since the last release to
201
+ see if it's been added. The model determination can be found in
202
+ :file:`gpiozero/pins/data.py`.
203
+
204
+
205
+ .. _GitHub issues: https://github.com/RPi-Distro/python-gpiozero/issues
206
+ .. _commits: https://github.com/RPi-Distro/python-gpiozero/commits/master
0 commit comments