Tool/software: Linux
AM335x BBB, Linux SDK 5.01
I have a Python script that ran fine in SDK 3.03. It won't work in SDK 5.01. It looks like SDK 3.03 used Python 2 while SDK 5.x has both Python 2 and Python 3. So in that regard I was expecting things to still work. Here's the error that I get:
root@am335x-evm:~# uname -a
Linux am335x-evm 4.14.67-gd315a9bb00 #1 PREEMPT Fri Oct 12 09:30:01 CDT 2018 armv7l GNU/Linux
root@am335x-evm:~# neard
root@am335x-evm:~# test/test-adapter powered nfc0 on
Traceback (most recent call last):
File "test/test-adapter", line 4, in <module>
import dbus
ImportError: No module named dbus
And here's a snippet of the start of that test/test-adapter script:
#!/usr/bin/python
import sys
import dbus
import neardutils
I have tried changing the first line to python3 which actually gets passed this specific error, but it seems to introduce so many other errors that I don't think that's the right solution. Is there something that's missing from the SDK to fully support Python 2 and Python 3?