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
    • Artificial Intelligence
    • 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
    • Property 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 IndustriesInauguration Odoo Lyon
  • 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
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

openerp.modules.module: Couldn't load module web

Subscribe

Get notified when there's activity on this post

This question has been flagged
webunittest2
2 Replies
36984 Views
Avatar
Pavel Pavlov

Hello,

I'm trying to follow doc.openerp.com/trunk/server/01_getting_started/ I installed fresh VM box with Debian and PostgreSQL 9.1, then did
1) apt-get install bzr
2) ssh-keygen –t rsa
3) bzr Launchpad-login <myid>
4) apt-get install python-psutil (on top of the packages in the list, because I was getting error that psutil could not be loaded on openerp server start. maybe should be added to the list in the docu?)
5) pavel@dev:~/openERP/v70/source$ pwd
/home/pavel/openERP/v70/source
6)pavel@dev:~/openERP/v70/source$ bzr cat -d lp:~openerp-dev/openerp-tools/trunk setup.sh | sh
7)root@dev:/home/pavel/openERP/projSrc# su - postgres -c "createuser -s pavel" (did this manually, because the "make db-setup" had problems on my debian, it didn't like the sudo in front of su in the script).
8)pavel@dev:~/openERP/v70/source$ make init-v70
bzr finished successfully with "Switched to branch: /home/pavel/openERP/v70/source/server/.bzr/branches/7.0/"
9) when I did make server I got two problems...

pavel@dev:~/openERP/v70/source$
make server
launch the server ./server/openerp-server --addons-path=addons,web/addons --log-level=debug ...
INFO ? openerp: OpenERP version 7.0
INFO ? openerp: > addons paths: /home/pavel/openERP/v70/source/addons,/home/pavel/openERP/v70/source/web/addons
...
CRITICAL ? openerp.modules.module: Couldn't load module web
CRITICAL ? openerp.modules.module: No module named unittest2
ERROR ? > openerp.service: Failed to load> server-wide module web.
web module is provided by the addons found in the openerp-web project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/home/pavel/openERP/v70/source/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/home/pavel/openERP/v70/source/server/openerp/modules/module.py", line 405, in load_openerp_module
__import__('openerp.addons.' + module_name)
File "/home/pavel/openERP/v70/source/server/openerp/modules/module.py", > line 133, in load_module
mod = imp.load_module('openerp.addons.' +> module_part, f, path, descr)
File "/home/pavel/openERP/v70/source/web/addons/web/__init__.py", line 3, in <module>
import cli
File "/home/pavel/openERP/v70/source/web/addons/web/cli/__init__.py",> line 1, in <module>
import test_js File "/home/pavel/openERP/v70/source/web/addons/web/cli/test_js.py",
line 5, in <module>
import unittest2 ImportError: No module named unittest2

I was thinking that the problem is that web is missing in web/addons, but it's there...

pavel@dev:~/openERP/v70/source$ cd /home/pavel/openERP/v70/source/web/addons
pavel@dev:~/openERP/v70/source/web/addons$ ls -lrt
total 44
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_api
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_calendar
drwxr-xr-x 5 pavel pavel 4096 Sep  1 14:13 web_diagram
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_gantt
drwxr-xr-x 5 pavel pavel 4096 Sep  1 14:13 web_graph
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_hello
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_tests
drwxr-xr-x 3 pavel pavel 4096 Sep  1 14:13 web_tests_demo
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:13 web_view_editor
drwxr-xr-x 8 pavel pavel 4096 Sep  1 14:57 web
drwxr-xr-x 4 pavel pavel 4096 Sep  1 14:57 web_kanban

Has someone hit this issue before? I'm strugglin whole day to figure out what I've did wrong...

Regards, Pavel Pavlov

1
Avatar
Discard
Avatar
Pavel Pavlov
Author Best Answer

Hello,
I've solved the problem, thou I'm not really sure how...
While searching for the second problem(because I wasn't able to find any clue for the first one)...I've found in theopensourcerer.com/2012/12/how-to-install-openerp-7-0-on-ubuntu-12-04-lts/ ... there I found, that my second problem(unittest2) can be installed via apt-get (again not listed in the docu)...
So I just copy pasted the whole apt-get install from this website and I got

"The following NEW packages will be installed:
docutils-common docutils-doc python-docutils python-jinja2 python-mock python-pygments python-roman python-unittest2 python-zsi"

after that did again

pavel@dev:~/openERP/v70/source$ ./server/openerp-server --addons-path=addons,web/addons --log-level=debug

not sure why, but this time both it worked... now I have two questions
Q1: Should and how I report that some additioanl deps are not described in the apt-get install command in the guide?
Q2: Did I solve the missing web module, by installing unittest2 or something else happened?

Regards,
Pavel Pavlov

0
Avatar
Discard
Avatar
Thierry Godin
Best Answer

Hello,

Q1 : I don't know

Q2 : Yes, you solved the problem by installing unitest2 lib as writen in the log file

import unittest2 ImportError: No module named unittest2

Regards

0
Avatar
Discard
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
How to use dynamic snippet for local Seo
web
Avatar
Avatar
Avatar
Avatar
Avatar
5
May 26
3823
European Accessibility Act compliance
web
Avatar
1
May 25
2826
How to import owl CharField?
web
Avatar
Avatar
2
May 25
3470
Problems migrating from Odoo14 to Odoo17 due to web.assets_backend problem
web
Avatar
Avatar
1
Jul 24
6173
invalid website_form_signature
web
Avatar
0
Aug 24
341
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 Svenska ภาษาไทย 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