WriteTeX icon indicating copy to clipboard operation
WriteTeX copied to clipboard

WriteTeX and Inkscape 1.2

Open shivaway opened this issue 3 years ago • 4 comments
trafficstars

The extension does not seem to work with Inkscape 1.2. Any thoughts on how I can debug / help you debug the situation?

Shawn Way

shivaway avatar Jun 27 '22 20:06 shivaway

hi, i am having the same issue. inkscape: Inkscape 1.2 (1:1.2.1+202207142221+cd75a1ee6d) this github writetex. ubuntu 20.04.

the extension is displayed in the list of extensions. but when i click, nothing happens.

thanks

sbelharbi avatar Aug 14 '22 13:08 sbelharbi

I can reproduce the error with a non-default Inkscape theme.

Actually, if you wait enough long, an error dialog will pop out with GTK errors. So my guess would be that non-default themes don't have all icon resources as the default theme. If you roll back to the default theme the extension should work as normal.

image image

wanglongqi avatar Aug 16 '22 12:08 wanglongqi

hi, i rolled back the inkscape theme to the system default one.

inkscape

i got the same behavior. clicking on: extensions > writetex, does not do anything. it does not launch the extension. could it be something related to my installation? python versions? my default system theme (yaru-dark)? is there a preferred theme?

so fare, there is me and @ shivaway who had the issue. (plus you on non default theme.) this extension is very handy and easy to use. now, i am using textext. a bit different, and it yields warning every time it generates text.

thanks

sbelharbi avatar Aug 16 '22 21:08 sbelharbi

Hi, I have the same problem. Inkscape 1.2.1 (9c6d41e410, 2022-07-14) Windows 10 and Python 3.8.2.

coding-javion avatar Aug 30 '22 06:08 coding-javion

The error that keeps popping up is:

C:\Program Files\Inkscape\bin\pythonw.exe: can't find 'main' module in 'C:\Program Files\Inkscape\bin'

Hopefully this helps...

shivaway avatar Oct 12 '22 22:10 shivaway

This was reported in https://gitlab.com/inkscape/inbox/-/issues/7727, where OP noted that the error logs reported a missing dependency of inkex. If you open the writetex.inx and delete the line that says inkex.py, perhaps that will work? https://github.com/wanglongqi/WriteTeX/blob/852484e1618b8e500f4e5211267912cc94d76e98/1.0.x/writetex.inx#L5

nathanal avatar Oct 14 '22 23:10 nathanal

@nathanal Thanks for your comment! It seems to be a good idea to remove the line as in Inkscape 1.2.1 the inkex module is changed from a file to a folder. I have tested it on Unbuntu 18.04 machine and removing that line will make the extension load again.

@shivaway can you have a try on your machine to test whether the extension will work after removing such a line?

wanglongqi avatar Oct 16 '22 06:10 wanglongqi

This worked perfectly! Thank you very much. I depend on this for a lot of different things and it was driving me nuts!

shivaway avatar Oct 17 '22 11:10 shivaway