In Python 3, the following error occurs when arlpy is imported:
>>> import arlpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arl/anaconda3/lib/python3.6/site-packages/arlpy/__init__.py", line 14, in <module> import geo ModuleNotFoundError: No module named 'geo' .
Since Python 3 does not allow implicit relative import, we can replace
import geo import uwa import utils import comms import signal
in __init__.py with
from arlpy import geo, uwa, utils, comms, signal ,
In Python 3, the following error occurs when arlpy is imported:
>>> import arlpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arl/anaconda3/lib/python3.6/site-packages/arlpy/__init__.py", line 14, in <module> import geo ModuleNotFoundError: No module named 'geo'
.Since Python 3 does not allow implicit relative import, we can replace
import geo import uwa import utils import comms import signal
in
__init__.py
withfrom arlpy import geo, uwa, utils, comms, signal
,and
from signal import time as _time
in
comms.py
withfrom arlpy.signal import time as _time
.The changes are due to the fact that absolute imports are recommended by Python developers. (https://www.python.org/dev/peps/pep-0008/#imports)