openerp-connector-community team mailing list archive
-
openerp-connector-community team
-
Mailing list archive
-
Message #00061
Re: Error:No module named connector
Hi,
Sorry to insist, but I again repeat the steps in the guide, and now the
error is different.
The error is "cannot import name PG_CONCURRENCY_ERRORS_TO_RETRY"
Do you have any branch that is working that you can provide?
Thanks
Addons_path =
home/ubuntu/openerp/v7.0/addons,/home/ubuntu/openerp/v7.0/web/addons,/home/u
buntu/openerp/v7.0/account-payment,/home/ubuntu/openerp/v7.0/fiscal-rules,/h
ome/ubuntu/openerp/v7.0/openerp-connector,/home/ubuntu/openerp/v7.0/openerp-
connector-magento,/home/ubuntu/openerp/v7.0/e-commerce-addons,/home/ubuntu/o
penerp/v7.0/sale-wkfl,/home/ubuntu/openerp/v7.0/openerp-product-attributes
LOG
2013-11-19 23:32:01,637 1840 INFO ? openerp: OpenERP version 7.0
2013-11-19 23:32:01,637 1840 INFO ? openerp: addons paths:
/home/ubuntu/openerp/v7.0/addons,/home/ubuntu/openerp/v7.0/web/addons,/home/
ubuntu/openerp/v7.0/account-payment,/home/ubuntu/openerp/v7.0/fiscal-rules,/
home/ubuntu/openerp/v7.0/openerp-connector,/home/ubuntu/openerp/v7.0/openerp
-connector-magento,/home/ubuntu/openerp/v7.0/e-commerce-addons,/home/ubuntu/
openerp/v7.0/sale-wkfl,/home/ubuntu/openerp/v7.0/openerp-product-attributes
2013-11-19 23:32:01,637 1840 INFO ? openerp: database hostname: localhost
2013-11-19 23:32:01,637 1840 INFO ? openerp: database port: 5432
2013-11-19 23:32:01,638 1840 INFO ? openerp: database user: openerp
ERROR: couldn't create the logfile directory. Logging to the standard
output.
2013-11-19 23:32:01,945 1840 WARNING ?
openerp.addons.google_docs.google_docs: Please install latest
gdata-python-client from
http://code.google.com/p/gdata-python-client/downloads/list
2013-11-19 23:32:02,167 1840 CRITICAL ? openerp.modules.module: Couldn't
load module web
2013-11-19 23:32:02,167 1840 CRITICAL ? openerp.modules.module: cannot
import name PG_CONCURRENCY_ERRORS_TO_RETRY
2013-11-19 23:32:02,167 1840 ERROR ? openerp.service: Failed to load
server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web`
project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
File "/opt/openerp/v7.0/server/openerp/service/__init__.py", line 59, in
load_server_wide_modules
openerp.modules.module.load_openerp_module(m)
File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 415, in
load_openerp_module
getattr(sys.modules['openerp.addons.' + module_name],
info['post_load'])()
File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 593, in
wsgi_postload
openerp.wsgi.register_wsgi_handler(Root())
File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 483, in
__init__
self.load_addons()
File "/home/ubuntu/openerp/v7.0/web/addons/web/http.py", line 546, in
load_addons
m = __import__('openerp.addons.' + module)
File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 133, in
load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File
"/home/ubuntu/openerp/v7.0/openerp-connector-magento/magentoerpconnect/__ini
t__.py", line 3, in <module>
import connector
File
"/home/ubuntu/openerp/v7.0/openerp-connector-magento/magentoerpconnect/conne
ctor.py", line 23, in <module>
from openerp.addons.connector.connector import (Environment,
File "/opt/openerp/v7.0/server/openerp/modules/module.py", line 133, in
load_module
mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
File "/home/ubuntu/openerp/v7.0/openerp-connector/connector/__init__.py",
line 4, in <module>
import queue
File
"/home/ubuntu/openerp/v7.0/openerp-connector/connector/queue/__init__.py",
line 22, in <module>
import model
File
"/home/ubuntu/openerp/v7.0/openerp-connector/connector/queue/model.py", line
31, in <module>
from .worker import WORKER_TIMEOUT
File
"/home/ubuntu/openerp/v7.0/openerp-connector/connector/queue/worker.py",
line 34, in <module>
from openerp.osv.osv import PG_CONCURRENCY_ERRORS_TO_RETRY
ImportError: cannot import name PG_CONCURRENCY_ERRORS_TO_RETRY
2013-11-19 23:32:02,169 1840 INFO ? openerp.service.netrpc_server: starting
NET-RPC service on 0.0.0.0:8070
2013-11-19 23:32:02,170 1840 INFO ? openerp.service.wsgi_server: HTTP
service (werkzeug) running on 0.0.0.0:8069
2013-11-19 23:32:02,171 1840 INFO ? openerp: OpenERP server is running,
waiting for connections...
Best Regards,
CM
-----Mensagem original-----
De: Guewen Baconnier [mailto:guewen.baconnier@xxxxxxxxxxxxxx]
Enviada: terça-feira, 19 de Novembro de 2013 14:18
Para: Carlos Marques
Cc: openerp-connector-community@xxxxxxxxxxxxxxxxxxx
Assunto: Re: [Openerp-connector-community] Error:No module named connector
On 11/19/2013 03:09 PM, Carlos Marques wrote:
> Thanks Guewen,
> I've created all branches as mentioned on the thread. After that, I
> created inside the addons folder a new folder called magento, and
> copied all the sub-folders for each branch within the magento folder,
> and it did not work.
> The current pathis:
>
> addons_path =
> /home/ubuntu/openerp/v7.0/addons,/home/ubuntu/openerp/v7.0/web/addons,
> /home/ubuntu/openerp/v7.0/account-payment,/home/ubuntu/openerp/v7.0/fi
> scal-rules,/home/ubuntu/openerp/v7.0/addons/magento
>
> Best Regards
>
> CM
>
>
You need to refer to each individual branches in the addons_path, it does
not search for sub-directories. The connector addons are just standard
addons, they are handled the same ways (like you did for "fiscal-rules"
probably).
Example:
addons_path =
/home/ubuntu/openerp/v7.0/addons,/home/ubuntu/openerp/v7.0/web/addons,/home/
ubuntu/openerp/v7.0/account-payment,/home/ubuntu/openerp/v7.0/fiscal-rules,/
home/ubuntu/openerp/v7.0/openerp-connector,/home/ubuntu/openerp/v7.0/openerp
-connector-magento,/home/ubuntu/openerp/v7.0/e-commerce-addons,/home/ubuntu/
openerp/v7.0/sale-wkfl,/home/ubuntu/openerp/v7.0/openerp-product-attributes
If you still have issues with that, I suggest you to continue the discussion
on the topic you opened on help.openerp.com:
http://help.openerp.com/question/36857/openerp-magento-connector-no-module-n
amed-connector/
Best,
--
Guewen Baconnier
Business Solutions Software Developer
Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/
Follow ups
References