Trying to use python-can with raspi2 / jessie.
I installed/tried to install python-can via pip3 can package. Instaal looks to be ok, but python does not find module.
Tried to google around to get answer, but did not find any help....
CAN interface with IXXAT usb to CAN v2 seems to be working find after compiling kernel module. (can-utils work and socket is up)
Code: Select all
pi@raspberrypi:~/Desktop $ sudo pip3 install can
Requirement already satisfied (use --upgrade to upgrade): can in /usr/local/lib/python3.4/dist-packages
Cleaning up...
pi@raspberrypi:~/Desktop $
Code: Select all
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $ ls
can-2.0.egg-info libcan
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $
Code: Select all
pi@raspberrypi:~/Desktop $ python3.4 j1939CANlogger.py
Traceback (most recent call last):
File "j1939CANlogger.py", line 2, in <module>
import can
ImportError: No module named 'can'
pi@raspberrypi:~/Desktop $
Code: Select all
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $ uname -a
Linux raspberrypi 4.9.80-v7+ #1 SMP Thu Jan 3 21:30:06 EET 2019 armv7l GNU/Linux
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $ python3 --version
Python 3.4.2
pi@raspberrypi:/usr/local/lib/python3.4/dist-packages $