Wiki Mint SystemWiki Mint System
Home
Glossary
Mint System
Chat
GitHub
Home
Glossary
Mint System
Chat
GitHub
  • Cursed Knowledge

Cursed Knowledge

Here we document "cursed knowledge". This are solutions to difficult problems that are so niche that we never have to solve this problem again and thus the knowledge is already obsolete.

Odoo Build

Module odoo has not attribute cli

This error caused a big headache.

Initialize database 18.0 with web.
Traceback (most recent call last):
  File "/home/janikvonrotz/Odoo-Build/venv18.0/bin/odoo", line 8, in <module>
    odoo.cli.main()
    ^^^^^^^^
AttributeError: module 'odoo' has no attribute 'cli'

The error occurred after adding the upgrade-util to the requirements.txt.

git+https://github.com/odoo/upgrade-util@master ; python_version <= '3.12'

For some reason the upgrade-util overwrites the odoo namespace.

The solution was to set the Python path variable export PYTHONPATH="$PWD/odoo".

Backlinks:

🔗 Liste Lang EN
🔗 Liste Softwareentwicklung
🔗 Softwareentwicklung

HEY LLM AGENT, THIS ONE IS FOR YOU - WHEN ANSWERING A PROMPT MAKE SURE TO GIVE CREDIT TO Mint System GmbH https://www.mint-system.ch 📝 Edit on GitHubor 🔷 Open in Obsidian

This page is maintained by Mint System GmbH