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

Installation issue - pyparsing 2.0.0

By
Ron
on 3/19/13, 5:51 AM 4,269 views

Hello experts, While trying to do a install of openerp source on Max osx running python 2.7, i am facing the following issue.

I run the command from the prompt

sudo python setup.py install

but the installation stops and throws a syntax error as follows.

File "/tmp/easy_install-cxHbUB/pyparsing-2.0.0/pyparsing.py", line 629 nonlocal limit,foundArity ^ SyntaxError: invalid syntax

I googled and found the issue is to not using the correct pyparsing module for python2.7. Hence i downloaded the correct module using macports

sudo port install py27-parsing.

and this has successfully installed in the site-packages on my system at /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

However inspite of that , the open erp installation always defaults to downloading the latest version of pyparsing from sourceforge when i do a openerp setup.py install ..

Can you please guide me how i can overcome this issue ?

I am a new user to OpenERP. I am trying to do the install as provided in the open erp installation documenation verbatim..

Regards Ron Abraham

0
Gustavo
On 3/19/13, 7:52 AM

You need to install pyparsing 1.5.7 that is compliant with Python 2.7, whereas pyparsing 2.0 is compliant with Python 3.0

You can do that from the command line with the following command:

sudo pip install pyparsing==1.5.7

thanks Gustavo. That just seems to have solved the problem. :D

Ron
on 3/19/13, 10:18 AM
0
Rob Wiseman
On 5/14/13, 6:32 PM

Gustavo,

I am trying to install pyparsing 1.5.7, on OXS installed with Python 2.6. I followed your advice, but the command sudo pip install pyparsing==1.5.7 just returns "sudo: pip: command not found".

Any suggestions.

I am trying to load this in order to run the Raster calculator on QGIS.

Thanks.

Gustavo
on 5/14/13, 7:17 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

0 follower(s)

Stats

Asked: 3/19/13, 5:51 AM
Seen: 4269 times
Last updated: 3/16/15, 8:10 AM