Running this Python code in Stata 16.1
Code:
sysuse world-d, clear
python: import sfi; print(sfi.Data.get('name'))Code:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf4 in position 1: invalid continuation byte
The above exception was the direct cause of the following exception:
SystemError: <class 'UnicodeDecodeError'> returned a result with an error set
The above exception was the direct cause of the following exception:
SystemError: <class 'UnicodeDecodeError'> returned a result with an error set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/Stata/ado/base/py/sfi.py", line 659, in get
return _stp._st_getdata(vars, obss, svar, 1, bvalabel)
SystemError: <built-in function _st_getdata> returned a result with an error set
r(7102);Code:
Python system information
version 3.8.6
architecture 64-bit
0 Response to Bug: Python Error in Stata Function Interface (sfi), Unicode-related
Post a Comment