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

Odoo Masters install error on Debian 7 Wheezy [Solved]

By
Sebastian Bollatti
on 8/21/14, 1:49 PM 1,384 views

Installing Odoo from a fresh install of Debian. I added Odoo at source.list then Update, Upgrade and "apt-get install openerp"

The ERROR:

Compiling /usr/lib/pymodules/python2.6/openerp/addons/event/event.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/addons/event/event.py', 117, 38, '            res[event_id] = {key:0 for key in keys.values()}\n'))

Compiling /usr/lib/pymodules/python2.6/openerp/osv/orm.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/osv/orm.py', 2404, 45, "        groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}\n"))

And now? Whats next?

...seems that I must down grade python to 2.6 (actually 2.7). Am I right?

0
Sebastian Bollatti
On 8/22/14, 6:44 AM

Today after update then upgrade got this:

Stopping openerp-server: start-stop-daemon: warning: failed to kill 2473: No such process
openerp-server.
Desempaquetando el reemplazo de openerp ...
Procesando disparadores para python-support ...
Compiling /usr/lib/pymodules/python2.6/openerp/addons/event/event.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/addons/event/event.py', 117, 38, '            res[event_id] = {key:0 for key in keys.values()}\n'))

Compiling /usr/lib/pymodules/python2.6/openerp/osv/orm.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/osv/orm.py', 2404, 45, "        groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}\n"))

Configurando openerp (8.0dev-20140821-230101-1) ...
Compiling /usr/lib/pymodules/python2.6/openerp/addons/event/event.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/addons/event/event.py', 117, 38, '            res[event_id] = {key:0 for key in keys.values()}\n'))

Compiling /usr/lib/pymodules/python2.6/openerp/osv/orm.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/osv/orm.py', 2404, 45, "        groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}\n"))

Starting openerp-server: openerp-server.
Procesando disparadores para python-support ...
Compiling /usr/lib/pymodules/python2.6/openerp/addons/event/event.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/addons/event/event.py', 117, 38, '            res[event_id] = {key:0 for key in keys.values()}\n'))

Compiling /usr/lib/pymodules/python2.6/openerp/osv/orm.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/openerp/osv/orm.py', 2404, 45, "        groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}\n"))

And then I tryed:
 

root@Ingenieria:~# openerp-server
Traceback (most recent call last):
  File "/usr/bin/openerp-server", line 2, in <module>
    import openerp
  File "/usr/lib/pymodules/python2.6/openerp/__init__.py", line 70, in <module>
    import cli
  File "/usr/lib/pymodules/python2.6/openerp/cli/__init__.py", line 6, in <module>
    from openerp.modules import module
  File "/usr/lib/pymodules/python2.6/openerp/modules/__init__.py", line 27, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/usr/lib/pymodules/python2.6/openerp/modules/graph.py", line 32, in <module>
    import openerp.osv as osv
  File "/usr/lib/pymodules/python2.6/openerp/osv/__init__.py", line 22, in <module>
    import osv
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 22, in <module>
    from openerp.osv.orm import except_orm, Model, TransientModel, AbstractModel
  File "/usr/lib/pymodules/python2.6/openerp/osv/orm.py", line 2404
    groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}
                                        ^
SyntaxError: invalid syntax

 

What can I do?

SOLVED Just installed Ubuntu Server

Sebastian Bollatti
on 8/22/14, 1:51 PM

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: 8/21/14, 1:49 PM
Seen: 1384 times
Last updated: 3/16/15, 8:10 AM