Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

ImportError: No module named 'PyPDF2'

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
8 Antwoorden
126541 Weergaven
Avatar
clement

Currently i'm installing Odoo 11 on Ubuntu 16.04. after this command"./odoo-bin" i got the message bellow:

..........................................................................................................................

Traceback (most recent call last):
  File "./odoo-bin", line 5, in <module>
    import odoo
  File "/opt/odoo/odoo/odoo/__init__.py", line 84, in <module>
    from . import modules
  File "/opt/odoo/odoo/odoo/modules/__init__.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/opt/odoo/odoo/odoo/modules/graph.py", line 10, in <module>
    import odoo.tools as tools
  File "/opt/odoo/odoo/odoo/tools/__init__.py", line 7, in <module>
    from . import pdf
  File "/opt/odoo/odoo/odoo/tools/pdf.py", line 4, in <module>
    from PyPDF2 import PdfFileWriter, PdfFileReader
ImportError: No module named 'PyPDF2'
...........................................................................................................................................

My installation was alredy finished without any error. Someone can help me? I'm not able to start Odoo due to that message. Thank you in advance  for your time and help.

PS: I used the following  tutorial for installation: https://github.com/mtsoftware2016/odoo11/blob/master/commands.txt

0
Avatar
Annuleer
Avatar
Megha Patel
Beste antwoord

clement,

pypdf2 is python library, firstly install it using command:

sudo apt-get install python-pypdf2

Thank You



2
Avatar
Annuleer
Avatar
Mitul Shingala
Beste antwoord

Hello clement,

try this below command

sudo apt-get install python3-pypdf2
3
Avatar
Annuleer
Avatar
TEMMACHE
Beste antwoord

If you did install the requirements using a python virtualenv make sure you are operating with the said virtualenv activated.

1
Avatar
Annuleer
Avatar
TheBrush
Beste antwoord

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
Annuleer
Avatar
Kayemba Luwaga
Beste antwoord

Please first install virtualenv in your project directory, run

pip install virtualenv

then install project requirements, run 

pip install -r requirements.txt 

in PyCharm terminal


Cheers

0
Avatar
Annuleer
Avatar
Zbik
Beste antwoord

https://www.odoo.com/forum/help-1/question/pypdf2-module-not-found-128668

0
Avatar
Annuleer
Avatar
Neel B. Joshi
Beste antwoord

Hello,

For python3 you can use

apt-get install python3-pypdf2

or  

sudo apt install python3-pip

pip3 install -U pip

pip3 install Pypdf2

Thanks

0
Avatar
Annuleer
Avatar
NHAT MINH ENGINEERING AND BUSINESS SOLUTIONS CO.,LTD)
Beste antwoord

The root cause is that your installation is lack of the list of library dependency.

step 1: run 
sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev \ libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev \ liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libpq-dev

step 2
$ cd to your source odoo location
$ pip3 install setuptools wheel $ pip3 install -r requirements.txt

you can refer here https://www.odoo.com/documentation/14.0/setup/install.html#id14

More one thing to note, to avoid conflict with other program python when install dependencies
you should create venv for your project.


0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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