Problem I got the following error when I configured odoo 14 under Pycharm

——

C:\Users\Administrator\PycharmProjects\odoo1Project\venv\Scripts\python.exe “C:/Program Files/Odoo 14.0.20210331/server/odoo-bin” –conf C:\Users\Administrator\PycharmProjects\odoo1Project\odoo.conf

Traceback (most recent call last):

  File “C:/Program Files/Odoo 14.0.20210331/server/odoo-bin”, line 5, in <module>

    import odoo

  File “C:\Program Files\Odoo 14.0.20210331\server\odoo\__init__.py”, line 75, in <module>

    import PyPDF2

ModuleNotFoundError: No module named ‘PyPDF2’

Process finished with exit code 1

Solution:  Try to install those following and re-run, which should solve the problem

pip3 install werkzeug==0.16.0

pip3 install pypiwin32

pip3 install libsass==0.12.3

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd

pip3 install PyPDF2

pip3 install polib

Result: I can successfully start odoo under Pycharm as below diagram

Leave a Reply

Your email address will not be published.

Enter Captcha Here : *

Reload Image