question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Ubuntu] Can't send image

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
aaryanrrcommented, Sep 22, 2021

Sure!

1reaction
Delta456commented, Sep 15, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I send file and photo in Telegram? - Ask Ubuntu
I installed Telegram application in Ubuntu. I can't send a photo or file using Telegram. How can I solve it? telegram.
Read more >
Can't upload picture to localhost php - permission denied
So, I'm trying to upload pictures(book cover images, specifically) using a PHP script, but I'm getting a "failed to open stream: Permission ...
Read more >
Send files to a Bluetooth device - Official Ubuntu Documentation
Send Files does not work on unsupported devices such as iPhones. Open the Activities overview and start typing Bluetooth. Click on Bluetooth to...
Read more >
Ubuntu 20.04 - White screen while trying to send a file
I use the last Skype version on Ubuntu 20.04. When I'm trying to send a file to any chat, I get a white...
Read more >
Why Can't I Send or Receive Files? - Wickr Inc.
Your pictures and other files may not go through if the timestamp on the file/image message does not match what is being reported...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found