I have a Raspberry Pi project written in Python that uses the RPi.GPIO module. All work on the code is done in a Windows window in which RPi.GPIO will not be installed, and every time I try to run autodoc it crashes, stating that it cannot import RPi.GPIO.
D:\cube\docs\ledcube.rst:4: WARNING: autodoc: failed to import module u'ledcube'
; the following exception was raised:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\sphinx-1.2b1-py2.7.egg\sphinx\ext\autodoc.
py", line 326, in import_object
__import__(self.modname)
File "D:\cube\ledcube.py", line 2, in <module>
import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO
How to get around this?
source
share