ImagePaste
ImagePaste copied to clipboard
BUG: Cannot paste image in clipboard in Linux (xclip)
Describe the bug
I've tried to paste the image in my clipboard and get greeted by the log message below. I've also tried this on version 3.5 and 3.2, and yet still get the message.
I do have xclip installed on my system. I have tried creating a symbolic link at the location but that doesn't work either.
Below is the relevant parts of inxi -b:
System:
Host: boop Kernel: 6.1.51-1-MANJARO arch: x86_64 bits: 64
Desktop: KDE Plasma v: 5.27.8 Distro: Manjaro Linux
CPU:
Info: 6-core AMD Ryzen 5 4600H with Radeon Graphics [MT MCP] speed (MHz):
avg: 1399 min/max: 1400/3000
Graphics:
Device-1: AMD Renoir driver: amdgpu v: kernel
Device-2: IMC Networks HD Camera driver: uvcvideo type: USB
Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: amdgpu
dri: radeonsi gpu: amdgpu resolution: 2160x1440~60Hz
API: OpenGL v: 4.6 Mesa 23.1.7-1 renderer: AMD Radeon Graphics (renoir
LLVM 16.0.6 DRM 3.49 6.1.51-1-MANJARO)
Step to reproduce
- Open a blender project
- Copy any image file to clipboard
- Use ImagePaste's paste from clipboard feature
Relevant log output
Python: Traceback (most recent call last):
File "/home/user/.config/blender/3.6/scripts/addons/ImagePaste/imagepaste/operators.py", line 183, in execute
clipboard = Clipboard.push(get_save_directory())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.config/blender/3.6/scripts/addons/ImagePaste/imagepaste/clipboard/linux/linux.py", line 47, in push
process = Process.execute(cls.get_xclip_args())
^^^^^^^^^^^^^^^^^^^^
File "/home/user/.config/blender/3.6/scripts/addons/ImagePaste/imagepaste/clipboard/linux/linux.py", line 122, in get_xclip_args
chmod(XCLIP_PATH, S_IXUSR)
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.config/blender/3.6/scripts/addons/ImagePaste/imagepaste/clipboard/linux/bin/xclip'
Expected behavior
The image should be imported into the project.
Platform
Linux
Platform version
6.1.51-1-MANJARO x86_64
Blender version
Other
ImagePaste Version
1.8.1
Have you installed blendered as a flatpak?
Blender is installed as an Archlinux package:
$ yay -Qi blender
Name : blender
Version : 17:3.6.2-6
I had the same issue. Removing and reinstalling the addon solved it.