Sat 09 Apr 2016 02:32:22 AM UTC, comment #7:
Thanks for the help. I tried comment #2 and #1 afterwards. Here is the result:
>> sympref IPC system
Resetting the octsympy communication mechanism
Forcing the system() octsympy communication mechanism
>> syms x y
OctSymPy v2.2.4: this is free software without warranty, see source.
Using system()-based communication with Python [sysoneline].
Warning: this will be SLOW. Every round-trip involves executing a
new Python process and many operations involve several round-trips.
>> (x-y)*(x-y)^2
ans = (sym)
3
(x - y)
>> expand(ans)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 2, in <module>
File "<string>", line 158, in octoutput_drv
File "C:\Anaconda3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u22c5' in position 451: character maps to <undefined>
status = 127
out = <?xml version="1.0" ?>
<output_block>
<item>
<f>1003</f>
<f>PYTHON: successful variable import</f>
</item>
</output_block>
<output_block>
<item>
<f>9999</f>
<f>
<class 'UnicodeEncodeError'>
</f><f>
'charmap' codec can't encode character '\u22c5' in position 451: character maps to <undefined>
</f>
</item>
</output_block>
error: system() call failed!
error: called from
python_ipc_sysoneline at line 92 column 5
python_ipc_driver at line 34 column 15
python_cmd at line 138 column 9
expand at line 31 column 5
>>
|