Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Getting error "No handler found." in openerp

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
pythonconfighandlerlogfile
1 Odpowiedz
8248 Widoki
Awatar
sneha antony

I made changes in /opt/openerp/server/openerp/addons/stock/stock.py.A portion from the code was removed and server was restarted for some bug fixing purposes.But when I enter the url "No handler found." is shown.Thinking that the error is due to the change made in the .py file,I replaced the code but still the error exists.After a long search I found that the solution is with openerp-server.conf file and openerp-server.log file.

The last portions of log file is pasted below:

2014-06-11 10:28:13,959 785 INFO ? openerp.service: Initiating shutdown
2014-06-11 10:28:13,960 785 INFO ? openerp.service: Hit CTRL-C again or send a second signal to force the shutdown.
2014-06-11 10:28:37,786 792 INFO ? openerp: OpenERP version 7.0-20140121-002442
2014-06-11 10:28:37,809 792 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2014-06-11 10:28:37,809 792 INFO ? openerp: database hostname: localhost
2014-06-11 10:28:37,809 792 INFO ? openerp: database port: 5432
2014-06-11 10:28:37,809 792 INFO ? openerp: database user: openerp
2014-06-11 10:28:38,198 792 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.14` detected
2014-06-11 10:28:38,456 792 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-06-11 10:28:38,456 792 CRITICAL ? openerp.modules.module: invalid syntax (stock.py, line 1213)
2014-06-11 10:28:38,456 792 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `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 "/opt/openerp/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/opt/openerp/server/openerp/addons/web/http.py", line 628, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/opt/openerp/server/openerp/addons/web/http.py", line 517, in __init__
    self.load_addons()
  File "/opt/openerp/server/openerp/addons/web/http.py", line 580, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/openerp/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/server/openerp/addons/stock/__init__.py", line 22, in <module>
    from stock import *
  File "/opt/openerp/server/openerp/addons/stock/stock.py", line 1213
    else:
       ^
SyntaxError: invalid syntax
2014-06-11 10:28:38,506 792 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-06-11 10:28:38,506 792 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-06-11 10:31:51,917 792 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:31:51] "GET /?db=db_test&ts=1402475677168 HTTP/1.1" 404 -
2014-06-11 10:31:51,967 792 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:31:51] "GET /favicon.ico HTTP/1.1" 404 -
2014-06-11 10:31:52,337 792 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:31:52] "GET /?db=db_test&ts=1402475677168 HTTP/1.1" 404 -

 


2014-06-11 10:43:07,506 792 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:43:07] "GET / HTTP/1.1" 404 -
2014-06-11 10:46:41,232 792 INFO ? openerp.service: Initiating shutdown
2014-06-11 10:46:41,232 792 INFO ? openerp.service: Hit CTRL-C again or send a second signal to force the shutdown.
2014-06-11 10:47:04,754 778 INFO ? openerp: OpenERP version 7.0-20140121-002442
2014-06-11 10:47:04,777 778 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons
2014-06-11 10:47:04,777 778 INFO ? openerp: database hostname: localhost
2014-06-11 10:47:04,777 778 INFO ? openerp: database port: 5432
2014-06-11 10:47:04,777 778 INFO ? openerp: database user: openerp
2014-06-11 10:47:05,174 778 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.14` detected
2014-06-11 10:47:05,430 778 CRITICAL ? openerp.modules.module: Couldn't load module web
2014-06-11 10:47:05,430 778 CRITICAL ? openerp.modules.module: expected an indented block (stock.py, line 1212)
2014-06-11 10:47:05,430 778 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `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 "/opt/openerp/server/openerp/service/__init__.py", line 60, in load_server_wide_modules
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/server/openerp/modules/module.py", line 415, in load_openerp_module
    getattr(sys.modules['openerp.addons.' + module_name], info['post_load'])()
  File "/opt/openerp/server/openerp/addons/web/http.py", line 628, in wsgi_postload
    openerp.wsgi.register_wsgi_handler(Root())
  File "/opt/openerp/server/openerp/addons/web/http.py", line 517, in __init__
    self.load_addons()
  File "/opt/openerp/server/openerp/addons/web/http.py", line 580, in load_addons
    m = __import__('openerp.addons.' + module)
  File "/opt/openerp/server/openerp/modules/module.py", line 133, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/opt/openerp/server/openerp/addons/stock/__init__.py", line 22, in <module>
    from stock import *
  File "/opt/openerp/server/openerp/addons/stock/stock.py", line 1212
    if pick.state in ['done','cancel']:
     ^
IndentationError: expected an indented block

2014-06-11 10:47:05,482 778 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2014-06-11 10:47:05,483 778 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-06-11 10:47:09,865 778 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:47:09] "GET / HTTP/1.1" 404 -
2014-06-11 10:47:10,354 778 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:47:10] "GET / HTTP/1.1" 404 -
2014-06-11 10:47:10,397 778 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:47:10] "GET / HTTP/1.1" 404 -
2014-06-11 10:47:10,429 778 INFO ? werkzeug: 192.168.1.13 - - [11/Jun/2014 10:47:10] "GET / HTTP/1.1" 404 -

 

 

and my openerp-server.conf file includes

   

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = openerp
db_password = test123
logfile = /var/log/openerp/openerp-server.log


Still I am not able to trace out the proper solution for the issue.Am I missing something in the config file.Please someboby help me in fixing the issue.

0
Awatar
Odrzuć
Awatar
Ludo - 21South
Najlepsza odpowiedź

Well, it seems not all of your changes were correct. The indentation is wrong file "/opt/openerp/server/openerp/addons/stock/stock.py", on lines 1212 and 1213. Open the file with any smart python editor and you will most likely see a syntax error appear. Most likely it has something to do with the number of spaces (3 instead of 4 for example) before the if-statement.

If you restored all the old code and it still fails, try to reload the server and update the database with flag "-u all".

 

By the way, if you want to alter functionality it is better to stay away from the Odoo core code and create a custom module.

1
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Making controller use modified version of the request handler in odoo 8?
python handler controller
Awatar
0
mar 15
4487
new python env
python
Awatar
0
mar 25
2284
What means "Too many values to unpack" message? Rozwiązane
python
Awatar
Awatar
Awatar
Awatar
Awatar
4
kwi 24
175738
have no data in screen. read data in my own module from different model
python
Awatar
0
gru 23
2934
How to insert value to a one2many field in table with create method? Rozwiązane
python
Awatar
Awatar
Awatar
Awatar
Awatar
5
lip 25
231962
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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