python - Error during compiling with PyInstaller under Windows XP (not English) -


i have next app.spec file - run python binaries under windows xp , try compile pyinstaller under windows xp (russian localization)

i got follow error:

1763 info: processing hook hook-email.message traceback (most recent call last):   file "c:\anaconda\scripts\pyinstaller-script.py", line 9, in <module>     load_entry_point('pyinstaller==2.1', 'console_scripts', 'pyinstaller')()   file "c:\anaconda\lib\site-packages\pyinstaller\main.py", line 88, in run     run_build(opts, spec_file, pyi_config)   file "c:\anaconda\lib\site-packages\pyinstaller\main.py", line 46, in run_buil d     pyinstaller.build.main(pyi_config, spec_file, **opts.__dict__)   file "c:\anaconda\lib\site-packages\pyinstaller\build.py", line 1911, in main     config = configure.get_config(kw.get('upx_dir'))   file "c:\anaconda\lib\site-packages\pyinstaller\configure.py", line 146, in ge t_config     find_pyz_dependencies(config)   file "c:\anaconda\lib\site-packages\pyinstaller\configure.py", line 116, in fi nd_pyz_dependencies     a.analyze_r('pyi_importers')   file "c:\anaconda\lib\site-packages\pyinstaller\depend\imptracker.py", line 16 6, in analyze_r     newnms = self.analyze_one(name, nm, imptyp, level)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\imptracker.py", line 22 7, in analyze_one     mod = self.doimport(nm, ctx, fqname)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\imptracker.py", line 29 9, in doimport     mod = parent.doimport(nm)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\modules.py", line 130, in doimport     mod = self.subimporter.getmod(nm)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\impdirector.py", line 1 39, in getmod     mod = owner.getmod(nm)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\owner.py", line 127, in  getmod     mod = self._modclass()(nm, pth, co)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\modules.py", line 78, n __init__     self.scancode()   file "c:\anaconda\lib\site-packages\pyinstaller\depend\modules.py", line 99, n scancode     self.binaries = _resolvectypesimports(self.binaries)   file "c:\anaconda\lib\site-packages\pyinstaller\depend\utils.py", line 328, in  _resolvectypesimports     cpath = find_library(os.path.splitext(cbin)[0])   file "c:\anaconda\lib\ctypes\util.py", line 54, in find_library     fname = os.path.join(directory, name)   file "c:\anaconda\lib\ntpath.py", line 84, in join     result_path = result_path + p_path unicodedecodeerror: 'ascii' codec can't decode byte 0xc4 in position 34: ordinal  not in range(128) 

what should patch? error reproducible under windows 7 russian localization


ps. it's not same issue, maybe can advise - run python binaries under windows xp

the issue resolved avoiding using print statements in application , changing print log methods


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -