0
如何在我的廚師獨奏角色中設置python版本?如何在我的廚師獨奏中使用poise-python設置python版本
"poise-python":{
"install_python2": true,
"install_python3": true
},
爲蟒蛇的默認值是3.5,但我用下面的ubuntu上16.04的時候想3.6
我得到這個錯誤:
"poise-python":{
"install_python2": true,
"install_python3": true,
"options":{
"package_name":"python3.6"
}
},
Recipe: poise-python::default
* python_runtime[3] action install
* poise_languages_system[python3.6] action install
Running handlers:
[2017-08-01T04:48:41+00:00] ERROR: Running exception handlers
[2017-08-01T04:48:41+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-08-01T04:48:41+00:00] ERROR: Exception handlers complete
[2017-08-01T04:48:41+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 03 seconds
[2017-08-01T04:48:41+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-08-01T04:48:41+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-08-01T04:48:41+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-08-01T04:48:41+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-08-01T04:48:41+00:00] ERROR: Package python3.6 would install nil, which does not match 3. Please set the package_name or package_version provider options.
[2017-08-01T04:48:41+00:00] ERROR: Package python3.6 would install nil, which does not match 3. Please set the package_name or package_version provider options.
[2017-08-01T04:48:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2017-08-01T04:48:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ubuntu 14.04 AND 16.04 – Tampa
3.6軟件包不可用於14.04,對於16.04,您可以像這樣覆蓋它:'options package_name:'python3.6''。當我有機會時,我會把事情更新到16.04。 – coderanger
我在哪裏放置「options package_name:'python3.6'」?我正在尋找放置在我的角色json對象..只是16.04很好 – Tampa