Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Getting error "No handler found." in openerp

Odebírat

Get notified when there's activity on this post

This question has been flagged
pythonconfighandlerlogfile
1 Odpovědět
8251 Zobrazení
Avatar
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
Avatar
Zrušit
Avatar
Ludo - 21South
Nejlepší odpověď

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
Avatar
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Making controller use modified version of the request handler in odoo 8?
python handler controller
Avatar
0
bře 15
4487
new python env
python
Avatar
0
bře 25
2284
What means "Too many values to unpack" message? Vyřešeno
python
Avatar
Avatar
Avatar
Avatar
Avatar
4
dub 24
175738
have no data in screen. read data in my own module from different model
python
Avatar
0
pro 23
2934
How to insert value to a one2many field in table with create method? Vyřešeno
python
Avatar
Avatar
Avatar
Avatar
Avatar
5
čvc 25
231962
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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