leinardi / leinardi/JDInstaller
Davinci install failed: Conditionals must have a boolean result.
Open
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 66
- Forks
- 11
- Avg merge
- 19h 54m
- Merged PRs (30d)
- 5
Description
Getting the following error when installing Davinci, make install TAGS=davinci_resolve on davinci branch:
TASK [davinci_resolve : Install required dependencies] *********************************************************************************************************************************
ok: [localhost]
TASK [davinci_resolve : Install OpenCL headers for AMD GPU] ****************************************************************************************************************************
[ERROR]: Task failed: Conditional result (True) was derived from value of type 'str' at '/home/victor/other/JDInstaller/pre_tasks.yml:36:22'. Conditionals must have a boolean result.
Task failed.
Origin: /home/victor/other/JDInstaller/roles/davinci_resolve/tasks/main.yml:25:3
23 cache_valid_time: "{{ apt_cache_time | default(3600) }}"
24
25 - name: Install OpenCL headers for AMD GPU
^ column 3
<<< caused by >>>
Conditional result (True) was derived from value of type 'str' at '/home/victor/other/JDInstaller/pre_tasks.yml:36:22'. Conditionals must have a boolean result.
Origin: /home/victor/other/JDInstaller/roles/davinci_resolve/tasks/main.yml:32:9
30 - opencl-headers
31 state: present
32 when: has_amd_gpu
^ column 9
Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option.
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Task failed: Conditional result (True) was derived from value of type 'str' at '/home/victor/other/JDInstaller/pre_tasks.yml:36:22'. Conditionals must have a boolean result."}
PLAY RECAP *****************************************************************************************************************************************************************************
localhost : ok=14 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
make: *** [Makefile:101: install] Error 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading pre_tasks.yml around line 36 and roles/davinci_resolve/tasks/main.yml around lines 25 and 32, then review the Makefile install target. Reproduce with make install TAGS=davinci_resolve on the davinci branch and verify that the installation completes without the conditional error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, shell
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100