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

UPS Fed-Ex Modules Odoo 9 Enterprise

By
Vincenzo
on 11/22/15, 8:17 PM 1,002 views

I have installed the ups and fed-ex modules and configured them however when trying to get a price, I receive this error.


Traceback (most recent call last):

File "/var/opt/odoo/enterprise/openerp/http.py", line 599, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/var/opt/odoo/enterprise/openerp/http.py", line 636, in dispatch

result = self._call_function(**self.params)

File "/var/opt/odoo/enterprise/openerp/http.py", line 315, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/http.py", line 308, in checked_call

result = self.endpoint(*a, **kw)

File "/var/opt/odoo/enterprise/openerp/http.py", line 887, in __call__

return self.method(*args, **kw)

File "/var/opt/odoo/enterprise/openerp/http.py", line 465, in response_wrap

response = f(*args, **kw)

File "/var/opt/odoo/enterprise/openerp/addons/web/controllers/main.py", line 965, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/var/opt/odoo/enterprise/openerp/addons/web/controllers/main.py", line 957, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/api.py", line 232, in wrapper

return old_api(self, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/api.py", line 354, in old_api

result = method(recs, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/addons/mail/models/mail_thread.py", line 276, in write

result = super(MailThread, self).write(values)

File "/var/opt/odoo/enterprise/openerp/api.py", line 230, in wrapper

return new_api(self, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/models.py", line 3817, in write

self._write(old_vals)

File "/var/opt/odoo/enterprise/openerp/api.py", line 230, in wrapper

return new_api(self, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/api.py", line 547, in new_api

result = method(self._model, cr, uid, self.ids, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/models.py", line 4077, in _write

recs.recompute()

File "/var/opt/odoo/enterprise/openerp/api.py", line 230, in wrapper

return new_api(self, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/models.py", line 5797, in recompute

vals = rec._convert_to_write({n: rec[n] for n in ns})

File "/var/opt/odoo/enterprise/openerp/models.py", line 5797, in <dictcomp>

vals = rec._convert_to_write({n: rec[n] for n in ns})

File "/var/opt/odoo/enterprise/openerp/models.py", line 5684, in __getitem__

return self._fields[key].__get__(self, type(self))

File "/var/opt/odoo/enterprise/openerp/fields.py", line 807, in __get__

self.determine_value(record)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 889, in determine_value

self.compute_value(recs)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 869, in compute_value

self._compute_value(records)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 859, in _compute_value

getattr(records, self.compute)()

File "/var/opt/odoo/enterprise/openerp/addons/delivery/models/sale_order.py", line 25, in _compute_delivery_price

order.delivery_price = order.carrier_id.with_context(order_id=order.id).price

File "/var/opt/odoo/enterprise/openerp/fields.py", line 807, in __get__

self.determine_value(record)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 914, in determine_value

self.compute_value(recs)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 869, in compute_value

self._compute_value(records)

File "/var/opt/odoo/enterprise/openerp/fields.py", line 859, in _compute_value

getattr(records, self.compute)()

File "/var/opt/odoo/enterprise/openerp/api.py", line 230, in wrapper

return new_api(self, *args, **kwargs)

File "/var/opt/odoo/enterprise/openerp/api.py", line 398, in new_api

result = [method(rec, *args, **kwargs) for rec in self]

File "/var/opt/odoo/enterprise/openerp/addons/delivery/models/delivery_carrier.py", line 78, in get_price

self.price = self.get_shipping_price_from_so(order)[0]

File "/var/opt/odoo/enterprise/openerp/addons/delivery/models/delivery_carrier.py", line 111, in get_shipping_price_from_so

return getattr(self, '%s_get_shipping_price_from_so' % self.delivery_type)(orders)

File "/var/opt/odoo/enterprise/openerp/addons/delivery_fedex/models/delivery_fedex.py", line 79, in fedex_get_shipping_price_from_so

srm = FedexRequest(request_type="rating", test_mode=self.fedex_test_mode)

File "/var/opt/odoo/enterprise/openerp/addons/delivery_fedex/models/fedex_request.py", line 38, in __init__

self.start_rating_transaction(wsdl_path)

File "/var/opt/odoo/enterprise/openerp/addons/delivery_fedex/models/fedex_request.py", line 141, in start_rating_transaction

self.client = Client('file:///%s' % wsdl_path.lstrip('/'))

File "/usr/lib/python2.7/dist-packages/suds/client.py", line 112, in __init__

self.wsdl = reader.open(url)

File "/usr/lib/python2.7/dist-packages/suds/reader.py", line 152, in open

d = self.fn(url, self.options)

File "/usr/lib/python2.7/dist-packages/suds/wsdl.py", line 136, in __init__

d = reader.open(url)

File "/usr/lib/python2.7/dist-packages/suds/reader.py", line 79, in open

d = self.download(url)

File "/usr/lib/python2.7/dist-packages/suds/reader.py", line 95, in download

fp = self.options.transport.open(Request(url))

File "/usr/lib/python2.7/dist-packages/suds/transport/https.py", line 60, in open

return HttpTransport.open(self, request)

File "/usr/lib/python2.7/dist-packages/suds/transport/http.py", line 62, in open

return self.u2open(u2request)

File "/usr/lib/python2.7/dist-packages/suds/transport/http.py", line 118, in u2open

return url.open(u2request, timeout=tm)

File "/usr/lib/python2.7/urllib2.py", line 404, in open

response = self._open(req, data)

File "/usr/lib/python2.7/urllib2.py", line 422, in _open

'_open', req)

File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain

result = func(*args)

File "/usr/lib/python2.7/urllib2.py", line 1317, in file_open

return self.open_local_file(req)

File "/usr/lib/python2.7/urllib2.py", line 1357, in open_local_file

raise URLError(msg)

URLError: <urlopen error [Errno 2] No such file or directory: '/var/opt/odoo/enterprise/openerp/addons/delivery_fedex/models/../api/prod/RateService_v16.wsdl'>


Any Ideas?

Got problem too when I'm using the FedEx service. Instead, I got "FedEx server not found". I wonder if this comes from the delivery_fedex itself.

Dharma Saputro
on 11/22/15, 8:55 PM

I am getting this error for both the UPS, and the Fed-Ex. I am thinking that there is a dependency that is missing, or a bug in the system.

Vincenzo
on 11/23/15, 12:26 PM
0
Asmita Chavan
On 8/17/16, 9:36 AM

What I guess is, you need to install proper suds package to rectify this error, because I was also facing the same problem in delivery_ups module.

Please try to install suds 4.0

0
Kalpana Hemnani
On 8/5/16, 5:44 AM

Few checkpoints before you start using any shipping API.

  • You must have an working internet connection

  • If you are using US shipping API, make sure your company address and customer address must be proper and of US, not of demo data.

Check above points, if still not working, do let me know.

Regards,

Kalpana Hemnani

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: 11/22/15, 8:17 PM
Seen: 1002 times
Last updated: 8/17/16, 9:36 AM