mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 10:53:01 +02:00
Verify Python version
This commit is contained in:
parent
af3ee9809f
commit
ba2a4a0787
2 changed files with 13 additions and 1 deletions
|
@ -36,6 +36,10 @@ First of all, check [this](https://github.com/trailofbits/algo#features) and ens
|
||||||
|
|
||||||
Look here if you have a problem running the installer to set up a new Algo server.
|
Look here if you have a problem running the installer to set up a new Algo server.
|
||||||
|
|
||||||
|
### Python version is not supported
|
||||||
|
|
||||||
|
The minimum Python version required to run Algo is 3.6. Most modern operation systems should have it by default, but if the OS you are using doesn't meet the requirements, you have to upgrade. See the official documentation for your OS, or manual download it from https://www.python.org/downloads/. Otherwise, you may [deploy from docker](deploy-from-docker.md)
|
||||||
|
|
||||||
### Error: "You have not agreed to the Xcode license agreements"
|
### Error: "You have not agreed to the Xcode license agreements"
|
||||||
|
|
||||||
On macOS, you tried to install the dependencies with pip and encountered the following error:
|
On macOS, you tried to install the dependencies with pip and encountered the following error:
|
||||||
|
|
10
main.yml
10
main.yml
|
@ -17,7 +17,15 @@
|
||||||
when: '"ansible" in item'
|
when: '"ansible" in item'
|
||||||
with_items: "{{ lookup('file', 'requirements.txt').splitlines() }}"
|
with_items: "{{ lookup('file', 'requirements.txt').splitlines() }}"
|
||||||
|
|
||||||
- name: Verify Ansible meets Algo VPN requirements.
|
- name: Verify Python meets Algo VPN requirements
|
||||||
|
assert:
|
||||||
|
that: (ansible_python.version.major|string + '.' + ansible_python.version.minor|string)|float is version('3.6', '>=')
|
||||||
|
msg: >
|
||||||
|
Python version is not supported.
|
||||||
|
You must upgrade to at least Python 3.6 to use this version of Algo.
|
||||||
|
See for more details - https://trailofbits.github.io/algo/troubleshooting.html#python-version-is-not-supported
|
||||||
|
|
||||||
|
- name: Verify Ansible meets Algo VPN requirements
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- ansible_version.full is version(required_ansible_version.ver, required_ansible_version.op)
|
- ansible_version.full is version(required_ansible_version.ver, required_ansible_version.op)
|
||||||
|
|
Loading…
Add table
Reference in a new issue