CANBasic API
Posted: Thu 17. Mar 2016, 15:37
Hi, I'm trying to use the CANBasic API for Python. I have downloaded the API folder for linux .. in the folder is a PCANBasic.h file which is a C file.. and the libpcanbasic.so as well as the examples folder (containing python folder, which includes PCANBAsic.py, PCANBasic.pyc and PCANBasicExample.pyw) .. and PCANBasic folder.
I do a make all on the project to install the PCANBasic Api first..
I am having trouble installing the API into my Python IDE (Pycharm). I have a python file readwrite.py in my project under a folder called src.
project----src----readwrite.py
I do an import PCANBasic in my python script to call the API
however I cannot seem to make pycharm import the PCANBasic API.. I have tried importing the PCANBasic.py script into the same level as the readwrite.py
project ----src-----readwrite.py, PCANBasic.py
I have no idea how to import this API so that I can start using its functions.. I've tried searching google for Pycharm rated library import subjects.. but it would be helpful if I knew which file in the PCANBasic Api i need to point to to use the import function in python..
please could anyone help with this?
best regards,
Nicholas
I do a make all on the project to install the PCANBasic Api first..
I am having trouble installing the API into my Python IDE (Pycharm). I have a python file readwrite.py in my project under a folder called src.
project----src----readwrite.py
I do an import PCANBasic in my python script to call the API
however I cannot seem to make pycharm import the PCANBasic API.. I have tried importing the PCANBasic.py script into the same level as the readwrite.py
project ----src-----readwrite.py, PCANBasic.py
I have no idea how to import this API so that I can start using its functions.. I've tried searching google for Pycharm rated library import subjects.. but it would be helpful if I knew which file in the PCANBasic Api i need to point to to use the import function in python..
please could anyone help with this?
best regards,
Nicholas