Skip to Content
Menu
This question has been flagged
2 Replies
2966 Views

First launch

When trying to start launch odoo 11 "./odoo-bin --addons-path=/opt/odoo11/enterprise,/opt/odoo11/odoo/addons" 

Traceback (most recent call last):

  File "./odoo-bin", line 5, in <module>

    import odoo

  File "/opt/odoo11/odoo/odoo/__init__.py", line 84, in <module>

    from . import modules

  File "/opt/odoo11/odoo/odoo/modules/__init__.py", line 8, in <module>

    from . import db, graph, loading, migration, module, registry

  File "/opt/odoo11/odoo/odoo/modules/graph.py", line 10, in <module>

    import odoo.tools as tools

  File "/opt/odoo11/odoo/odoo/tools/__init__.py", line 7, in <module>

    from . import pdf

  File "/opt/odoo11/odoo/odoo/tools/pdf.py", line 4, in <module>

    from PyPDF2 import PdfFileWriter, PdfFileReader

ModuleNotFoundError: No module named 'PyPDF2'


Prerequisites installed

Python-3.6.4


Thanks.

EGM.


Avatar
Discard

If you want to improve your chance to get an answer, please use meaningful, concise and not misleading titles.

Author

Do you have a proposal?

What about: How to install PyPDF2 on ....???

Best Answer

Hi,

Go to the odoo directory and run the command

 pip3 install -r requirements.txt


Or you can do it like this,

pip3 install PyPDF2


UPTD : 

sudo apt-get install python3-pypdf2


Thanks

Avatar
Discard
Author Best Answer

Hi,

I have tried both commands, when executing "pip3 install PyPDF2" the answer is: Requirement already satisfied: PyPDF2 in /usr/local/lib/python3.5/dist-packages (1.26.0)

however, I run again "./odoo-bin --addons-path = / opt / odoo11 / enterprise, / opt / odoo11 / odoo / addons" and the error persists.

Avatar
Discard