I have installed the geotext module from pip.
However this line:
from geotext import GeoText
produces this error:
ImportError: cannot import name 'GeoText'
The module structure is as follows:
where there is no sub directory but directly the geotext python file containing the GeoText class:
The correct syntax of "from module import Class" is used in the
__init__.py
file too.
from geotext import GeoText
Could anyone help me interpret as to why the error could be generated in such a scenario where there seems to be no circular imports?