Traceback (most recent call last):


 "/home/aixtools/py37/bin/pyinstaller", line 11, in <module>

load_entry_point('PyInstaller==4.0.dev0+g96897fc7.mod', 'console_scripts', 'pyinstaller')()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/__main__.py", line 114, in run

run_build(pyi_config, spec_file, **vars(args))


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/__main__.py", line 65, in run_build

PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/building/build_main.py", line 729, in main

build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/building/build_main.py", line 676, in build

exec(code, spec_namespace)


 "/home/aixtools/tests/hello.spec", line 17, in <module>

noarchive=False)


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/building/build_main.py", line 241, in __init__

self.__postinit__()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/building/datastruct.py", line 160, in __postinit__

self.assemble()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/building/build_main.py", line 418, in assemble

self.graph.process_post_graph_hooks()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/depend/analysis.py", line 297, in process_post_graph_hooks

module_hook.post_graph()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/depend/imphook.py", line 418, in post_graph

self._load_hook_module()


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/depend/imphook.py", line 385, in _load_hook_module

self.hook_module_name, self.hook_filename)


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/compat.py", line 608, in importlib_load_source

return mod_loader.load_module()


 "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper


 "<frozen importlib._bootstrap_external>", line 907, in load_module


 "<frozen importlib._bootstrap_external>", line 732, in load_module


 "<frozen importlib._bootstrap>", line 265, in _load_module_shim


 "<frozen importlib._bootstrap>", line 696, in _load


 "<frozen importlib._bootstrap>", line 677, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 728, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/hooks/hook-pydoc.py", line 19, in <module>

from PyInstaller.compat import is_py2, modname_tkinter
ImportError: cannot import name 'is_py2' from 'PyInstaller.compat' (/home/aixtools/py37/lib/python3.7/site-packages/PyInstaller-4.0.dev0+g96897fc7.mod-py3.7.egg/PyInstaller/compat.py)

Traceback (most recent call last):


 "C:\Users\Leon\Anaconda2\Scripts\conda-script.py", line 5, in <module>

sys.exit(conda.cli.main())


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\cli\main.py", line 150, in main

return conda_exception_handler(_main)


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\exceptions.py", line 491, in conda_exception_handler

print_unexpected_error_message(e)


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\exceptions.py", line 437, in print_unexpected_error_message

info_stdout, info_stderr = get_info()


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\exceptions.py", line 396, in get_info

from conda.cli import conda_argparse


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\cli\conda_argparse.py", line 15, in <module>

from .common import add_parser_help


 "C:\Users\Leon\Anaconda2\lib\site-packages\conda\cli\common.py", line 15, in <module>

from ..install import dist2quad
ImportError: cannot import name dist2quad