Skip to Content
Menu
This question has been flagged
1 Reply
3804 Views

I cannot recall exactly which Ubuntu update make this happen. Last year I use to produce EOY reports and everything works fine. Now I need to produce 1st quarter report to excel and this error showed up.

I have tried update the python3 but it seems no update or so. I don't know what to do so I can export to excel again.


I run on Ubuntu version 18.04.4 LTS (Bionic Beaver)

The odoo version 13.0-20200219 (Community Edition)


This is what I got in the odoo.log

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 270, in run_wsgi

    execute(self.server.app)

  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 258, in execute

    application_iter = app(environ, start_response)

  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 439, in app

    return self.app(e, s)

  File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 142, in application

    return application_unproxied(environ, start_response)

  File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 117, in application_unproxied

    result = odoo.http.root(environ, start_response)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1287, in __call__

    return self.dispatch(environ, start_response)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1257, in __call__

    return self.app(environ, start_wrapped)

  File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 766, in __call__

    return self.app(environ, start_response)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1457, in dispatch

    result = ir_http._dispatch()

  File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch

    return super(Http, cls)._dispatch()

  File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch

    return super(IrHttp, cls)._dispatch()

  File "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 29, in _dispatch

    response = super(IrHttp, cls)._dispatch()

  File "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 519, in _dispatch

    result = super(IrHttp, cls)._dispatch()

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 233, in _dispatch

    return cls._handle_exception(e)

  File "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 34, in _handle_exception

    response = super(IrHttp, cls)._handle_exception(exc)

  File "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 610, in _handle_exception

    return super(IrHttp, cls)._handle_exception(exception)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 201, in _handle_exception

    return request._handle_exception(exception)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 750, in _handle_exception

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 229, in _dispatch

    result = request.dispatch()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 809, in dispatch

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function

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

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/pivot.py", line 22, in export_xls

    workbook = xlwt.Workbook()

AttributeError: 'NoneType' object has no attribute 'Workbook' - - -

Avatar
Discard
Best Answer

Did you Fix this problem?

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 24
467
2
Jul 23
2529
1
Nov 22
1507
7
Jan 24
13937
0
Mar 17
2351