dgarozzo wrote:...This plugin has a dependency on socketIO-client. One way to install this is to bring up a Terminal, and type:....
Did you know you can just include the necessary modules in the plugin bundle? You need to create a folder in the
Server Plugin folder. You can call it whatever you want, something like
Modules is clear. Then, place all the needed modules in that folder. You will also need two create
__init__.py That will contain a list of sub-folders. For example:
- Code: Select all
__all__ = ["socketIO_client", "certifi", "chardet", "idna", "requests", "urllib3", "websocket"]
When you do an import, you can just prefix the path with
Modules.., For example, instead of
- Code: Select all
from socketIO_client import SocketIO
use
- Code: Select all
from Modules.socketIO_client import SocketIO
For the
Automatic OBD-II plugin you will need to make one additional change in Modules.SocketIO_client.transports.py. Change line 20 to read
- Code: Select all
from Modules.websocket import
Following the above steps I was able to load the plugin. I have not actually tried to get it connected yet, so there may need to be other minor path changes. But, you get the idea.