How do I use the wazo python packages referenced in
on a remote server?
I am trying to learn node-red and other means to programmatically access wazo APIs
and I want to do this from a remote server running node-red and Python
The remote server is Debian 10 with Python 3 installed and configured with pip and venv
For the Python code, in a script on the remote server
I need to import the above modules but I get
ModuleNotFoundError: No module named ‘wazo_websocketd_client’
when I try to import them on the remote server (no surprise)
I also got the same error when I tried to use
“from wazo_websocketd_client import Client as Websocket”
on a test script on the wazo server so it is also possible I am just not calling it properly
I have pip installed on my remote server and I have setup an environment in which I have run test scripts so all is working well there.
I tried running pip on the wazo server with
python -m pip search wazo
python3 -m pip search wazo
and both said “No module named pip”
I know the search function for pip is disabled, but I thought that would be the safest test. On my remote server, when I ran the same command(s), I did get the expected error message that the pip search function was disabled.
I di not want to install pip on the wazo server for fear it would mess up your configuration on wazo.
Also, on the wazo server, in /usr/lib/python3/dist-packages, I could not find 2 of the 3 packages shown in the sample code:
I could only find
So I figured I was really doing something wrong and posted the above, not wanting to mess up wazo.