Open yuquanle opened 6 years ago
TextTeaser is not a typical "PyPi" style Python package...you need to import it from its local path.
This error was caused by the conflict of importing directories. I found a possible solution:
site-packages/textteaser/__init__.py
, replace from textteaser import TextTeaser
with from textteaser.textteaser import TextTeaser
. site-packages/textteaser/textteaser.py
, replace from . import exceptions
with import exceptions
, also replace from . import urls
with import urls
.It works for me. Hope it helps. (btw I could not find where to access the apiKey properly)
I use :pip install textteaser in window. The install is success. when i run the demo code. I have encounter the error as follow: ImportError: cannot import name 'TextTeaser'
best wish yuquanle