Пробую упаковать приложение kivy в exe и выскакивает ошибка
C:\Users\Aleksandr\Desktop\python\Код\kivi_\kivi\kivi_exe>pyinstaller c:\Users\Aleksandr\Desktop\python\Код\kivi_\kivi\path_to_project\name_project\main.py
1461 INFO: PyInstaller: 3.3.1
1461 INFO: Python: 3.6.2
1471 INFO: Platform: Windows-7-6.1.7601-SP1
1471 INFO: wrote C:\Users\Aleksandr\Desktop\python\Код\kivi_\kivi\kivi_exe\main.spec
1481 INFO: UPX is not available.
1491 INFO: Extending PYTHONPATH with paths
['c:\\Users\\Aleksandr\\Desktop\\python\\Код\\kivi_\\kivi\\path_to_project\\name_project',
'C:\\Users\\Aleksandr\\Desktop\\python\\Код\\kivi_\\kivi\\kivi_exe']
1514 INFO: checking Analysis
1523 INFO: Building Analysis because out00-Analysis.toc is non existent
1524 INFO: Initializing module dependency graph...
1559 INFO: Initializing module graph hooks...
1747 INFO: Analyzing base_library.zip ...
Traceback (most recent call last):
File "<string>", line 41, in <module>
File "<string>", line 13, in walk_packages
File "c:\users\aleksandr\desktop\python\python36-32\lib\pkgutil.py", line 127, in iter_modules
for name, ispkg in iter_importer_modules(i, prefix):
File "c:\users\aleksandr\desktop\python\python36-32\lib\pkgutil.py", line 146, in _iter_file_finder_modules
import inspect
File "c:\users\aleksandr\desktop\python\python36-32\lib\inspect.py", line 41, in <module>
import linecache
File "c:\users\aleksandr\desktop\python\python36-32\lib\linecache.py", line 11, in <module>
import tokenize
File "c:\users\aleksandr\desktop\python\python36-32\lib\tokenize.py", line 33, in <module>
import re
File "c:\users\aleksandr\desktop\python\python36-32\lib\re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last):
File "<string>", line 41, in <module>
File "<string>", line 13, in walk_packages
File "c:\users\aleksandr\desktop\python\python36-32\lib\pkgutil.py", line 127, in iter_modules
for name, ispkg in iter_importer_modules(i, prefix):
File "c:\users\aleksandr\desktop\python\python36-32\lib\pkgutil.py", line 146, in _iter_file_finder_modules
import inspect
File "c:\users\aleksandr\desktop\python\python36-32\lib\inspect.py", line 41, in <module>
import linecache
File "c:\users\aleksandr\desktop\python\python36-32\lib\linecache.py", line 11, in <module>
import tokenize
File "c:\users\aleksandr\desktop\python\python36-32\lib\tokenize.py", line 33, in <module>
import re
File "c:\users\aleksandr\desktop\python\python36-32\lib\re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
11812 INFO: running Analysis out00-Analysis.toc
11865 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\aleksandr\desktop\python\python36-32\python.exe
14171 INFO: Caching module hooks...
14348 INFO: Analyzing c:\Users\Aleksandr\Desktop\python\Код\kivi_\kivi\path_to_project\name_project\main.py
Traceback (most recent call last):
File "C:\Users\Aleksandr\Desktop\python\Python36-32\Scripts\pyinstaller-script.py", line 11, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 16, in <module>
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 213, in __init__
self.__postinit__()
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\building\build_main.py", line 415, in assemble
priority_scripts.append(self.graph.run_script(script))
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\depend\analysis.py", line 201, in run_script
self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)
File "c:\users\aleksandr\desktop\python\python36-32\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1338, in run_script
contents = fp.read() + '\n'
File "c:\users\aleksandr\desktop\python\python36-32\lib\codecs.py", line 321, in decode
(result, consumed) = self.