Coming across this error when installing and using Python 3.5:
Traceback (most recent call last):
File "so_monitor.py", line 17, in <module>
print(message.format(**question.__dict__))
File "/Users/dalanmiller/repos/SO_monitor/lib/python3.5/site-packages/stackexchange/__init__.py", line 543, in __str__
return str(unicode(self))
NameError: name 'unicode' is not defined
Adding a hack such as:
import builtins
builtins.unicode = str
Results in:
...
return str(unicode(self))
File "/Users/dalanmiller/repos/SO_monitor/lib/python3.5/site-packages/stackexchange/__init__.py", line 543, in __str__
return str(unicode(self))
File "/Users/dalanmiller/repos/SO_monitor/lib/python3.5/site-packages/stackexchange/__init__.py", line 543, in __str__
return str(unicode(self))
File "/Users/dalanmiller/repos/SO_monitor/lib/python3.5/site-packages/stackexchange/__init__.py", line 543, in __str__
return str(unicode(self))
...
RecursionError: maximum recursion depth exceeded
EDIT:
I see what is actually happening and why it's an infinite loop. Trying to port this portion of the code to be Python 3 compatible.
Coming across this error when installing and using Python 3.5:
Adding a hack such as:
Results in:
EDIT:
I see what is actually happening and why it's an infinite loop. Trying to port this portion of the code to be Python 3 compatible.