Skip to content

[FIX] cou: Pass PYTHONPATH as a named variable to click-odoo-update - #22

Merged
ruiztulio merged 1 commit into
OrchestSh:masterfrom
vauxoo-dev:master-fix_cou_pythonpath-hugho
Oct 19, 2026
Merged

ruiztulio merged 1 commit into
OrchestSh:masterfrom
vauxoo-dev:master-fix_cou_pythonpath-hugho

Conversation

@hugho-ad

Copy link
Copy Markdown
Contributor

RunCou() appended "/home/odoo/instance/odoo:$PYTHONPATH" to the command
environment without the "PYTHONPATH=" key. An entry without "=" is not
a variable, so it was ignored and click-odoo-update ran without Odoo on
its path. Images install Odoo from source under /home/odoo/instance/odoo
rather than as a package, so click-odoo-update died on "import odoo"
(ModuleNotFoundError) before writing /tmp/deployvlogs/cou_update.log,
and callers that read that log only saw it missing.

The entry is now "PYTHONPATH=/home/odoo/instance/odoo:$PYTHONPATH". It
still keeps any PYTHONPATH the container already has, and since exec
uses the last value of a duplicated key, the appended one wins.

RunCou() appended "/home/odoo/instance/odoo:$PYTHONPATH" to the command
environment without the "PYTHONPATH=" key. An entry without "=" is not
a variable, so it was ignored and click-odoo-update ran without Odoo on
its path. Images install Odoo from source under /home/odoo/instance/odoo
rather than as a package, so click-odoo-update died on "import odoo"
(ModuleNotFoundError) before writing /tmp/deployvlogs/cou_update.log,
and callers that read that log only saw it missing.

The entry is now "PYTHONPATH=/home/odoo/instance/odoo:$PYTHONPATH". It
still keeps any PYTHONPATH the container already has, and since exec
uses the last value of a duplicated key, the appended one wins.
@hugho-ad
hugho-ad marked this pull request as ready for review October 18, 2026 23:14
@hugho-ad

Copy link
Copy Markdown
Contributor Author

@ruiztulio FYI

also here
Vauxoo/docker_entrypoint#35

@ruiztulio
ruiztulio merged commit f268360 into OrchestSh:master Oct 19, 2026
3 checks passed
@ruiztulio
ruiztulio deleted the master-fix_cou_pythonpath-hugho branch October 19, 2026 21:30
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

Successfully merging this pull request may close these issues.

2 participants