[Tutor] Question to Phyton and XBee
Marc Tompkins
marc.tompkins at gmail.com
Tue Apr 11 15:04:48 EDT 2017
On Tue, Apr 11, 2017 at 9:12 AM, Daniel Berger <bergiel at gmx.de> wrote:
> Hello,
>
> I have installed the modules to control xbee with Python
> https://pypi.python.org/pypi/XBee). Afterwards I have set the path
> variable on C:\Python27\python-xbee-master and also the subdirectories.
> To
> check, if the modules are available, I have written the code as
> recommended (https://pypi.python.org/pypi/XBee)
>
> # Import and init xbee device
> from xbee import XBee
> import serial
> import arduino
>
> The interpreter gave the error message
> File "C:/Users/daniel/PycharmProjects/hardware_test/test_xbee.py",
> line 2,
> in <module>
> from xbee import XBee
> ImportError: No module named xbee
>
> I have done the same with https://github.com/nioinnovation/python-xbee
> and
> it have the same effect.
> As I'm not very familiar with Python, I would like to know, what is
> going
> wrong and how I can find the module.
>
How did you install it? If you use the very simplest method - "pip
install xbee" - it should automatically take care of the path for you.
More information about the Tutor
mailing list