PyWhatKit: [Ubuntu] Can't send image

Hello! Code works fine on Windows. Migrated the script to Ubuntu 18.04.3 LTS and doesn’t work. At first, the code below sent the text + the address of the image as a message. (e.g. “Hello!/aa/aaa/aa”) Then, I noticied that xclip was missing and installed it via sudo apt-get install xclip and now the code just sends the caption, but no image.

Tried the same code on windows and works perfectly.

The image is in the same path as the script.

pywhatkit.sendwhats_image(f"+549"+numero,img_path='/home/dide/Documentos/PythonX/ZorroBot/zorrito.jpg',caption="Hello",wait_time=10,tab_close=True)

Also tried:

pywhatkit.sendwhats_image(f"+549"+numero,img_path='zorrito.jpg',caption="Hello",wait_time=10,tab_close=True)

Also, tried without the “img_path” and just the ‘zorrito.jpg’.

But same result.

Thank you very much!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20

Most upvoted comments

Sure!

Please take your time! I appreciate the work on this library as it is handy plus docs are easy to grasp as well so I am using this in my school project.

Hey @Delta456 , sorry for the inconvenience caused. We are working on a fix for this bug and it will be released with the next update.

Thank you for your time 😃

We have tried this on our end and its a confirmed bug. We will be releasing an update soon to address this issue. Thanks for pointing it out.