inkpath icon indicating copy to clipboard operation
inkpath copied to clipboard

Extension can't find the module ipcvobj

Open MiliAxe opened this issue 3 years ago • 4 comments

Steps to reproduce

  1. Install Xournal++ from Arch's official repository or build it from the aur (Xournalpp-git) package.
  2. Download the latest release of this extension from the releases.
  3. Extract the extension to /usr/share/xournalpp/plugins/.
  4. Start the extension from the tabs or via the keybind.

Screenshot image

Extra information I've tried to copy the extension to the .config directory and also I've tried copying the module itself to /usr/lib/lua/5.4/ but I also encountered an error from that.

Thanks for the great extension.

MiliAxe avatar Oct 24 '22 09:10 MiliAxe

Having the exact same issue. I also confirm that permissions of './ipcvobj.so' looks fine: 2022-10-24_12-52 Also ran xournalpp with root privilages, still having the same issue.

nimaaskarian avatar Oct 24 '22 09:10 nimaaskarian

Hey guys, thanks for the bug report! Let me investigate today and get back to you on this. Honestly, of all the weird stuff I've had to learn to make this extension, this part has been the most contesting.

Questions: @nimaaskarian : What version of Linux are you using? How did you install Xournalpp? @MiliAxe :

I've tried to copy the extension to the .config directory and also I've tried copying the module itself to /usr/lib/lua/5.4/ but I also encountered an error from that. Curious to know what error that was? I suspect... that my README is lying to you 🤦🏻 (so sorry). The API changes I made are in master, but I don't think they're going to be released until 1.2, which is still a ways out.

What I've done in the past is install to /usr/lib/lua5.4 after using Arch's PKGBUILD for Xournalpp based off of the latest master. I don't use that "in production," though.

WillNilges avatar Oct 24 '22 15:10 WillNilges

Thanks for the reply @WillNilges Here is the error I get after copying the file to /usr/lib/lua/5.4: image Sorry if this is a dumb question but... I don't have any directory called /usr/lib/lua5.4.

MiliAxe avatar Oct 24 '22 17:10 MiliAxe

OK, part of the issue could be that I kept switching from Lua 5.4 to Lua 5.3, and forgot to update the docs. I'm pretty sure I want to stick to Lua 5.3 since that's what Xournalpp uses. I'd suggest trying to move the plugin files (ipcvobj.so) to /usr/lib/lua/5.3 (or /usr/lib/lua/5.4, whichever you have installed). I definitely need to figure this out and validate that it works on all distros, but that part is really hard so I'm not surprised I messed it up 😅 This project is the first time in like 10 years that I've worked with Lua and I'm trying to make it do a lot of things that it really doesn't want to do.

WillNilges avatar Oct 25 '22 15:10 WillNilges