Hi@akhtar,
I think you got this error because of incompatible versions of tflearn and tensorflow in your system. To avoid this error you can remove tensorflow and tflearn packages and install the latest version.
$ pip uninstall tflearn
$ pip uninstall tensorflow
$ pip install -I tensorflow
$ pip install -I tflearn
Hope this will help.