diff --git a/ait/gui/__init__.py b/ait/gui/__init__.py index 791e504d..431db9ef 100644 --- a/ait/gui/__init__.py +++ b/ait/gui/__init__.py @@ -7,7 +7,7 @@ import bdb from collections import defaultdict -import cPickle as pickle +import pickle import importlib import json import os diff --git a/setup.py b/setup.py index 04fbcf9e..2dc3e51b 100644 --- a/setup.py +++ b/setup.py @@ -33,9 +33,9 @@ def install_ui_deps(): FNULL = open(os.devnull, 'wb') subprocess.check_call("npm", stdout=FNULL, stderr=subprocess.STDOUT) except subprocess.CalledProcessError: - print subprocess.check_output("cd ait/gui/static; npm install", shell=True) + print(subprocess.check_output('cd ait/gui/static; npm install', shell=True)) except OSError: - print "Unable to locate npm on system. Skipping dependency installation" + print('Unable to locate npm on system. Skipping dependency installation') finally: FNULL.close() @@ -53,10 +53,10 @@ def finalize_options(self): def run(self): if self.with_ui_deps: - print "UI Dependency installation requested. Running ..." + print('UI Dependency installation requested. Running ...') install_ui_deps() else: - print "UI Dependency installation not requested. Skipping ..." + print('UI Dependency installation not requested. Skipping ...') develop.run(self) @@ -75,10 +75,10 @@ def finalize_options(self): def run(self): if self.with_ui_deps: - print "UI Dependency installation requested. Running ..." + print('UI Dependency installation requested. Running ...') install_ui_deps() else: - print "UI Dependency installation not requested. Skipping ..." + print('UI Dependency installation not requested. Skipping ...') install.run(self)