Closed RobFirth closed 7 years ago
Setup new virtualenv py3 in /Users/berto/anaconda2/envs/py3. can't use source activate py3 on tcsh, so need to switch to bash shell first.
writing a note to myself here so I don't forget
as on @SzymonPrajs's machine, get:
%run scripts/test_pycoco.py
File "/Users/berto/Code/verbose-enigma/pycoco/__init__.py", line 192
ValueError.__init__(self, *args, **kwargs)
^
TabError: inconsistent use of tabs and spaces in indentation
need to look at spacing!
tabs converted to spaces
StandardError
not defined in python3. Replaced with Exception
reload
not builtin, using:
try:
reload # Python 2.7
except NameError:
try:
from importlib import reload # Python 3.4+
except ImportError:
from imp import reload # Python 3.0 - 3.3
Test suite runs, 2 errors. Caused by name 'unicode' is not defined
Fixed unicode
issue. Will reopen issue if my python3 tests fail in future
http://python3porting.com/differences.html