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

Bug when using certain characters in config file #48

Open
ddejong-therp opened this issue Apr 25, 2024 · 0 comments
Open

Bug when using certain characters in config file #48

ddejong-therp opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ddejong-therp
Copy link
Contributor

I get this error when rebuilding waft where I have certain symbols in the common/conf.d/override-odoo.cfg file:

Traceback (most recent call last):
  File "/home/bamilab/code/waft14/.venv/bin/config-generate", line 61, in <module>
    result = Template(result).substitute(os.environ)
  File "/home/bamilab/code/waft14/.pyenv/versions/3.6.15/lib/python3.6/string.py", line 130, in substitute
    return self.pattern.sub(convert, self.template)
  File "/home/bamilab/code/waft14/.pyenv/versions/3.6.15/lib/python3.6/string.py", line 127, in convert
    self._invalid(mo)
  File "/home/bamilab/code/waft14/.pyenv/versions/3.6.15/lib/python3.6/string.py", line 103, in _invalid
    (lineno, colno))
ValueError: Invalid placeholder in string: line 14, col 19
Traceback (most recent call last):
  File "/home/bamilab/code/waft14/common/entrypoint", line 39, in <module>
    subprocess.check_call(command)
  File "/home/bamilab/code/waft14/.pyenv/versions/3.6.15/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/bamilab/code/waft14/common/entrypoint.d/50-config-generate' returned non-zero exit status 1.

Her is my current config file:

[options]
# Version: v.22.05.30
# Configure odoo options
# Feel free to tune the variables in this file as you like
# These variables here will override the variables in odoo.cfg
# Push this file to your own repository
without_demo =
db_name = odoo14
dbfilter = ^odoo14$

When I remove the ^ and $ symbols, it works again.
I've pulled the latest changes of waftlib master, to make sure it's still happening in the latest version.

@ddejong-therp ddejong-therp added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants