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

PyDev workspace issue

By
Ron
on 3/26/13, 11:58 AM 2,477 views

Hi, Im a newbie to OpenERP development environment and after successfully installing the server on my system[i can log in to the application at 0.0.0.0:8069, am stuck at trying to setup a workspace to debug Open ERP.

I have downloaded PyDev from Aptana and tried to import the source folder from the website directly into a workspace.

I see a package[folder actually] called cli/ and it contains a file that looks like the main server code.

I try to run server.py using the Python 2.7 interpreter and it gives me the following error

> >       from . import Command
> > ValueError - Attempted relative import
> > in non-package.

Are there any links on Pydev or in Openerp pages for helping up setup a workspace ?

0

Mohammad Alhashash

--Mohammad Alhashash--
2075
| 5 5 8
Giza, Egypt
--Mohammad Alhashash--

Developer

Mohammad Alhashash
On 3/26/13, 4:20 PM

You need to create 'Run Configuration'. The starting script is openerp-server in the server folder. Of course you need to define the project as PyDev project and configure the Python interpreter.

I'm using the following settings in my run configuration

Main Module:

    ${workspace_loc:OpenERP 7.0/server/openerp-server}

Note that browse button shows only .py files. You can select openerp-wsgi.py and change the name to openerp-server after selection.

In Arguments tab, you should add start-up parameters like:

    --db_user=UserName  --addons-path=AddonsPath1,AddonsPath2

ok. This looks like the problem all right. thanks..and sorry for the late acknowledgement. I downloaded the source directly from the website, and it does not have openerp-wsgi.py. I will do this from launchpad now..

Ron
on 3/28/13, 8:01 AM
1

priyankahdp

--priyankahdp--
1089
| 5 5 6
Colombo, Sri Lanka
--priyankahdp--
Java Developer ORACLE Python J2EE Spring Hibernate Struts & Jquery............. :-)
priyankahdp
On 3/27/13, 2:00 AM

refer this friend.its a collection of information from openerp related blogs

See this BLOG

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/26/13, 11:58 AM
Seen: 2477 times
Last updated: 3/16/15, 8:10 AM