Closed apoorav-singh closed 1 year ago
Yes it seems it is related the miktex. Try disabling latex support and see ifthe extension runs.
Yes, the plugin works but I am not able to work out that MikTex problem. If this issue is due to some missing packages in MikTex than what are the packages which are used in this case, and needed to be installed?
It would be really nice if LaTeX can be used.
PS: I tried to render some text on TeXText plugin which is working completely fine for simple cases. Thus, I concluded that the issue might not be in the Miktex but somewhere in the packages.
Thanks.
you can check the list of packages in the file circuitSymbolsPreamble.tex, and basicLatexPackages.tex.
Miktex has an option to allow it to automaticaly download any packages it finds necessary when compiling the text. I'd try this first (the lazy mode =) )
Thanks! it worked. I think Lazy mode is way to go! I think beginner like me would have hard time loading these packages manually (or even a user who just needs to draw circuits quickly for their work)
Although it still gives some sort of Warnings:
C:\Users\Apoorav\AppData\Roaming\inkscape\extensions\textext\base.py:415: DeprecationWarning: inkex.deprecated.main.transform_imul -> Use @= operator instead full_layer_transform = layer.transform C:\Users\Apoorav\AppData\Roaming\inkscape\extensions\textext\base.py:419: DeprecationWarning: inkex.deprecated.main.transform_mul -> Use @ operator instead tt_node.transform = (-full_layer_transform # map to view coordinate system
Thanks a lot! Cheers.
This other issue you mention is in textext extension (I do not have any control over it). It is caused by recent changes in python. You can fix yourself this annoyance by openning textext's base.py file and look at line 419 and replace * with @, like.
tt_node.transform = (-full_layer_transform @ # map to view coordinate system Transform(translate=view_center) @ # place at view center Transform(scale=user_scale_factor) @ # scale Transform(translate=-node_center) @ # place node at origin tt_node.transform # use original node transform )
Something similar must be done in line 415.
Got it thanks!
Error:
I am getting this error on the Inskcape Console:
Configuration;
OS: Windows 10 Python: python 3.10.6 MikTex Console Version 4.8 I am using latest version of "textext" and "inkscapeCircuitSymbols"
What I think is that there may be some missing package in MikTex.