Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Python 2.7 Error when launch odoo v8

By
Luca Gasperini
on 11/24/16, 12:02 PM 101 views

Hello, I'm trying to launch odoo under Python 2.7, in command line:

$ python2.7 ./odoo/openerp-server --config=/odoo/openerp-server.conf

Here's the backtrace, thanks in advance:

  File "./odoo/openerp-server", line 2, in <module>    
import openerp  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/__init__.py", line 76, in <module>   
import modules  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/modules/__init__.py", line 27, in <module>   
from . import db, graph, loading, migration, module, registry  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/modules/graph.py", line 32, in <module>   
import openerp.osv as osv  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/osv/__init__.py", line 22, in <module>   
import osv  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/osv/osv.py", line 23, in <module>   
from .orm import Model, TransientModel, AbstractModel  File "/mnt/data/luca/Programmazione/proj/odoo/odoo/openerp/osv/orm.py", line 1, in <module>   
import simplejson  File "/mnt/data/luca/Programmazione/proj/odoo/py-env/venv/lib/python2.7/site-packages/simplejson/__init__.py", line 113, in <module>   
from .decoder import JSONDecoder  File "/mnt/data/luca/Programmazione/proj/odoo/py-env/venv/lib/python2.7/site-packages/simplejson/decoder.py", line 33, in <module>   
NaN, PosInf, NegInf = _floatconstants()  File "/mnt/data/luca/Programmazione/proj/odoo/py-env/venv/lib/python2.7/site-packages/simplejson/decoder.py", line 25, in _floatconstants   
_BYTES = fromhex('7FF80000000000007FF0000000000000')  File "/mnt/data/luca/Programmazione/proj/odoo/py-env/venv/lib/python2.7/site-packages/simplejson/compat.py", line 19, in fromhex   
return s.decode('hex')  File "/usr/lib64/python2.7/encodings/__init__.py", line 120, in search_function   
entry = getregentry()  File "/usr/lib64/python2.7/encodings/hex_codec.py", line 79, in getregentry   
_is_text_encoding=False,TypeError: __new__() got an unexpected keyword argument '_is_text_encoding'
0
Yvan
On 11/24/16, 5:11 PM

Hi Luca, 

to start Odoo you should use following command:

python odoo.py

The file odoo.py is located in the root directory of your Odoo installation.

Best regards

Yvan

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/24/16, 12:02 PM
Seen: 101 times
Last updated: 11/24/16, 5:11 PM