I
I
Ilya1992018-05-29 15:39:07
Python
Ilya199, 2018-05-29 15:39:07

Compilation for windows. What could be the problem?

when I type python -m PyInstaller paintapp.spec gives an error:
260 WARNING: stderr: Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
260 WARNING: stderr: File "C:\Python27\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
262 WARNING: stderr: "__main__", fname, loader, pkg_name)
File "C:\Python27\ lib\runpy.py", line 72, in _run_code
262 WARNING: stderr: File "C:\Python27\lib\runpy.py", line 72, in _run_code
exec code in run_globals
262 WARNING: stderr: exec code in run_globals
File "C:\Python27\lib\site-packages\PyInstaller\__main__.py",line 101, in
262 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 101, in
run()
263 WARNING: stderr: run()
File "C:\Python27\lib\site -packages\PyInstaller\__main__.py", line 94, in run
263 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file , **vars(args))
263 WARNING: stderr: run_build(pyi_config, spec_file, **vars(args))
File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
264 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config,spec_file, **kwargs)
266 WARNING: stderr: PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 814, in main
269 WARNING : stderr: File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 814, in main
build(specfile, kw.get('distpath'), kw.get('workpath' ), kw.get('clean_build'))
273 WARNING: stderr: build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C :\Python27\lib\site-packages\PyInstaller\building\build_main.py", line 760, in build
273 WARNING: stderr: File "C:\Python27\lib\site-packages\PyInstaller\building\build_main.py" line 760,in build
exec(text, spec_namespace)
276 WARNING: stderr: exec(text, spec_namespace)
File "", line 3, in
276 WARNING: stderr: File "", line 3, in
ImportError: cannot import name sdl2
277 WARNING: stderr: ImportError: cannot import name
sdl2 python-2.7.14

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andy_U, 2018-05-29
@Andy_U

Ilya199 , Then read here . The end is about sys._MEIPASS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question