I want to draw a simple schematic with lcapy and have the following code:
from lcapy import Circuit
cct = Circuit("""
V 1 0 {V(s)}; down
R 1 2; right
C 2 _0_2; down
W 0 _0_2; right
""")
cct.draw('schematic.pdf')
I have installed lcapy via pip, this works just fine. But I am not able to draw my desired circuit, because of following errors:
TypeError
Traceback (most recent call last)
<ipython-input-6-51c0bd8d637b> in <module>
6 W 0 _0_2; right
7 """)
----> 8 cct.draw('schematic.pdf')
TypeError: Unknown setting 'ln_notation'.
I dont really know what to do because this is my first time using lcapy.
Thanks in advance!
TypeError: invalid input: V(s)
I did not have a LaTeX interpreter installed. This solved my problem. Tanks anyway!