Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Odoo python package after an issue between download and installation #130

Open
enricostano opened this issue Dec 1, 2021 · 0 comments

Comments

@enricostano
Copy link
Contributor

Right now the installation of odoo python package is skipped if the source has been already downloaded:

- name: Install Odoo
  become: yes
  become_user: "{{ odoo_role_odoo_user }}"
  shell: "cd {{ odoo_role_odoo_path }} && {{ odoo_role_odoo_python_path }} setup.py install"
  when: odoo_role_desired_tar_download.changed or odoo_role_desired_git_download.changed

Check source here.

But if the process is interrupted between the import_tasks: download.yml and the "Install Odoo" task, and you try to provision again, the condition on line 126 will be false and Odoo will not be installed.

As a result, while installing the Odoo community packages you will get an error similar to the following:

stderr: ERROR: Could not find a version that satisfies the requirement odoo<12.1dev,>=12.0a (from odoo12-addon-account-banking-mandate) (from versions: none)

It means that pip cannot find the odoo package, in this case needed as a dependency by the odoo12-addon-account-banking-mandate package.

Can we use a different when condition on line 126? For instance checking if the odoo package has been already installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant