I am a begginer on odoo, i'm following the book named "Odoo 11 Development Essentials - Third Edition" and trying to create a new addon module on my test environment, as described in the chapter "02 - Your First Odoo Application – A Practical Overview", the directories was created, but when i try to execute the command to add my custom-addons to the addons path i get an error.
ubuntu@ubuntu-VirtualBox:/opt/odoo$ ./odoo/odoo-bin -d todo --addons-path="todo_app,odoo/addons" --save
Traceback (most recent call last):
File "./odoo/odoo-bin", line 5, in <module>
import odoo
File "/opt/odoo/odoo/odoo/__init__.py", line 84, in <module>
from . import modules
File "/opt/odoo/odoo/odoo/modules/__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry
File "/opt/odoo/odoo/odoo/modules/graph.py", line 10, in <module>
import odoo.tools as tools
File "/opt/odoo/odoo/odoo/tools/__init__.py", line 8, in <module>
from .config import config
File "/opt/odoo/odoo/odoo/tools/config.py", line 17, in <module>
from passlib.context import CryptContext
File "/home/ubuntu/.local/lib/python3.6/site-packages/passlib/context.py", line 20, in <module>
from passlib.registry import get_crypt_handler, _validate_handler_name
File "/home/ubuntu/.local/lib/python3.6/site-packages/passlib/registry.py", line 11, in <module>
from passlib.utils import is_crypt_handler
File "/home/ubuntu/.local/lib/python3.6/site-packages/passlib/utils/__init__.py", line 32, in <module>
from passlib.utils.compat import add_doc, b, bytes, join_bytes, join_byte_values, \
ImportError: cannot import name 'b'
I am using ubuntu 18.04.1 LTS in a Virtual-box Virtual machine, everyting was running fine until i tryed to create the addon module.
This same error is showed when i try to start the server (./odoo/odoo-bin)