I have a package written in Python 2, and I am trying to retrofit to work with Python 3. It's been painful to say the least. I have an issue using the future absolute_import part of the code.
This works in Python 2 but not Python 3, so I'm hoping someone can point out my issue.
The package structure is:
fusion
-> __init__.py
agol
-> featureservice.py
-> layer.py
The fusion init is defined as:
from __future__ import absolute_import
from . import agol
The agol sub package is defined as:
from __future__ import absolute_import
from . import featureservice
from . import layer
The featureservice.py has this import, where the issue is: from . import layer The layer.py has a similar import: from . import featureservice
They each can reference each other where the layer could be a child of feature service. But I get this import issue, what is the proper way to import this module into each py file?
Thank you