Open FabriceSalvaire opened 4 years ago
would be hard to debug without a mac
2020-06-05 21:16:02,843 - Pyterate.RstFactory.Evaluator.NodeEvaluator.Document - NodeEvaluator.INFO -
<ESC>[1;32m2020-06-05 21:16:02,447<ESC>[0m - <ESC>[1;34mPySpice.Spice.NgSpice.Shared._send_char<ESC>[0m - <ESC>[1;31mINFO<ESC>[0m - b'stderr Error: UTF-8 syntax error in line 13 at \xe2\xb0c'
TO BE FIXED
In [1]: s = b'stderr Error: UTF-8 syntax error in line 13 at \xe2\xb0c'
In [2]: s
Out[2]: b'stderr Error: UTF-8 syntax error in line 13 at \xe2\xb0c'
In [3]: s.decode('utf8')
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-3-9eaa909fc873> in <module>
----> 1 s.decode('utf8')
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 47-48: invalid continuation byte
2020-06-05 21:39:46,386 - Pyterate.RstFactory.Evaluator.NodeEvaluator.Document - NodeEvaluator.INFO -
2020-06-05 21:39:45,999 - PySpice.Spice.NgSpice.Simulation.NgSpiceSharedCircuitSimulator - Simulation.DEBUG - desk
.title Transistor
Vpower 5 0 15V
Vin in 0 DC 0V AC 1V SIN(0V 0.5V 1kHz 0s 0Hz)
C1 in 2 10uF
R1 5 2 100kOhm
R2 2 0 20kOhm
RC 5 4 10kOhm
Q1 4 2 3 bjt
RE 3 0 2kOhm
C2 4 out 10uF
RLoad out 0 1MegOhm
.model bjt npn (bf=80 cjc=5p rb=100)
.options TEMP = 25°C
.options TNOM = 25°C
.ic
.tran 5e-06s 0.002s 0s
.end
2020-06-05 21:39:46,386 - Pyterate.RstFactory.Evaluator.NodeEvaluator.Document - NodeEvaluator.INFO -
2020-06-05 21:39:46,000 - PySpice.Spice.NgSpice.Shared.NgSpiceShared - Shared.DEBUG - Execute command: destroy all
2020-06-05 21:39:46,386 - Pyterate.RstFactory.Evaluator.NodeEvaluator.Document - NodeEvaluator.INFO -
2020-06-05 21:39:46,009 - PySpice.Spice.NgSpice.Shared - Shared.INFO - b'stderr Error: UTF-8 syntax error in line 13 at \xe2\xb0c'
In [6]: chr(176)
Out[6]: '°'
In [5]: str('\xe2')
Out[5]: 'â'
In [6]: str('\xb0c')
Out[6]: '°c
In [2]: str('°C').encode('utf8')
Out[2]: b'\xc2\xb0C'
In [3]: str('°C').encode('ascii')
---------------------------------------------------------------------------
UnicodeEncodeError Traceback (most recent call last)
<ipython-input-3-31b340a99f30> in <module>
----> 1 str('°C').encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 0: ordinal not in range(128)
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=171155&view=logs&j=a8dee1cf-d17f-5cb0-b53f-4a93dfdbfb0c&t=d9dbf137-9a7f-5666-c60c-9e1b2fc31445
and probably the consequence of the previous error