Odoo Help

0

Python 2.7 Error when launch odoo v8

By
Luca Gasperini
on 11/24/16, 12:02 PM 723 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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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