I have set up the version 11 of odoo and when I started my server it's getting errors like:
ImportError: No module named 'PyPDF2'
For that I have already installed the packages but it still generates the error. And I'm working on python-2.7.
I have set up the version 11 of odoo and when I started my server it's getting errors like:
ImportError: No module named 'PyPDF2'
For that I have already installed the packages but it still generates the error. And I'm working on python-2.7.
If someone has this error:
ImportError: No module named 'PyPDF2'
I have got this error and I have found this solution. There is no need to do extra. You just have to write this command for whatever error generate to set a version 11
environment.
Try this command:
sudo apt-get install python3-pypdf2.
If you are using Windows
run --> cmd --> pip install PyPDF2
If you are using Ubuntu server
Terminal --> sudo apt-get install PyPDF2
Otherwise manually download the package from the given link and install it. https://pypi.python.org/pypi/PyPDF2/1.25
after installing restart your Odoo application. Hope it works
Just download 3.5 packages no need to remove 2.7 packages and after that migrate your custom py files in 3.5 version. So that that all are compatible with 3.5 packages. After that configure your interpreter to 3.5 and run odoo-bin file. I follow this path and currently working in v11 with python 3.5
First install python version > 3.5
Next use pip
to reinstall all the requirements for Odoo-11. Use the command:
python3.5 -m pip install -r requirements.txt
I am using python3.5 for the example.
Then re-run the odoo server using
python3.5 odoo-bin --addons=addons/
I made the foolish mistake of not setting correct python environment on my pycharm project: was using globan python instead of local environment, the first not having PyPDF2 installed while the second did. Check your current python environment.