Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

PyPdf2 module not found

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationodoov11
9 Replies
119518 Views
Avatar
Karan Gupta

I had install the requirements that are there in the requirements script but than also its showing that the PyPdf2 is missing.

I had also install it manually but again the same issue.

Had tried

pip install python-Pypdf2

sudo apt-get install pypdf2

Easy_install pypdf2

But all installed properly,but the message appears again

This is only happening while adding new odoo 11 version

For the 9 version nothing any issue


0
Avatar
Discard
Rishan Malaka

Hi,

Try This. Your one not working with python 3.

sudo apt install python3-pip

pip3 install -U pip

sudo pip3 install pypdf2

TheBrush

If you use a python venv (as I think):

The problem is a session that is bad terminated, ODOO restart the service but not use VENV context so python3 doesn't find correct dependencies

See the correct mode to launch if venv is used:

https://github.com/odoo/odoo/issues/33479#issuecomment-1207347677

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

While installing using pip , the package get installed in python2.  Try the same using pip3 .

pip3 install Pypdf2

Thanks

3
Avatar
Discard
Juan M Solórzano I

Hi...!

I install the module and all was successful I haven't error, but when I run the environment I get the same error.

/home/jmsolorzano78/PycharmProjects/demo/venv/bin/python /opt/odoo13/odoo/odoo-bin --conf /home/jmsolorzano78/PycharmProjects/demo/odoo.conf

Traceback (most recent call last):

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

import odoo

File "/opt/odoo13/odoo/odoo/__init__.py", line 75, in <module>

import PyPDF2

ModuleNotFoundError: No module named 'PyPDF2'

Pls Can you have another information or process to do?

zarchithu470@gmail.com

Hi I already installed Pypdf2, but still show "ModuleNotFoundError: No module named 'PyPDF2'". How to do that bro ?

Avatar
Rishan Malaka
Best Answer

Hi,

Try This. Your one not working with python 3.

sudo apt install python3-pip

pip3 install -U pip

sudo pip3 install pypdf2

1
Avatar
Discard
Avatar
TheBrush
Best Answer

If you use a python venv (as I think):

The problem is a session that is bad terminated, ODOO restart the service but not use VENV context so python3 doesn't find correct dependencies

See the correct mode to launch if venv is used:

https://github.com/odoo/odoo/issues/33479#issuecomment-1207347677

0
Avatar
Discard
Avatar
linc
Best Answer

Same error here. the server can launch successful, but failed after couple of hours, and show following erorr:

Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: Traceback (most recent call last):
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: File "/home/odoo/odoo-15/odoo-bin", line 5, in
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: import odoo
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: File "/home/odoo/odoo-15/odoo/__init__.py", line 75, in
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: import PyPDF2
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z odoo-15[3189]: ModuleNotFoundError: No module named 'PyPDF2'
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z systemd[1]: odoo-15.service: Main process exited, code=exited, status=1/FAILURE
Mar 14 22:51:28 iZbp1feheb80mwpd2778a7Z systemd[1]: odoo-15.service: Failed with result 'exit-code'.


How should I do?

0
Avatar
Discard
Avatar
NHAT MINH ENGINEERING AND BUSINESS SOLUTIONS CO.,LTD)
Best Answer

if you are using pycharm, that may cause from Python Interpreter Environment .

FILE |Settings| Project xxx |Python Interpreter installation path or  choose Setting => Add : Python System interpreter that will include almost module necessary to run Odoo


Good luck

0
Avatar
Discard
Avatar
Ali mughal
Best Answer

Go to environment step and run this command apt-get install python3-pypdf2 
Remember console will tell you to other dependency jinja2 and then just add the name of the package, for instance, apt-get install python3-psutil

0
Avatar
Discard
Avatar
Jason
Best Answer

tried, I still get the same error of "ModuleNotFoundError: No module named 'PyPDF2'".

0
Avatar
Discard
Avatar
Khaled Hamed
Best Answer

Another workaround is to do the following:

apt-get install python-pypdf2

dpkg --ignore-depends=python-pypdf -i odoo_*

0
Avatar
Discard
Avatar
Karan Gupta
Author Best Answer

Again the Same Issue:

odoo@ebslubuntu2:/opt/11$ ./odoo-bin --xmlrpc-port=9000

Traceback (most recent call last):

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

import odoo

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

from . import modules

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

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

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

import odoo.tools as tools

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

from . import pdf

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

from PyPDF2 import PdfFileWriter, PdfFileReader

ImportError: No module named 'PyPDF2'

0
Avatar
Discard
Rishan Malaka

check your PyPDF version and remove all files using bellow command.

sudo apt-get purge python-pypdf

the try bellow command again

sudo apt install python3-pip

pip3 install -U pip

sudo pip3 install pypdf2

sibi0229

Despite the above error is occurring again. like this "ImportError: No module named 'PyPDF2'" Odoo --v 11 , i'm using macOS 10.13.4 .

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Installation module account_payment_partner, Error "cannot be located in parent view
installation modules odoov11
Avatar
Avatar
2
Jun 20
4035
Install Odoo Comunity 18 without 15 days free trial version Solved
installation
Avatar
Avatar
3
Jul 25
4265
Setting up a new odoo 18 server and am unable to install gevent==21.8.0
installation
Avatar
Avatar
Avatar
Avatar
3
Jun 25
6866
How to install Odoo 18 from Tar Source
installation
Avatar
Avatar
Avatar
Avatar
Avatar
5
May 25
7490
Installation tutorial for Odoo 17
installation
Avatar
Avatar
Avatar
2
May 25
3393
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now