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

No module named 'werkzeug.contrib'

Subscribe

Get notified when there's activity on this post

This question has been flagged
10 Replies
131285 Views
Avatar
elkafil

error message when i try to start odoo 12 instance on ubuntu 18.04


-bash: cd: /oprt: No such file or directory
root@vmi340591:/opt/odoo/odoo/odoo# cd /opt
root@vmi340591:/opt# ./start.sh
root@vmi340591:/opt# Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/odoo-bin", line 5, in <module>
import odoo
File "/opt/odoo/odoo/odoo/odoo/__init__.py", line 129, in <module>
from . import service
File "/opt/odoo/odoo/odoo/odoo/service/__init__.py", line 7, in <module>
from . import wsgi_server
File "/opt/odoo/odoo/odoo/odoo/service/wsgi_server.py", line 25, in <module>
import werkzeug.contrib.fixers
ModuleNotFoundError: No module named 'werkzeug.contrib'

0
Avatar
Discard
Avatar
Darshan Patel
Best Answer


It seems there is some issue with the new/current version 1.0.0 of the Werkzeug installation on ubuntu 18.04

Try below command, it worked for me :

sudo pip3 uninstall Werkzeug (will uninstall earlier version, press 'y' to proceed uninstallation, if asked)
sudo pip3 install Werkzeug==0.11.15 (or check requirements.txt which is under your odoo version and install the version mentioned there.)

As on May 21, one could use now to newer version "sudo pip3 install Werkzeug==0.16.0"

Regards, Darshan!


10
Avatar
Discard
Humanoide servicios para la pyme, S.L.N.E.

not working for me

Darshan Patel

Maybe you could try this with sudo to install a newer version

"sudo pip3 install Werkzeug==0.16.0"

Azharul Amin Mulla

worked for me

Antônio Sebastian

worked for me to install a newer version

Avatar
Latnok.Africa
Best Answer

@elkafil

No need more magic to solve ModuleNotFoundError: No module named 'werkzeug.contrib' as the error message says.

Please check out  your /odoo/requirement.txt  dependancy of werkzeug  ( 0.14.1 in my case),  then install it by :

$ cat /odoo/requirement.txt           and find down the version of werkzeug requirement, then
$ sudo pip3 install werkzeug==0.14.1


Hope this will help
2
Avatar
Discard
Humanoide servicios para la pyme, S.L.N.E.

I have the same problem. This solution is not working for me.

Avatar
Enrique David HM
Best Answer

Anyone managed to solve it? I have the same problem.

1
Avatar
Discard
Avatar
Dishan Madushanka
Best Answer

Hi Elkafil,

I am assuming, that the wrong version of Werkzeug was installed in the fist place. This usually happens, when you have 2 versions of python installed, and you use 'pip' for installing dependencies rather than using 'pip3'. Hope this helped!

0
Avatar
Discard
elkafil
Author

thanks

elkafil
Author

i reinstall server and dependencies with pip3 only but same problem

Avatar
Temitope Joseph Shittu
Best Answer

I'm having same problem right now. This script has always worked for me until now. Who has a solution please? I have an urgent project I'm supposed to submit soonest


Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Traceback (most recent call last):
File "./odoo-bin", line 5, in <module>
import odoo
File "/opt/odoo/odoo/odoo/__init__.py", line 117, in <module>
from . import service
File "/opt/odoo/odoo/odoo/service/__init__.py", line 7, in <module>
from . import wsgi_server
File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 25, in <module>
import werkzeug.contrib.fixers
ModuleNotFoundError: No module named 'werkzeug.contrib'
root@ubuntu-s-1vcpu-1gb-nyc3-01:~#

0
Avatar
Discard
Avatar
Diego Almonte
Best Answer

Hi,

I have the same problem, i'm installing a new server with Odoo with the same script thta I have used before many times, but since yesterday I've being having this same error and dont know what to do

0
Avatar
Discard
Avatar
Lamia salem
Best Answer

i solved this by running these flowing commeds :

python3 -m pip uninstall werkzeug
python3 -m pip install werkzeug==0.16.0

NOTE: find werkzeug version in you requirmnet.txt



 

-1
Avatar
Discard
Avatar
Jhe
Best Answer

My version is odoo11.  And since I install environment in ubuntu16.04. I also got this issue.

After tracing back errors, I got this error.

`Failed building wheel for pyldap`

And after I run this code.
`sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev`
and
`pip3 install -r requirements.txt`

Make sure your werkzeug version in requirements.txt is correct with official document.

then you can execute odoo.


-1
Avatar
Discard
Avatar
elkafil
Author Best Answer

i resolved my problem by using this script for my install 


sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
-1
Avatar
Discard
Avatar
Ayman Al Atrash
Best Answer

Try 

pip3 install werkzeug==0.16.0
-1
Avatar
Discard
Humanoide servicios para la pyme, S.L.N.E.

Not working for me

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
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