try:
    VERSION = __import__('pkg_resources') \
        .get_distribution(__name__).version
except Exception as e:
    VERSION = 'unknown'

from .service import Esios

from __future__ import absolute_import    

try:
    VERSION = __import__('pkg_resources') \
        .get_distribution(__name__).version
except Exception as e:
    VERSION = 'unknown'

from .service import Esios

Enforce absolute imports through __future__
Enforce absolute imports through __future__