0
I want to make this executable code to use it in crontab:
import data
import mensagem
from skpy import Skype
sk = Skype(data.USERNAME, data.PASSWORD)
def post_message_group(mensage, channel_id):
"Post a message for group"
group_mensage = sk.chats.chat(channel_id)
group_mensage.sendMsg(mensage)
post_message_group(mensagem.mensage, data.CHANNEL_ID)
When I execute him with a python /home/kali-john/Documentos/Projects/scripts/skype-mensage/main.py
DA CERTO, it sends the message on skype
The problem when I spin it like this: /usr/bin/python3.9 /home/kali-john/Documentos/Projects/scripts/skype-mensage/main.py
(Which is the way I should put in crontab), error appears:
File "/home/kali-john/Documentos/Projects/scripts/skype-mensage/main.py", line 3, in <module>
from skpy import Skype
ModuleNotFoundError: No module named 'skpy'
Same way, but one way turns the other of error:
My whole system has python version 3.9.0
Can anyone tell me what it might be?