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

Error installing local Odoo

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationlocalhostodoo18
2 Replies
3846 Views
Avatar
RGonzalez

Hello everyone, I hope you are well.


I am trying to install Odoo on my local computer. Even though it looks simple in the videos, every time I do the installation I get some error, schema error, internal server error, with the database. However, most were happening when trying to create the database.


After that I was able to create the database, and log in to the application, but then it triggers an internal error directly in the Odoo source code, and I don't understand why.


Here I show the log error:

2024-12-09 21:58:05,807 5364 ERROR odoo_db odoo.http: Exception during request handling.

Traceback (most recent call last):

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 2364, in __call__

    response = request._serve_db()

               ^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 1892, in _serve_db

    return self._transactioning(

           ^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 1955, in _transactioning

    return service_model.retrying(func, env=self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\service\model.py", line 137, in retrying

    result = func()

             ^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 1922, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 2082, in dispatch

    return self.request.registry['ir.http']._dispatch(endpoint)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\base\models\ir_http.py", line 329, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 727, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\portal\controllers\web.py", line 27, in web_client

    return super().web_client(s_action, **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\http.py", line 727, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\web\controllers\home.py", line 66, in web_client

    context = request.env['ir.http'].webclient_rendering_context()

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\web\models\ir_http.py", line 72, in webclient_rendering_context

    'session_info': self.session_info(),

                    ^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\spreadsheet\models\ir_http.py", line 14, in session_info

    res = super().session_info()

          ^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\partner_autocomplete\models\ir_http.py", line 12, in session_info

    session_info = super(Http, self).session_info()

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\mail\models\ir_http.py", line 14, in session_info

    result = super().session_info()

             ^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\barcodes_gs1_nomenclature\models\ir_http.py", line 11, in session_info

    res = super().session_info()

          ^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\web_tour\models\ir_http.py", line 8, in session_info

    result = super().session_info()

             ^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\bus\models\ir_http.py", line 17, in session_info

    session_info = super().session_info()

                   ^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\base_setup\models\ir_http.py", line 10, in session_info

    result = super(IrHttp, self).session_info()

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\barcodes\models\ir_http.py", line 11, in session_info

    res = super(IrHttp, self).session_info()

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\web\models\ir_http.py", line 130, in session_info

    'view_info': self.env['ir.ui.view'].get_view_info(),

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Odoo 18.0e.20241205\server\odoo\addons\web\models\ir_ui_view.py", line 14, in get_view_info

    # 'icon': _view_info[type_]['icon'],

            ^^^^^^^^^^^^^^^^^

KeyError: 'cohort'

0
Avatar
Discard
Avatar
Xavier Gómez
Best Answer

Hi,



I've solved this problem, by changing my path in odoo.conf.


In v17, when Odoo had the enterprise as a repository on github, the path to enterprise was ".../enterprise", and now it's like this ".../enterprise/odoo/addons".


I hope it will help for future users with this issue.


0
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


1. Check whether your addons are the latest if not, pull the latest code.

2. Navigate to addons/web/models/ir_ui_view.py 

    Confirm that the 'cohort' key exists in the " _get_view_info" if not, add

    'cohort' :{ 'icon' : 'fa-bar-chart'}


Hope it helps

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
Install in local but not install in server, why is that?
installation server issue odoo18
Avatar
Avatar
1
Oct 25
681
Odoo18 - How to select Email Templates when sending multiple invoices
odoo18
Avatar
Avatar
1
Nov 25
1742
POS order line custom field (serial_id) not synced to backend after payment (Odoo 18)
odoo18
Avatar
Avatar
1
Nov 25
765
Can’t install gevent==21.8.0 for Odoo 18 on Python 3.10 – Cython build keeps failing
installation requirements gevent python3 odoo18
Avatar
Avatar
1
Sep 25
4886
Auto Session time out for users ODOO 18
odoo18
Avatar
Avatar
Avatar
2
Sep 25
3559
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