Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
weboob
weboob
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 51
    • Merge Requests 51
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • weboob
  • weboobweboob
  • Issues
  • #212

Closed
Open
Opened Jan 25, 2019 by Yves K@yk
  • Report abuse
  • New issue
Report abuse New issue

[parceloob][DHL] Parceloob._do_complete AttributeError: 'NoneType' object has no attribute 'get_tracking_info'

% parceloob -a info <parcel_id>
Debug data will be saved in this directory: /tmp/weboob_session_6WtnwP
2019-01-25 16:50:28,171:DEBUG:root:1.5:yamlconfig.py:61:load Loading application configuration file: /home/weboob/.config/weboob/parceloob.storage.
2019-01-25 16:50:28,202:DEBUG:root:1.5:yamlconfig.py:65:load Application configuration file loaded: /home/weboob/.config/weboob/parceloob.storage.
2019-01-25 16:50:28,692:DEBUG:modules:1.5:modules.py:163:load_module Loaded module "colissimo" from /home/weboob/.local/share/weboob/modules/1.5/colissimo
2019-01-25 16:50:28,692:DEBUG:backend:1.5:modules.py:94:create_instance Created backend "colissimo" for module "colissimo"
2019-01-25 16:50:28,719:DEBUG:modules:1.5:modules.py:163:load_module Loaded module "gls" from /home/weboob/.local/share/weboob/modules/1.5/gls
2019-01-25 16:50:28,719:DEBUG:backend:1.5:modules.py:94:create_instance Created backend "gls" for module "gls"
2019-01-25 16:50:28,720:DEBUG:modules:1.5:modules.py:163:load_module Loaded module "relaiscolis" from /home/weboob/.local/share/weboob/modules/1.5/relaiscolis
2019-01-25 16:50:28,720:DEBUG:backend:1.5:modules.py:94:create_instance Created backend "relaiscolis" for module "relaiscolis"
2019-01-25 16:50:28,731:DEBUG:modules:1.5:modules.py:163:load_module Loaded module "dhl" from /home/weboob/.local/share/weboob/modules/1.5/dhl
2019-01-25 16:50:28,731:DEBUG:backend:1.5:modules.py:94:create_instance Created backend "dhl" for module "dhl"
2019-01-25 16:50:28,736:DEBUG:bcall:1.5:bcall.py:92:backend_process <Backend u'relaiscolis'>: Calling function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>>
2019-01-25 16:50:28,736:DEBUG:bcall:1.5:bcall.py:98:backend_process <Backend u'relaiscolis'>: Called function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>> raised an error: ParcelNotFound(u'Tracking number must be 10, 12 or 14 characters long.',)
2019-01-25 16:50:28,736:DEBUG:bcall:1.5:bcall.py:92:backend_process <Backend u'colissimo'>: Calling function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>>
2019-01-25 16:50:28,737:DEBUG:bcall:1.5:bcall.py:92:backend_process <Backend u'gls'>: Calling function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>>
2019-01-25 16:50:28,737:DEBUG:bcall:1.5:bcall.py:98:backend_process <Backend u'colissimo'>: Called function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>> raised an error: ParcelNotFound(u"Colissimo ID's must have 13 print character",)
2019-01-25 16:50:28,737:DEBUG:bcall:1.5:bcall.py:92:backend_process <Backend u'dhl'>: Calling function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>>
2019-01-25 16:50:28,738:DEBUG:urllib3.util.retry:1.5:retry.py:210:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2019-01-25 16:50:28,739:DEBUG:bcall:1.5:bcall.py:98:backend_process <Backend u'dhl'>: Called function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>> raised an error: AttributeError("'NoneType' object has no attribute 'get_tracking_info'",)
2019-01-25 16:50:28,740:DEBUG:urllib3.util.retry:1.5:retry.py:210:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
2019-01-25 16:50:28,743:DEBUG:urllib3.connectionpool:1.5:connectionpool.py:813:_new_conn Starting new HTTPS connection (1): gls-group.eu:443
2019-01-25 16:50:33,894:DEBUG:urllib3.connectionpool:1.5:connectionpool.py:393:_make_request https://gls-group.eu:443 "GET /app/service/open/rest/EU/en/rstt001?match=<parcel_id> HTTP/1.1" 404 None
2019-01-25 16:50:33,913:INFO:backend.gls.browser:1.5:browsers.py:195:save_response Response saved to /tmp/weboob_session_6WtnwP/gls/01-404-rstt001.json
2019-01-25 16:50:33,913:DEBUG:bcall:1.5:bcall.py:98:backend_process <Backend u'gls'>: Called function <bound method Parceloob._do_complete of <weboob.applications.parceloob.parceloob.Parceloob object at 0x7efe273704d0>> raised an error: ParcelNotFound(u'No such ID: <parcel_id>',)
Error(colissimo): Colissimo ID's must have 13 print character
Error(relaiscolis): Tracking number must be 10, 12 or 14 characters long.
Bug(dhl): 'NoneType' object has no attribute 'get_tracking_info'
(If --auto-update is passed on the command-line, new versions of the module will be checked automatically)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/weboob/core/bcall.py", line 94, in backend_process
    result = function(backend, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/weboob/tools/application/base.py", line 310, in _do_complete
    res = getattr(backend, function)(*args, **kwargs)
  File "/home/weboob/.local/share/weboob/modules/1.5/dhl/module.py", line 55, in get_parcel_tracking
    return self.browser.get_tracking_info(id)
AttributeError: 'NoneType' object has no attribute 'get_tracking_info'

Error(gls): No such ID: <parcel_id>
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: weboob/weboob#212