Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Cannot paste image in clipboard in Linux (xclip) #51

Open
utkuboduroglu opened this issue Sep 22, 2023 · 3 comments
Open

BUG: Cannot paste image in clipboard in Linux (xclip) #51

utkuboduroglu opened this issue Sep 22, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@utkuboduroglu
Copy link

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

  1. Open a blender project
  2. Copy any image file to clipboard
  3. 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

@utkuboduroglu utkuboduroglu added the bug Something isn't working label Sep 22, 2023
@b-init
Copy link
Owner

b-init commented Sep 29, 2023

Have you installed blendered as a flatpak?

@utkuboduroglu
Copy link
Author

Blender is installed as an Archlinux package:

$ yay -Qi blender
Name            : blender
Version         : 17:3.6.2-6

@HeiniGurke
Copy link

I had the same issue. Removing and reinstalling the addon solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants