I'm following these instructions to install Odoo on Mac. It required that I install all the Python modules for the user like so:
sudo pip install -—user -r requirements.txt
(*A note about the --user
part)
However, when I run Odoo, I get this error:
./odoo-bin
Output:
Traceback (most recent call last):File "./odoo-bin", line 5, in <module>__import__('pkg_resources').declare_namespace('odoo.addons')File "/Library/Python/2.7/site-packages/setuptools-36.5.0-py2.7.egg/pkg_resources/__init__.py", line 2241, in declare_namespaceFile "/Library/Python/2.7/site-packages/setuptools-36.5.0-py2.7.egg/pkg_resources/__init__.py", line 2257, in declare_namespaceFile "/Library/Python/2.7/site-packages/setuptools-36.5.0-py2.7.egg/pkg_resources/__init__.py", line 2192, in _handle_nsFile "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 246, in load_modulemod = imp.load_module(fullname, self.file, self.filename, self.etc)File "/opt/odoo/odoo-10.0/odoo/__init__.py", line 64, in <module>import reportFile "/opt/odoo/odoo-10.0/odoo/report/__init__.py", line 5, in <module>from . import customFile "/opt/odoo/odoo-10.0/odoo/report/custom.py", line 20, in <module>from . import renderFile "/opt/odoo/odoo-10.0/odoo/report/render/__init__.py", line 4, in <module>from .simple import simpleFile "/opt/odoo/odoo-10.0/odoo/report/render/simple.py", line 8, in <module>import reportlab.lib
ImportError: No module named reportlab.lib
I noticed that this reportlab is available in requirements.txt:
reportlab==3.3.0
However, if I run this command
pip freeze | grep reportlab
I get nothing, but also when I run this command
sudo pip install --user reportlab
I get the following:
sudo pip install --user reportlab
Output:
The directory '/Users/odoo/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/odoo/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: reportlab in /Users/odoo/Library/Python/2.7/lib/python/site-packages
Requirement already satisfied: pillow>=2.4.0 in /Users/odoo/Library/Python/2.7/lib/python/site-packages (from reportlab)
Requirement already satisfied: pip>=1.4.1 in /Users/odoo/Library/Python/2.7/lib/python/site-packages (from reportlab)
Requirement already satisfied: setuptools>=2.2 in /Library/Python/2.7/site-packages/setuptools-36.5.0-py2.7.egg (from reportlab)
Requirement already satisfied: olefile in /Users/odoo/Library/Python/2.7/lib/python/site-packages (from pillow>=2.4.0->reportlab)
I have tried force reinstalling as suggested here, but that didn't do much.
How can I fix this?