boxes icon indicating copy to clipboard operation
boxes copied to clipboard

Extensions grayed out and unusable in Inkscape on Mac OSX Catalina

Open dubchild opened this issue 4 years ago • 15 comments

I finally got the extension menu installed without errors and it shows up but they are all GRAY. I have updated everything and jumped through a million hoops. I have read all there is to read on this script and I am about to throw in the towel because I've wasted so much time on it. It would be really helpful to make a quick video of installation on all platforms because this thing is quite needy and fragile.

I have spent more than 6 hours trying to get this script to work in inkscape. The web version is great but the promise of running it locally inside inkscape was enough to make me jump in. Please help.

dubchild avatar Mar 04 '20 19:03 dubchild

They are greyed out then the .inx files are found but the boxes script is not. Place a copy or a symlink into the extensions directory where the .inx files are.

florianfesti avatar Mar 04 '20 19:03 florianfesti

Thanks for your response. However, as you can see in the screenshot, the boxes script is already right there with the .inx files and it doesn't work.

Screen Shot 2020-03-04 at 3 05 58 PM

dubchild avatar Mar 04 '20 20:03 dubchild

Can you try removing the following line from one of the inx files:

<dependency type="executable" location="path">boxes</dependency>

florianfesti avatar Mar 04 '20 20:03 florianfesti

I removed that line from boxes.py.AllEdges.inx and restarted inkscape. Still grayed out. Am I supposed to do something else?

dubchild avatar Mar 04 '20 20:03 dubchild

Hmm... Ok, as we are desparate: Try to also remove

  <script>
    <command reldir="extensions">boxes</command>
  </script>

at the bottom of the file. If this still doesn't show a menu you are editing the wrong file. Ofc this will make the plugin not do anything but we need the UI to show up first.

florianfesti avatar Mar 04 '20 20:03 florianfesti

Nothing changed. I'm editing the files at Inkscape.app>Contents>Resources>share>inkscape>extensions. If not those files, which path should I be looking at?

dubchild avatar Mar 04 '20 20:03 dubchild

inkscape -x gives the path inkscape looks for extensions.

florianfesti avatar Mar 04 '20 21:03 florianfesti

Well that told me the same thing. I'm in the right place. /Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions

All the boxes .inx files are in the extensions dir right next to the boxes app. Just to clarify this is what my inkscape looks like:

Screen Shot 2020-03-04 at 4 20 51 PM

dubchild avatar Mar 04 '20 21:03 dubchild

I just had the same issue, I managed to fix it by adding the directory where I have the boxes file to the path system variable. It worked on Windows 10, but I guess it will be the same on mac or linux

jandion avatar Mar 05 '20 11:03 jandion

Yeah I tried that on my macbook and it didn't change anything. Maybe i'm doing it wrong but i added it to my path and still no love. I guess i'm just going to run the local server and load the output manually which is what I was trying to avoid doing. Inkscape is a huge turn-off anyway. I have Illustrator and Affinity which I'm much more comfortable with.

Boxes.py is great, but the Inkscape plugin setup definitely needs some work. Only the most technical and dedicated users will ever figure it out. I had 2 other professional coders look at it and they couldn't figure it out either. I understand it's free software, but at the same time I'm really disappointed.

dubchild avatar Mar 05 '20 15:03 dubchild

Here's the documentation for updating Inkscape extensions for Inkscape 1.0: https://wiki.inkscape.org/wiki/index.php?title=Updating_your_Extension_for_1.0

For remaining questions regarding how to update, visit https://chat.inkscape.org/channel/inkscape_extensions .

Moini avatar May 22 '20 23:05 Moini

Any resolution for the grayed out issue? I am getting the same thing on Fedora 33 with a fresh installation of inkscape and latest version of boxes.py.

jgforbes avatar Dec 11 '20 04:12 jgforbes

So I ran into the same problem described in this issue. I am running Linux (Ubuntu specifically). After a lot of trial and error, I finally got it working by:

  • Copying the .inx files located at ./inkex/*.inx to ~/.config/inkscape/extensions/
  • Copying the boxes script located at ./scripts/boxes to ~/.config/inkscape/extensions/
  • Adding the inkscape extensions directory to my user's path - e.g:
echo $'\nexport PATH=$PATH:~/.config/inkscape/extensions' >> ~/.profile && source ~/.profile

That last bit is critical - source the profile file so that the path is updated in the current terminal session. Now you can run inkscape from the command line:

inkscape

The boxes.py extensions should no longer be grayed out.

After restarting, you will be able to run inkscape normally (via the GUI) and the extensions will still work.

chill117 avatar Feb 18 '21 17:02 chill117

Im not sure, I followed what you suggest, I still get kind of an error, and its still grayed out, not sure if this is related:

** (org.inkscape.Inkscape:5114): WARNING **: 13:53:58.166: Image file ('/home/plato/.config/inkscape/extensions/./WineRack-thumb.jpg') not found for image widget in extension 'info.festi.boxes.py.WineRack'.
Shortcut::read: invalid verb: DialogSpellcheck

neophrema avatar Jun 18 '21 11:06 neophrema

Hi,

I had the problem on Debian Linux. I noticed that the .inx files had a line <command location="inx" interpreter="python">boxes_proxy.py</command>, but there was no boxes_proxy.py script. Changing boxes_proxy.py to just boxes in one of them "activated" it. It appears that the script boxes2inkscape insert this line. Editing it to change boxes_proxy.py to boxes (line 138) allows to generate correct .inx files (I'm not submitting a patch as the modification is trivial, and I'm not sure if this line is not the correct one on some platforms).

nbernard avatar Oct 13 '21 16:10 nbernard

boxes_proxy.py got added to the repo a while a go. So this should work now. Please reopen if things are still broken.

florianfesti avatar Apr 01 '23 20:04 florianfesti