Traceback (most recent call last):


 "setup.py", line 55, in <module>

CUDA = locate_cuda()


 "setup.py", line 49, in locate_cuda

for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

Traceback (most recent call last):


 "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "c:\program files\python37\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)


 "C:\Program 
s\Python37\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>


 "c:\program files\python37\lib\site-packages\PyInstaller\__main__.py", line 111, in run

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


 "c:\program files\python37\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build

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


 "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main

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


 "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build

exec(text, spec_namespace)


 "<string>", line 26, in <module>


 "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 241, in __init__

self.__postinit__()


 "c:\program files\python37\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__

self.assemble()


 "c:\program files\python37\lib\site-packages\PyInstaller\building\build_main.py", line 368, in assemble

self.graph.add_hiddenimports(self.hiddenimports)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 532, in add_hiddenimports

node = self.import_hook(modnm)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook

source_package, target_module_partname, level)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package

target_module_headname, target_package_name, source_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module

m = self._load_package(fqname, pathname, packagepath)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package

self._load_module(fqname, fp, buf, stuff)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2417, in _safe_import_hook

edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1438, in import_hook

target_module, target_attr_names):


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1726, in _import_importable_package_submodules

attr_name, submodule_name, package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module

m = self._load_package(fqname, pathname, packagepath)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package

self._load_module(fqname, fp, buf, stuff)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module

m = self._load_package(fqname, pathname, packagepath)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package

self._load_module(fqname, fp, buf, stuff)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2417, in _safe_import_hook

edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1438, in import_hook

target_module, target_attr_names):


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1726, in _import_importable_package_submodules

attr_name, submodule_name, package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook

source_package, target_module_partname, level)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package

target_module_headname, target_package_name, source_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module

m = self._load_package(fqname, pathname, packagepath)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package

self._load_module(fqname, fp, buf, stuff)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2417, in _safe_import_hook

edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1438, in import_hook

target_module, target_attr_names):


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1726, in _import_importable_package_submodules

attr_name, submodule_name, package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2417, in _safe_import_hook

edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1438, in import_hook

target_module, target_attr_names):


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1726, in _import_importable_package_submodules

attr_name, submodule_name, package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook

source_package, target_module_partname, level)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package

target_module_headname, target_package_name, source_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1421, in import_hook

source_package, target_module_partname, level)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1573, in _find_head_package

target_module_headname, target_package_name, source_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2028, in _load_module

m = self._load_package(fqname, pathname, packagepath)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2813, in _load_package

self._load_module(fqname, fp, buf, stuff)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 271, in _safe_import_module

module_basename, module_name, parent_package)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1990, in _safe_import_module

module_name, file_handle, pathname, metadata)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2082, in _load_module

self._scan_code(m, co, co_ast)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2544, in _scan_code

self._process_imports(module)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2743, in _process_imports

target_module = self._safe_import_hook(*import_info, **kwargs)[0]


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 2221, in _safe_import_hook

target_attr_names=None, level=level, edge_attr=edge_attr)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1422, in import_hook

target_module = self._load_tail(target_package, target_module_partname)


 "c:\program files\python37\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1635, in _load_tail

submodule = self._safe_import_module(head, mname, submodule)


 "c:\program files\python37\lib\site-packages\PyInstaller\depend\analysis.py", line 260, in _safe_import_module

hook_module.pre_safe_import_module(hook_api)


 "c:\program files\python37\lib\site-packages\PyInstaller\hooks\pre_safe_import_module\hook-setuptools.extern.six.moves.py", line 34, in pre_safe_import_module

for real_module_name, six_module_name in real_to_six_module_name.items():
AttributeError: 'str' object has no attribute 'items'
