Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

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

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

Getting error "No handler found." in openerp

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
pythonconfighandlerlogfile
1 Responder
8252 Visualizações
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
Cancelar
Avatar
Ludo - 21South
Melhor resposta

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
Cancelar
Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
Making controller use modified version of the request handler in odoo 8?
python handler controller
Avatar
0
mar. 15
4487
new python env
python
Avatar
0
mar. 25
2284
What means "Too many values to unpack" message? Resolvido
python
Avatar
Avatar
Avatar
Avatar
Avatar
4
abr. 24
175738
have no data in screen. read data in my own module from different model
python
Avatar
0
dez. 23
2934
How to insert value to a one2many field in table with create method? Resolvido
python
Avatar
Avatar
Avatar
Avatar
Avatar
5
jul. 25
231962
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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