We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
install error
### New Issue Checklist

- [ ]ImportError: No module named progressbar

### Issue Description

 when i use the command pip install -e .,error occurs as 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/dega/Downloads/degawong/tensorflow/tensorlayer/setup.py", line 18, in <module>
        from tensorlayer import (
      File "tensorlayer/__init__.py", line 14, in <module>
        from . import files
      File "tensorlayer/files.py", line 12, in <module>
        import progressbar
    ImportError: No module named progressbar
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/.../tensorflow/tensorlayer/

but if i use import progressbar,it works well and get current screen picture
someone helps me,thanks

### Reproducible Code

- ubuntu 17.10

[INSERT CODE HERE]

```python
pip install -e .




--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 import os
3 import codecs
4 
5 try:
6     from setuptools import (
7         setup,
8         find_packages
9     )
10 
11 except ImportError:
12     from distutils.core import (
13         setup,
14         find_packages
15     )
16 
17 
18 from tensorlayer import (
19     __contact_emails__,
20     __contact_names__,
21     __description__,
22     __download_url__,
23     __homepage__,
24     __keywords__,
25     __license__,
26     __package_name__,
27     __repository_url__,
28     __version__
29 )
30 
31 
32 # =================== Reading Readme file as TXT files ===================
33 
34 if os.path.exists('README.rst'):
35     # codec is used for consistent encoding
36     long_description = codecs.open(
37         os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst'),
38         'r', 'utf-8'
39     ).read()
40 
41 else:
42     long_description = 'See ' + __homepage__
43 
44 # ======================= Reading Requirements files as TXT files =======================
45 
46 def req_file(filename):
47     with open(filename) as f:
48         content = f.readlines()
49     # you may also want to remove whitespace characters
50     # Example: `\n` at the end of each line
51     return [x.strip() for x in content]
52 
53 # ======================= Defining the requirements var =======================
54 
55 install_requires = req_file("requirements.txt")
56 
57 extras_require = {
58     'tf_cpu': ['tensorflow>=1.8.0,<1.9'],
59     'tf_gpu': ['tensorflow-gpu>=1.8.0,<1.9'],
60 	'dev': req_file("requirements_dev.txt"),
61 	'doc': req_file("docs/requirements.txt"),
62 	'test': req_file("tests/requirements.txt")
63 }
64 
65 # Readthedocs requires TF 1.5.0 to build properly
66 if os.environ.get('READTHEDOCS', None) == 'True':
67     install_requires.append("tensorflow==1.5.0")
68 
69 # ======================= Define the package setup =======================
70 
71 setup(
72     name=__package_name__,
73 
74     # Versions should comply with PEP440.  For a discussion on single-sourcing
75     # the version across setup.py and the project code, see
76     # https://packaging.python.org/en/latest/single_source_version.html
77     version=__version__,
78 
79     description=__description__,
80     long_description=long_description,
81 
82     # The project's main homepage.
83     url=__repository_url__,
84     download_url=__download_url__,
85 
86     # Author details
87     author=__contact_names__,
88     author_email=__contact_emails__,
89 
90     # maintainer Details
91     maintainer=__contact_names__,
92     maintainer_email=__contact_emails__,
93 
94     # The licence under which the project is released
95     license=__license__,
96 
97     classifiers=[
98         # How mature is this project? Common values are
99         #  1 - Planning
100         #  2 - Pre-Alpha
101         #  3 - Alpha
102         #  4 - Beta
103         #  5 - Production/Stable
104         #  6 - Mature
105         #  7 - Inactive
106         'Development Status :: 5 - Production/Stable',
107 
108         # Indicate who your project is intended for
109         'Intended Audience :: Developers',
110         'Intended Audience :: Science/Research',
111         'Intended Audience :: Information Technology',
112 
113         # Indicate what your project relates to
114         'Topic :: Scientific/Engineering',
115         'Topic :: Scientific/Engineering :: Image Recognition',
116         'Topic :: Scientific/Engineering :: Artificial Intelligence',
117         'Topic :: Software Development :: Libraries',
118         'Topic :: Utilities',
119 
120         # Pick your license as you wish (should match "license" above)
121         'License :: OSI Approved :: Apache Software License',
122 
123         # Specify the Python versions you support here. In particular, ensure
124         # that you indicate whether you support Python 2, Python 3 or both.
125         'Programming Language :: Python :: 2',
126         'Programming Language :: Python :: 2.7',
127         'Programming Language :: Python :: 3',
128         'Programming Language :: Python :: 3.4',
129         'Programming Language :: Python :: 3.5',
130         'Programming Language :: Python :: 3.6',
131 
132         # Additionnal Settings
133         'Environment :: Console',
134         'Natural Language :: English',
135         'Operating System :: OS Independent',
136     ],
137 
138     keywords=__keywords__,
139     packages=find_packages(),
140 
141     # List run-time dependencies here.  These will be installed by pip when
142     # your project is installed. For an analysis of "install_requires" vs pip's
143     # requirements files see:
144     # https://packaging.python.org/en/latest/requirements.html
145     install_requires=install_requires,
146 
147     # List additional groups of dependencies here (e.g. development
148     # dependencies). You can install these using the following syntax,
149     # $ pip install -e .[test]
150     extras_require=extras_require,
151     scripts=[
152         'tl',
153     ],
154     platform=['any'],
155 )
156
```

Path: `tensorlayer/__init__.py`
Content:
```
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """Deep learning and Reinforcement learning library for Researchers and Engineers"""
4 from __future__ import absolute_import
5 
6 import pkg_resources
7 installed_packages = [d for d in pkg_resources.working_set]
8 
9 TF_is_installed = False
10 TL_is_installed = False
11 
12 for package in installed_packages:
13     if 'tensorflow' in package.project_name:
14         TF_is_installed = True
15     if 'tensorlayer' in package.project_name and 'site-packages' in package.location:
16         TL_is_installed = True
17 
18 if TF_is_installed:  # The tensorlayer package is installed
19     import tensorflow
20 
21     from . import activation
22     from . import cost
23     from . import files
24     from . import iterate
25     from . import layers
26     from . import models
27     from . import utils
28     from . import visualize
29     from . import prepro
30     from . import nlp
31     from . import rein
32     from . import distributed
33 
34     # alias
35     act = activation
36     vis = visualize
37 
38     global_flag = {}
39     global_dict = {}
40 
41 elif TL_is_installed:
42     install_instr = "Please make sure you install a recent enough version of TensorFlow."
43     raise ImportError("__init__.py : Could not import TensorFlow. {}".format(install_instr))
44 
45 # Use the following formating: (major, minor, patch, prerelease)
46 VERSION = (1, 8, 5, 'rc2')
47 __shortversion__ = '.'.join(map(str, VERSION[:3]))
48 __version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:])
49 
50 __package_name__ = 'tensorlayer'
51 __contact_names__ = 'TensorLayer Contributors'
52 __contact_emails__ = 'hao.dong11@imperial.ac.uk'
53 __homepage__ = 'http://tensorlayer.readthedocs.io/en/latest/'
54 __repository_url__ = 'https://github.com/tensorlayer/tensorlayer'
55 __download_url__ = 'https://github.com/tensorlayer/tensorlayer'
56 __description__ = 'Reinforcement Learning and Deep Learning Library for Researcher and Engineer.'
57 __license__ = 'apache'
58 __keywords__ = 'deep learning, machine learning, computer vision, nlp, supervised learning, unsupervised learning, reinforcement learning, tensorflow'
59
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,7 @@
 extras_require = {
     'tf_cpu': ['tensorflow>=1.8.0,<1.9'],
     'tf_gpu': ['tensorflow-gpu>=1.8.0,<1.9'],
+	'db': req_file("requirements_db.txt"),
 	'dev': req_file("requirements_dev.txt"),
 	'doc': req_file("docs/requirements.txt"),
 	'test': req_file("tests/requirements.txt")
diff --git a/tensorlayer/__init__.py b/tensorlayer/__init__.py
--- a/tensorlayer/__init__.py
+++ b/tensorlayer/__init__.py
@@ -3,19 +3,7 @@
 """Deep learning and Reinforcement learning library for Researchers and Engineers"""
 from __future__ import absolute_import
 
-import pkg_resources
-installed_packages = [d for d in pkg_resources.working_set]
-
-TF_is_installed = False
-TL_is_installed = False
-
-for package in installed_packages:
-    if 'tensorflow' in package.project_name:
-        TF_is_installed = True
-    if 'tensorlayer' in package.project_name and 'site-packages' in package.location:
-        TL_is_installed = True
-
-if TF_is_installed:  # The tensorlayer package is installed
+try:
     import tensorflow
 
     from . import activation
@@ -38,9 +26,14 @@
     global_flag = {}
     global_dict = {}
 
-elif TL_is_installed:
-    install_instr = "Please make sure you install a recent enough version of TensorFlow."
-    raise ImportError("__init__.py : Could not import TensorFlow. {}".format(install_instr))
+except Exception as e:
+
+    import pkg_resources
+    installed_packages = [d for d in pkg_resources.working_set]
+
+    for package in installed_packages:
+        if 'tensorlayer' in package.project_name and 'site-packages' in package.location:
+            raise ImportError("__init__.py : Could not import TensorLayer.\nError: {}".format(e))
 
 # Use the following formating: (major, minor, patch, prerelease)
 VERSION = (1, 8, 5, 'rc2')

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -57,6 +57,7 @@\n extras_require = {\n     'tf_cpu': ['tensorflow>=1.8.0,<1.9'],\n     'tf_gpu': ['tensorflow-gpu>=1.8.0,<1.9'],\n+\t'db': req_file(\"requirements_db.txt\"),\n \t'dev': req_file(\"requirements_dev.txt\"),\n \t'doc': req_file(\"docs/requirements.txt\"),\n \t'test': req_file(\"tests/requirements.txt\")\ndiff --git a/tensorlayer/__init__.py b/tensorlayer/__init__.py\n--- a/tensorlayer/__init__.py\n+++ b/tensorlayer/__init__.py\n@@ -3,19 +3,7 @@\n \"\"\"Deep learning and Reinforcement learning library for Researchers and Engineers\"\"\"\n from __future__ import absolute_import\n \n-import pkg_resources\n-installed_packages = [d for d in pkg_resources.working_set]\n-\n-TF_is_installed = False\n-TL_is_installed = False\n-\n-for package in installed_packages:\n-    if 'tensorflow' in package.project_name:\n-        TF_is_installed = True\n-    if 'tensorlayer' in package.project_name and 'site-packages' in package.location:\n-        TL_is_installed = True\n-\n-if TF_is_installed:  # The tensorlayer package is installed\n+try:\n     import tensorflow\n \n     from . import activation\n@@ -38,9 +26,14 @@\n     global_flag = {}\n     global_dict = {}\n \n-elif TL_is_installed:\n-    install_instr = \"Please make sure you install a recent enough version of TensorFlow.\"\n-    raise ImportError(\"__init__.py : Could not import TensorFlow. {}\".format(install_instr))\n+except Exception as e:\n+\n+    import pkg_resources\n+    installed_packages = [d for d in pkg_resources.working_set]\n+\n+    for package in installed_packages:\n+        if 'tensorlayer' in package.project_name and 'site-packages' in package.location:\n+            raise ImportError(\"__init__.py : Could not import TensorLayer.\\nError: {}\".format(e))\n \n # Use the following formating: (major, minor, patch, prerelease)\n VERSION = (1, 8, 5, 'rc2')\n", "issue": "install error\n### New Issue Checklist\r\n\r\n- [ ]ImportError: No module named progressbar\r\n\r\n### Issue Description\r\n\r\n when i use the command pip install -e .,error occurs as \r\n    Complete output from command python setup.py egg_info:\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n      File \"/home/dega/Downloads/degawong/tensorflow/tensorlayer/setup.py\", line 18, in <module>\r\n        from tensorlayer import (\r\n      File \"tensorlayer/__init__.py\", line 14, in <module>\r\n        from . import files\r\n      File \"tensorlayer/files.py\", line 12, in <module>\r\n        import progressbar\r\n    ImportError: No module named progressbar\r\n    \r\n    ----------------------------------------\r\nCommand \"python setup.py egg_info\" failed with error code 1 in /home/.../tensorflow/tensorlayer/\r\n\r\nbut if i use import progressbar,it works well and get current screen picture\r\nsomeone helps me,thanks\r\n\r\n### Reproducible Code\r\n\r\n- ubuntu 17.10\r\n\r\n[INSERT CODE HERE]\r\n\r\n```python\r\npip install -e .\r\n\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\nimport os\nimport codecs\n\ntry:\n    from setuptools import (\n        setup,\n        find_packages\n    )\n\nexcept ImportError:\n    from distutils.core import (\n        setup,\n        find_packages\n    )\n\n\nfrom tensorlayer import (\n    __contact_emails__,\n    __contact_names__,\n    __description__,\n    __download_url__,\n    __homepage__,\n    __keywords__,\n    __license__,\n    __package_name__,\n    __repository_url__,\n    __version__\n)\n\n\n# =================== Reading Readme file as TXT files ===================\n\nif os.path.exists('README.rst'):\n    # codec is used for consistent encoding\n    long_description = codecs.open(\n        os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst'),\n        'r', 'utf-8'\n    ).read()\n\nelse:\n    long_description = 'See ' + __homepage__\n\n# ======================= Reading Requirements files as TXT files =======================\n\ndef req_file(filename):\n    with open(filename) as f:\n        content = f.readlines()\n    # you may also want to remove whitespace characters\n    # Example: `\\n` at the end of each line\n    return [x.strip() for x in content]\n\n# ======================= Defining the requirements var =======================\n\ninstall_requires = req_file(\"requirements.txt\")\n\nextras_require = {\n    'tf_cpu': ['tensorflow>=1.8.0,<1.9'],\n    'tf_gpu': ['tensorflow-gpu>=1.8.0,<1.9'],\n\t'dev': req_file(\"requirements_dev.txt\"),\n\t'doc': req_file(\"docs/requirements.txt\"),\n\t'test': req_file(\"tests/requirements.txt\")\n}\n\n# Readthedocs requires TF 1.5.0 to build properly\nif os.environ.get('READTHEDOCS', None) == 'True':\n    install_requires.append(\"tensorflow==1.5.0\")\n\n# ======================= Define the package setup =======================\n\nsetup(\n    name=__package_name__,\n\n    # Versions should comply with PEP440.  For a discussion on single-sourcing\n    # the version across setup.py and the project code, see\n    # https://packaging.python.org/en/latest/single_source_version.html\n    version=__version__,\n\n    description=__description__,\n    long_description=long_description,\n\n    # The project's main homepage.\n    url=__repository_url__,\n    download_url=__download_url__,\n\n    # Author details\n    author=__contact_names__,\n    author_email=__contact_emails__,\n\n    # maintainer Details\n    maintainer=__contact_names__,\n    maintainer_email=__contact_emails__,\n\n    # The licence under which the project is released\n    license=__license__,\n\n    classifiers=[\n        # How mature is this project? Common values are\n        #  1 - Planning\n        #  2 - Pre-Alpha\n        #  3 - Alpha\n        #  4 - Beta\n        #  5 - Production/Stable\n        #  6 - Mature\n        #  7 - Inactive\n        'Development Status :: 5 - Production/Stable',\n\n        # Indicate who your project is intended for\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'Intended Audience :: Information Technology',\n\n        # Indicate what your project relates to\n        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Image Recognition',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Utilities',\n\n        # Pick your license as you wish (should match \"license\" above)\n        'License :: OSI Approved :: Apache Software License',\n\n        # Specify the Python versions you support here. In particular, ensure\n        # that you indicate whether you support Python 2, Python 3 or both.\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n\n        # Additionnal Settings\n        'Environment :: Console',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n    ],\n\n    keywords=__keywords__,\n    packages=find_packages(),\n\n    # List run-time dependencies here.  These will be installed by pip when\n    # your project is installed. For an analysis of \"install_requires\" vs pip's\n    # requirements files see:\n    # https://packaging.python.org/en/latest/requirements.html\n    install_requires=install_requires,\n\n    # List additional groups of dependencies here (e.g. development\n    # dependencies). You can install these using the following syntax,\n    # $ pip install -e .[test]\n    extras_require=extras_require,\n    scripts=[\n        'tl',\n    ],\n    platform=['any'],\n)\n", "path": "setup.py"}, {"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Deep learning and Reinforcement learning library for Researchers and Engineers\"\"\"\nfrom __future__ import absolute_import\n\nimport pkg_resources\ninstalled_packages = [d for d in pkg_resources.working_set]\n\nTF_is_installed = False\nTL_is_installed = False\n\nfor package in installed_packages:\n    if 'tensorflow' in package.project_name:\n        TF_is_installed = True\n    if 'tensorlayer' in package.project_name and 'site-packages' in package.location:\n        TL_is_installed = True\n\nif TF_is_installed:  # The tensorlayer package is installed\n    import tensorflow\n\n    from . import activation\n    from . import cost\n    from . import files\n    from . import iterate\n    from . import layers\n    from . import models\n    from . import utils\n    from . import visualize\n    from . import prepro\n    from . import nlp\n    from . import rein\n    from . import distributed\n\n    # alias\n    act = activation\n    vis = visualize\n\n    global_flag = {}\n    global_dict = {}\n\nelif TL_is_installed:\n    install_instr = \"Please make sure you install a recent enough version of TensorFlow.\"\n    raise ImportError(\"__init__.py : Could not import TensorFlow. {}\".format(install_instr))\n\n# Use the following formating: (major, minor, patch, prerelease)\nVERSION = (1, 8, 5, 'rc2')\n__shortversion__ = '.'.join(map(str, VERSION[:3]))\n__version__ = '.'.join(map(str, VERSION[:3])) + \"\".join(VERSION[3:])\n\n__package_name__ = 'tensorlayer'\n__contact_names__ = 'TensorLayer Contributors'\n__contact_emails__ = 'hao.dong11@imperial.ac.uk'\n__homepage__ = 'http://tensorlayer.readthedocs.io/en/latest/'\n__repository_url__ = 'https://github.com/tensorlayer/tensorlayer'\n__download_url__ = 'https://github.com/tensorlayer/tensorlayer'\n__description__ = 'Reinforcement Learning and Deep Learning Library for Researcher and Engineer.'\n__license__ = 'apache'\n__keywords__ = 'deep learning, machine learning, computer vision, nlp, supervised learning, unsupervised learning, reinforcement learning, tensorflow'\n", "path": "tensorlayer/__init__.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport os\nimport codecs\n\ntry:\n    from setuptools import (\n        setup,\n        find_packages\n    )\n\nexcept ImportError:\n    from distutils.core import (\n        setup,\n        find_packages\n    )\n\n\nfrom tensorlayer import (\n    __contact_emails__,\n    __contact_names__,\n    __description__,\n    __download_url__,\n    __homepage__,\n    __keywords__,\n    __license__,\n    __package_name__,\n    __repository_url__,\n    __version__\n)\n\n\n# =================== Reading Readme file as TXT files ===================\n\nif os.path.exists('README.rst'):\n    # codec is used for consistent encoding\n    long_description = codecs.open(\n        os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst'),\n        'r', 'utf-8'\n    ).read()\n\nelse:\n    long_description = 'See ' + __homepage__\n\n# ======================= Reading Requirements files as TXT files =======================\n\ndef req_file(filename):\n    with open(filename) as f:\n        content = f.readlines()\n    # you may also want to remove whitespace characters\n    # Example: `\\n` at the end of each line\n    return [x.strip() for x in content]\n\n# ======================= Defining the requirements var =======================\n\ninstall_requires = req_file(\"requirements.txt\")\n\nextras_require = {\n    'tf_cpu': ['tensorflow>=1.8.0,<1.9'],\n    'tf_gpu': ['tensorflow-gpu>=1.8.0,<1.9'],\n\t'db': req_file(\"requirements_db.txt\"),\n\t'dev': req_file(\"requirements_dev.txt\"),\n\t'doc': req_file(\"docs/requirements.txt\"),\n\t'test': req_file(\"tests/requirements.txt\")\n}\n\n# Readthedocs requires TF 1.5.0 to build properly\nif os.environ.get('READTHEDOCS', None) == 'True':\n    install_requires.append(\"tensorflow==1.5.0\")\n\n# ======================= Define the package setup =======================\n\nsetup(\n    name=__package_name__,\n\n    # Versions should comply with PEP440.  For a discussion on single-sourcing\n    # the version across setup.py and the project code, see\n    # https://packaging.python.org/en/latest/single_source_version.html\n    version=__version__,\n\n    description=__description__,\n    long_description=long_description,\n\n    # The project's main homepage.\n    url=__repository_url__,\n    download_url=__download_url__,\n\n    # Author details\n    author=__contact_names__,\n    author_email=__contact_emails__,\n\n    # maintainer Details\n    maintainer=__contact_names__,\n    maintainer_email=__contact_emails__,\n\n    # The licence under which the project is released\n    license=__license__,\n\n    classifiers=[\n        # How mature is this project? Common values are\n        #  1 - Planning\n        #  2 - Pre-Alpha\n        #  3 - Alpha\n        #  4 - Beta\n        #  5 - Production/Stable\n        #  6 - Mature\n        #  7 - Inactive\n        'Development Status :: 5 - Production/Stable',\n\n        # Indicate who your project is intended for\n        'Intended Audience :: Developers',\n        'Intended Audience :: Science/Research',\n        'Intended Audience :: Information Technology',\n\n        # Indicate what your project relates to\n        'Topic :: Scientific/Engineering',\n        'Topic :: Scientific/Engineering :: Image Recognition',\n        'Topic :: Scientific/Engineering :: Artificial Intelligence',\n        'Topic :: Software Development :: Libraries',\n        'Topic :: Utilities',\n\n        # Pick your license as you wish (should match \"license\" above)\n        'License :: OSI Approved :: Apache Software License',\n\n        # Specify the Python versions you support here. In particular, ensure\n        # that you indicate whether you support Python 2, Python 3 or both.\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n\n        # Additionnal Settings\n        'Environment :: Console',\n        'Natural Language :: English',\n        'Operating System :: OS Independent',\n    ],\n\n    keywords=__keywords__,\n    packages=find_packages(),\n\n    # List run-time dependencies here.  These will be installed by pip when\n    # your project is installed. For an analysis of \"install_requires\" vs pip's\n    # requirements files see:\n    # https://packaging.python.org/en/latest/requirements.html\n    install_requires=install_requires,\n\n    # List additional groups of dependencies here (e.g. development\n    # dependencies). You can install these using the following syntax,\n    # $ pip install -e .[test]\n    extras_require=extras_require,\n    scripts=[\n        'tl',\n    ],\n    platform=['any'],\n)\n", "path": "setup.py"}, {"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Deep learning and Reinforcement learning library for Researchers and Engineers\"\"\"\nfrom __future__ import absolute_import\n\ntry:\n    import tensorflow\n\n    from . import activation\n    from . import cost\n    from . import files\n    from . import iterate\n    from . import layers\n    from . import models\n    from . import utils\n    from . import visualize\n    from . import prepro\n    from . import nlp\n    from . import rein\n    from . import distributed\n\n    # alias\n    act = activation\n    vis = visualize\n\n    global_flag = {}\n    global_dict = {}\n\nexcept Exception as e:\n\n    import pkg_resources\n    installed_packages = [d for d in pkg_resources.working_set]\n\n    for package in installed_packages:\n        if 'tensorlayer' in package.project_name and 'site-packages' in package.location:\n            raise ImportError(\"__init__.py : Could not import TensorLayer.\\nError: {}\".format(e))\n\n# Use the following formating: (major, minor, patch, prerelease)\nVERSION = (1, 8, 5, 'rc2')\n__shortversion__ = '.'.join(map(str, VERSION[:3]))\n__version__ = '.'.join(map(str, VERSION[:3])) + \"\".join(VERSION[3:])\n\n__package_name__ = 'tensorlayer'\n__contact_names__ = 'TensorLayer Contributors'\n__contact_emails__ = 'hao.dong11@imperial.ac.uk'\n__homepage__ = 'http://tensorlayer.readthedocs.io/en/latest/'\n__repository_url__ = 'https://github.com/tensorlayer/tensorlayer'\n__download_url__ = 'https://github.com/tensorlayer/tensorlayer'\n__description__ = 'Reinforcement Learning and Deep Learning Library for Researcher and Engineer.'\n__license__ = 'apache'\n__keywords__ = 'deep learning, machine learning, computer vision, nlp, supervised learning, unsupervised learning, reinforcement learning, tensorflow'\n", "path": "tensorlayer/__init__.py"}]}