Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Error installing latest on Windows 10 #344

Open
chahn1138 opened this issue Jan 23, 2019 · 5 comments
Open

Error installing latest on Windows 10 #344

chahn1138 opened this issue Jan 23, 2019 · 5 comments

Comments

@chahn1138
Copy link

chahn1138 commented Jan 23, 2019

Hello,

I am trying to manually execute a process that I stole from a Jenkins Project...it build and packages up clcache for its incorporation into another product.

But "%PYTHON_SCRIPTS%\pyinstaller clcache.py" runs into an exception:

C:\Users\chahn\issues\ES-13600 - Mystery windows build failures\github\clcache-tip>pyinstaller clcache.py
396 INFO: PyInstaller: 3.4
396 INFO: Python: 3.7.0
402 INFO: Platform: Windows-10-10.0.17134-SP0
404 INFO: wrote C:\Users\chahn\issues\ES-13600 - Mystery windows build failures\github\clcache-tip\clcache.spec
410 INFO: UPX is not available.
Traceback (most recent call last):
File "c:\python37\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Python37\Scripts\pyinstaller.exe_main
.py", line 9, in
File "c:\python37\lib\site-packages\PyInstaller_main
.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\python37\lib\site-packages\PyInstaller_main_.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\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'))
File "c:\python37\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build
exec(text, spec_namespace)
File "", line 17, in
File "c:\python37\lib\site-packages\PyInstaller\building\build_main.py", line 189, in init
raise ValueError("script '%s' not found" % script)
ValueError: script 'C:\Users\chahn\issues\ES-13600 - Mystery windows build failures\github\clcache-tip\clcache.py' not found

Not much to work with but this is all I have at this juncture....

I saw that someone else here saw the same but got no responses...I will continue my search...

@chahn1138
Copy link
Author

OK....tried to bold two strings....messed the whole thing up...

@izmmisha
Copy link

You should use pyinstaller/clcache_main.py script instead clcache.py with pyinstaller

@chahn1138
Copy link
Author

Thank you for the time!

I tried that but got no further:

chahn@D6KZW182 MINGW64 ~/issues/ES-13600 - Mystery windows build failures/github/clcache-tip (master)
$ pyinstaller ./pyinstaller/clcache_main.spec
453 INFO: PyInstaller: 3.4
453 INFO: Python: 3.7.0
453 INFO: Platform: Windows-10-10.0.17134-SP0
459 INFO: UPX is not available.
Traceback (most recent call last):
File "c:\python37\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Python37\Scripts\pyinstaller.exe_main
.py", line 9, in
File "c:\python37\lib\site-packages\PyInstaller_main
.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\python37\lib\site-packages\PyInstaller_main_.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\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'))
File "c:\python37\lib\site-packages\PyInstaller\building\build_main.py", line 782, in build
with open(spec, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: './pyinstaller/clcache_main.spec'

The file is just a wrapper of sorts:

chahn@D6KZW182 MINGW64 ~/issues/ES-13600 - Mystery windows build failures/github/clcache-tip (master)
$ cat pyinstaller/clcache_main.py
from clcache.main import main
main()

Did I misunderstand your suggestion?

@izmmisha
Copy link

izmmisha commented Jan 24, 2019

Well, I see from your comment pyinstaller ./pyinstaller/clcache_main.spec not the pyinstaller ./pyinstaller/clcache_main.py

As result you get again FileNotFoundError: [Errno 2] No such file or directory: './pyinstaller/clcache_main.spec'

@chahn1138
Copy link
Author

Well, you are right.....could have sworn that shell-auto-complete made that name but the corrected name did execute to completion. I will close this. Thank you for the kick I seem to have needed!

@chahn1138 chahn1138 reopened this Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants