When I try to submit code from Sublime Text 3 to a python3 interpreter (I'm using 3.2.3) using SublimeREPL, I get the following error:
>>> x = -9
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' does not support the buffer interface
>>>
(I'm on Ubuntu 12.04; Sublime Text 3 Build 3047.)
The error doesn't appear if I use a python-2.x interpreter
Someone else had the same problem and opened an issue in the SublimeREPL github but it was marked as not reproducible. Can anyone point me in the right direction to get rid of this?
I'm brand new to Sublime Text, so perhaps I'm doing something else stupid. Here's the menu command I'm using to launch python3 (I tried both buffered and unbuffered):
{"command": "repl_open",
"caption": "Python3",
"id": "repl_python3",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
}