jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
459 stars 78 forks source link

Error with latest version (since last night) #101

Closed leuat closed 3 years ago

leuat commented 3 years ago

jurple started failing for windows last night, with the following error log:

python -m aqt tool windows tools_ifw 4 qt.tools.ifw.40 -O D:\a\TRSE/Qt python -m aqt tool windows tools_qtcreator 4 qt.tools.qtcreator -O D:\a\TRSE/Qt Traceback (most recent call last): File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt__main.py", line 27, in sys.exit(main()) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt__init.py", line 31, in main return cli.run() File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\installer.py", line 675, in run result = args.func(args) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\installer.py", line 431, in run_tool tool_archives = ToolArchives( File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\archives.py", line 363, in init super(ToolArchives, self).init( File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\archives.py", line 141, in init__ self.version = Version(version) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\semantic_version\base.py", line 105, in init (node:3496) UnhandledPromiseRejectionWarning: Error: The process 'python' failed with exit code 1 major, minor, patch, prerelease, build = self.parse(version_string, partial) at ExecState._setResult (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:548:25) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\semantic_version\base.py", line 311, in parse at ExecState.CheckComplete (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:531:18) raise ValueError('Invalid version string: %r' % version_string) at ChildProcess. (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:431:27) ValueError: Invalid version string: '4' at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) (node:3496) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3496) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Traceback (most recent call last): File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt__main.py", line 27, in sys.exit(main()) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\init.py", line 31, in main return cli.run() File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\installer.py", line 675, in run result = args.func(args) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\installer.py", line 431, in run_tool tool_archives = ToolArchives( File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\archives.py", line 363, in init super(ToolArchives, self).init( File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\aqt\archives.py", line 141, in init__ self.version = Version(version) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\semantic_version\base.py", line 105, in init__ major, minor, patch, prerelease, build = self.parse(version_string, partial) File "C:\hostedtoolcache\windows\Python\3.9.6\x64\lib\site-packages\semantic_version\base.py", line 311, in parse raise ValueError('Invalid version string: %r' % version_string) ValueError: Invalid version string: '4' (node:3496) UnhandledPromiseRejectionWarning: Error: The process 'python' failed with exit code 1 at ExecState._setResult (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:548:25) at ExecState.CheckComplete (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:531:18) at ChildProcess. (D:\a_actions\jurplel\install-qt-action\v2\node_modules\@actions\exec\lib\toolrunner.js:431:27) at ChildProcess.emit (events.js:210:5) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) (node:3496) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

jurplel commented 3 years ago

You need to change the tool version to use semantic versioning. aqtinstall changed the handling of versions and this is a side effect

jurplel commented 3 years ago

It's only the second comma separated field that is affected. You can see an example in the readme.md

leuat commented 3 years ago

thanks a bunch, that did the trick!

jurplel commented 3 years ago

no problem, sorry for the inconvenience