"update modules list" doesn't work on debian

Asked by Maxime LUCE

Hi,

I start use OpenERP since few times.

I'm familiar with Python's development so I tried to create a simple module to test the engine.

I configure my Eclipse with PyDev and OpenERP templates then i start and create a little module with 4 files :

__init__.py
__terp__.py
carparc.py
carparc_view.xml

I followed OpenERP docs to fill these files. Then when I tried to test my module, i copy my folder in my Debian server and I click "Update Module List" on my client. The window of the update appears and tell me there is no new modules.

I tried to understand, i thought it was an encoding problem because of the transfer from Windows to Linux but no solutions were eficients.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #562772.

Revision history for this message
Maxime LUCE (maxime-luce) said :
#1
Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#2

Hello.

It happens to me a lot of times when i begun to program my own modules.

Your module looks fine.

When you run your server some data is shown, and you need to be so clear with this information......

Somthing like that!!!!

[2010-04-14 01:13:05,628] INFO:server:version - 5.0.7
[2010-04-14 01:13:05,629] INFO:server:addons_path - /path_to_serv/openerp/stable/5.0/server/bin/addons
[2010-04-14 01:13:05,630] INFO:server:database hostname - localhost
[2010-04-14 01:13:05,630] INFO:server:database port - 5432
[2010-04-14 01:13:05,630] INFO:server:database user - nhomar_db
[2010-04-14 01:13:05,631] INFO:objects:initialising distributed objects services
[2010-04-14 01:13:05,907] INFO:web-services:starting XML-RPC services, port 60073
[2010-04-14 01:13:05,908] INFO:web-services:starting NET-RPC service, port 60074
[2010-04-14 01:13:05,908] INFO:web-services:the server is running, waiting for connections...

This behaviour that you describe is shown when you put your module on a folder diferent than:

addons_path - /path_to_serv/openerp/stable/5.0/server/bin/addons

When you say:

"i copy my folder in my Debian server"

You didn't specify _where_ this information is so important.

try again....

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#3

I convert this in a question because is a very commun error of the beginer with openerp, and is not clear documented on doc.openerp.com..... thanks!

Revision history for this message
Maxime LUCE (maxime-luce) said :
#4

I installed OpenERP on Debian by using apt-get features.

It installed OpenERP on folder /usr/lib/openerp-server/ so I put my custom module in /usr/lib/openerp-server/addons/

This is the message when I start the openerp-server :

openerp: /var/lib/openerp-server/ # ./openerp-server.py

[2010-04-14 13:10:31,176] INFO:server:version - 5.0.7
[2010-04-14 13:10:31,177] INFO:server:addons_path - /usr/lib/openerp-server/addons
[2010-04-14 13:10:31,177] INFO:server:database hostname - localhost
[2010-04-14 13:10:31,177] INFO:server:database port - 5432
[2010-04-14 13:10:31,177] INFO:server:database user - root
[2010-04-14 13:10:31,177] INFO:objects:initialising distributed objects services
[2010-04-14 13:10:31,356] INFO:web-services:starting XML-RPC services, port 8069
[2010-04-14 13:10:31,356] INFO:web-services:starting NET-RPC service, port 8070
[2010-04-14 13:10:31,357] INFO:web-services:the server is running, waiting for connections...

I tried to do ./openerp-server.py --config=/etc/openerp-server.conf but there is no console informations

Revision history for this message
Maxime LUCE (maxime-luce) said :
#5

When I start OpenERP by using /etc/init.d/openerp-server start, I have this output in my log file, a little different :

[2010-04-14 13:14:18,338] INFO:server:version - 5.0.7
[2010-04-14 13:14:18,338] INFO:server:addons_path - /usr/lib/openerp-server/addons
[2010-04-14 13:14:18,338] INFO:server:database hostname - localhost
[2010-04-14 13:14:18,339] INFO:server:database port - 5432
[2010-04-14 13:14:18,339] INFO:server:database user - openerp
[2010-04-14 13:14:18,339] INFO:objects:initialising distributed objects services
[2010-04-14 13:14:18,513] INFO:web-services:starting XML-RPC services, port 8069
[2010-04-14 13:14:18,513] INFO:web-services:starting NET-RPC service, port 8070
[2010-04-14 13:14:18,513] INFO:web-services:the server is running, waiting for connections...

Cordially

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#6

Hello Maxime ,

You just copy those new module in to your addons directory.If you are not provide special path then OpenERP make the directory in the Program Files directory.If The module directory is in zip format then Please do not forget to unzip those module directory.
After copying the module, If module will not come into modules list of client then restart the server again.

Thanks.

Revision history for this message
Maxime LUCE (maxime-luce) said :
#7

I already copied my module folder in the addons directory.

But it do not appear in Modules List. It's why I post the question.

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#8

Hello Maxime ,

Can you please tell me where you did copy the module (exact path)?

Thanks.

Revision history for this message
Maxime LUCE (maxime-luce) said :
#9

/usr/lib/openerp-server/addons/

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#10

Hello,

Are you sure you copied module into addons path where your server is connecting. May be your server is start with another path otherwise i don't think this type of problem occure.
If you really not getting module in existing created database then try to create new database and check if module come into module list.The path is correct otherwise something get wrong in the path.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Maxime LUCE for more information if necessary.

To post a message you must log in.