img2latex-mathpix icon indicating copy to clipboard operation
img2latex-mathpix copied to clipboard

[Bug] No clipboard image found

Open su-stephen opened this issue 4 years ago • 19 comments

Describe the bug I'm getting a no clipboard image found bug

To Reproduce I take a screenshot with the default mac app that transfers to clipboard and then press "enter", but I get the error message. I am able to paste afterwards into microsoft word but the program doesn't pick up the clipboard

Desktop (please complete the following information): Mac

Thanks!!

su-stephen avatar Oct 07 '20 06:10 su-stephen

[Auto response] Looks like this is your first issue. I will look into it as soon as possible.

github-actions[bot] avatar Oct 07 '20 06:10 github-actions[bot]

Which snip app are you using? I am using the macOS as while and I can paste the images captured by macOS built-in snip function. Try Shift (⇧)-Control (⌃)-Command (⌘)-4 .

blaisewang avatar Oct 07 '20 17:10 blaisewang

Yes I am doing the same built-in "copy picture of selected area to the clipboard" mac built in snipping function with that shortcut.

Let me know if there's any other information I can supply. I am using the latest version of the app

su-stephen avatar Oct 07 '20 20:10 su-stephen

Check macOS preferences - Security & Privacy - Input Monitoring. Have you granted this permission to an app called 'java'?

blaisewang avatar Oct 08 '20 10:10 blaisewang

I use the same procedure to test the problem as you described. But I cannot reproduce the same result. I would guess this might be a permission problem? A workaround solution might be pasting the image into Microsoft Word and then copy the image from Microsoft Word then press the 'enter'.

blaisewang avatar Oct 08 '20 10:10 blaisewang

Check other permissions in the Security & Privacy to see if there is any permission you haven't granted to the java app.

blaisewang avatar Oct 08 '20 10:10 blaisewang

The question has been solved, it may not be the problem of the software, and the question should because of the network, when I use a vpn, the question doesn't appear anymore.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ 2020年10月8日星期四晚上6点19分,Blaise Wang [email protected] 来信:

Check macOS preferences - Security & Privacy - Input Monitoring. Have you granted this permission to an app called 'java'?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wang-xudong avatar Oct 08 '20 10:10 wang-xudong

Yes the problem is alleviated by first pasting the image into microsoft word! So that means it's a permissions issue? I tried enabling both java and the Image2Latex App in input monitoring/accessibility permissions but still wasn't able to circumvent the issue

su-stephen avatar Oct 10 '20 20:10 su-stephen

Yes the problem is alleviated by first pasting the image into microsoft word! So that means it's a permissions issue? I tried enabling both java and the Image2Latex App in input monitoring/accessibility permissions but still wasn't able to circumvent the issue

I am not sure. Might be the permission issue. Do you have any other application that might alter your clipboard?

blaisewang avatar Oct 10 '20 20:10 blaisewang

I don't think I have any other application but I will think about if there are any other conflicting issues

su-stephen avatar Oct 10 '20 20:10 su-stephen

Do you have Python 3 installed on your mac? Please take a screenshot first, then run the following code, and then test whether the screenshot can be used for OCR with the app. If not, please upload the debug.data generated by the following code. Pillow needs to be installed to run the code, python3 -m pip install Pillow.

from PIL import ImageGrab

im = ImageGrab.grabclipboard()
with open("debug.data", "wb") as f:
    f.write(im.tobytes())

blaisewang avatar Oct 13 '20 03:10 blaisewang

Try this version to see if the issue still occurs?

https://github.com/blaisewang/img2latex-mathpix/releases/download/v0.7.8-alpha/Image2LaTeX-0.7.8-macos.zip

blaisewang avatar Oct 15 '20 18:10 blaisewang

debug.data.zip Hi. Unfortunately the issue still occurs. Here is the debug data

Thank you!

su-stephen avatar Oct 22 '20 09:10 su-stephen

Hello I also have the same issue. I use Dropbox whenever I take a screenshot by Cmd+Shift+4 it gives me the dropbox access link to my clipboard. I think it is not possible to solve this problem.

For this reason I use 3rd party program Lightshot and assign another key just for İmage2Latex. However it doesn't copy to clipboard automatically. I need to use the manual option only which is very annoying.

Thanks for your interest in advance.

hayriokcu avatar Apr 21 '21 17:04 hayriokcu

Try this version to see if the issue still occurs?

https://github.com/blaisewang/img2latex-mathpix/releases/download/v0.7.8-alpha/Image2LaTeX-0.7.8-macos.zip

Hello, I am having the same issue on high sierra. I tried suggestions above but the problem still persists. I have the 0.7.8 version on my other MacBook and the app is just working great. Also, the link above for the latest version seems not working.

acelik avatar Jun 05 '21 16:06 acelik

Has anyone somehow overcome this issue? Running it on High Sierra.

acelik avatar Jun 13 '21 14:06 acelik

不能连续使用,识别一张截图后,再次截图时图片导入不进去,只能退出软件重新进入,怎么解决?另选择图片导入(MacBook Pro 13-inch, 2018, Four Thunderbolt 3 Ports 11.0.1)

guomengran avatar Nov 11 '21 06:11 guomengran

我使用相同的程序来测试您描述的问题。但我无法重现相同的结果。我猜这可能是权限问题?解决方法可能是将图像粘贴到 Microsoft Word 中,然后从 Microsoft Word 复制图像,然后按“输入”。

“输入”是哪个按钮?

guomengran avatar Nov 11 '21 06:11 guomengran

Seems like no solution or workaround yet :(

acelik avatar Apr 06 '22 18:04 acelik