We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
tests fail with tensorflow 10.0rc0
One test fails with the new tensorflow pre-release, it's related to the custom-op test:

``` python
ImportError: No module named 'tensorflow.python.kernel_tests'
```

In addition, there sees to be an issue with one of the notebooks ( #161 ), I'm looking into this.


--- 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 # -*- coding: utf-8 -*-
3 from __future__ import print_function
4 from setuptools import setup
5 import re
6 import os
7 import sys
8 
9 # load version form _version.py
10 VERSIONFILE = "GPflow/_version.py"
11 verstrline = open(VERSIONFILE, "rt").read()
12 VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
13 mo = re.search(VSRE, verstrline, re.M)
14 if mo:
15     verstr = mo.group(1)
16 else:
17     raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
18 
19 # Compile the bespoke TensorFlow ops in-place. Not sure how this would work if this script wasn't executed as `develop`.
20 compile_command = "g++ -std=c++11 -shared ./GPflow/tfops/vec_to_tri.cc " \
21                   "GPflow/tfops/tri_to_vec.cc -o GPflow/tfops/matpackops.so " \
22                   "-fPIC -I $(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')"
23 if sys.platform == "darwin":
24     # Additional command for Macs, as instructed by the TensorFlow docs
25     compile_command += " -undefined dynamic_lookup"
26 os.system(compile_command)
27 
28 setup(name='GPflow',
29       version=verstr,
30       author="James Hensman, Alex Matthews",
31       author_email="james.hensman@gmail.com",
32       description=("Gaussian process methods in tensorflow"),
33       license="BSD 3-clause",
34       keywords="machine-learning gaussian-processes kernels tensorflow",
35       url="http://github.com/gpflow/gpflow",
36       ext_modules=[],
37       packages=["GPflow"],
38       package_dir={'GPflow': 'GPflow'},
39       py_modules=['GPflow.__init__'],
40       test_suite='testing',
41       install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],
42       classifiers=['License :: OSI Approved :: BSD License',
43                    'Natural Language :: English',
44                    'Operating System :: MacOS :: MacOS X',
45                    'Operating System :: Microsoft :: Windows',
46                    'Operating System :: POSIX :: Linux',
47                    'Programming Language :: Python :: 2.7',
48                    'Topic :: Scientific/Engineering :: Artificial Intelligence']
49       )
50
```

Path: `GPflow/_version.py`
Content:
```
1 # Copyright 2016 James Hensman
2 # 
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 # 
7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 
16 __version__ = "0.2.1"
17
```
--- 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/GPflow/_version.py b/GPflow/_version.py
--- a/GPflow/_version.py
+++ b/GPflow/_version.py
@@ -13,4 +13,4 @@
 # limitations under the License.
 
 
-__version__ = "0.2.1"
+__version__ = "0.3.0"
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -33,12 +33,14 @@
       license="BSD 3-clause",
       keywords="machine-learning gaussian-processes kernels tensorflow",
       url="http://github.com/gpflow/gpflow",
+      package_data={'GPflow': ['GPflow/tfops/*.so']},
+      include_package_data=True,
       ext_modules=[],
       packages=["GPflow"],
       package_dir={'GPflow': 'GPflow'},
       py_modules=['GPflow.__init__'],
       test_suite='testing',
-      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],
+      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.10.0rc0'],
       classifiers=['License :: OSI Approved :: BSD License',
                    'Natural Language :: English',
                    'Operating System :: MacOS :: MacOS X',

{"golden_diff": "diff --git a/GPflow/_version.py b/GPflow/_version.py\n--- a/GPflow/_version.py\n+++ b/GPflow/_version.py\n@@ -13,4 +13,4 @@\n # limitations under the License.\n \n \n-__version__ = \"0.2.1\"\n+__version__ = \"0.3.0\"\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -33,12 +33,14 @@\n       license=\"BSD 3-clause\",\n       keywords=\"machine-learning gaussian-processes kernels tensorflow\",\n       url=\"http://github.com/gpflow/gpflow\",\n+      package_data={'GPflow': ['GPflow/tfops/*.so']},\n+      include_package_data=True,\n       ext_modules=[],\n       packages=[\"GPflow\"],\n       package_dir={'GPflow': 'GPflow'},\n       py_modules=['GPflow.__init__'],\n       test_suite='testing',\n-      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],\n+      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.10.0rc0'],\n       classifiers=['License :: OSI Approved :: BSD License',\n                    'Natural Language :: English',\n                    'Operating System :: MacOS :: MacOS X',\n", "issue": "tests fail with tensorflow 10.0rc0\nOne test fails with the new tensorflow pre-release, it's related to the custom-op test:\n\n``` python\nImportError: No module named 'tensorflow.python.kernel_tests'\n```\n\nIn addition, there sees to be an issue with one of the notebooks ( #161 ), I'm looking into this.\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n# load version form _version.py\nVERSIONFILE = \"GPflow/_version.py\"\nverstrline = open(VERSIONFILE, \"rt\").read()\nVSRE = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\nmo = re.search(VSRE, verstrline, re.M)\nif mo:\n    verstr = mo.group(1)\nelse:\n    raise RuntimeError(\"Unable to find version string in %s.\" % (VERSIONFILE,))\n\n# Compile the bespoke TensorFlow ops in-place. Not sure how this would work if this script wasn't executed as `develop`.\ncompile_command = \"g++ -std=c++11 -shared ./GPflow/tfops/vec_to_tri.cc \" \\\n                  \"GPflow/tfops/tri_to_vec.cc -o GPflow/tfops/matpackops.so \" \\\n                  \"-fPIC -I $(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')\"\nif sys.platform == \"darwin\":\n    # Additional command for Macs, as instructed by the TensorFlow docs\n    compile_command += \" -undefined dynamic_lookup\"\nos.system(compile_command)\n\nsetup(name='GPflow',\n      version=verstr,\n      author=\"James Hensman, Alex Matthews\",\n      author_email=\"james.hensman@gmail.com\",\n      description=(\"Gaussian process methods in tensorflow\"),\n      license=\"BSD 3-clause\",\n      keywords=\"machine-learning gaussian-processes kernels tensorflow\",\n      url=\"http://github.com/gpflow/gpflow\",\n      ext_modules=[],\n      packages=[\"GPflow\"],\n      package_dir={'GPflow': 'GPflow'},\n      py_modules=['GPflow.__init__'],\n      test_suite='testing',\n      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.7.1'],\n      classifiers=['License :: OSI Approved :: BSD License',\n                   'Natural Language :: English',\n                   'Operating System :: MacOS :: MacOS X',\n                   'Operating System :: Microsoft :: Windows',\n                   'Operating System :: POSIX :: Linux',\n                   'Programming Language :: Python :: 2.7',\n                   'Topic :: Scientific/Engineering :: Artificial Intelligence']\n      )\n", "path": "setup.py"}, {"content": "# Copyright 2016 James Hensman\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n# http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\n__version__ = \"0.2.1\"\n", "path": "GPflow/_version.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\n# load version form _version.py\nVERSIONFILE = \"GPflow/_version.py\"\nverstrline = open(VERSIONFILE, \"rt\").read()\nVSRE = r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\"\nmo = re.search(VSRE, verstrline, re.M)\nif mo:\n    verstr = mo.group(1)\nelse:\n    raise RuntimeError(\"Unable to find version string in %s.\" % (VERSIONFILE,))\n\n# Compile the bespoke TensorFlow ops in-place. Not sure how this would work if this script wasn't executed as `develop`.\ncompile_command = \"g++ -std=c++11 -shared ./GPflow/tfops/vec_to_tri.cc \" \\\n                  \"GPflow/tfops/tri_to_vec.cc -o GPflow/tfops/matpackops.so \" \\\n                  \"-fPIC -I $(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')\"\nif sys.platform == \"darwin\":\n    # Additional command for Macs, as instructed by the TensorFlow docs\n    compile_command += \" -undefined dynamic_lookup\"\nos.system(compile_command)\n\nsetup(name='GPflow',\n      version=verstr,\n      author=\"James Hensman, Alex Matthews\",\n      author_email=\"james.hensman@gmail.com\",\n      description=(\"Gaussian process methods in tensorflow\"),\n      license=\"BSD 3-clause\",\n      keywords=\"machine-learning gaussian-processes kernels tensorflow\",\n      url=\"http://github.com/gpflow/gpflow\",\n      package_data={'GPflow': ['GPflow/tfops/*.so']},\n      include_package_data=True,\n      ext_modules=[],\n      packages=[\"GPflow\"],\n      package_dir={'GPflow': 'GPflow'},\n      py_modules=['GPflow.__init__'],\n      test_suite='testing',\n      install_requires=['numpy>=1.9', 'scipy>=0.16', 'tensorflow>=0.10.0rc0'],\n      classifiers=['License :: OSI Approved :: BSD License',\n                   'Natural Language :: English',\n                   'Operating System :: MacOS :: MacOS X',\n                   'Operating System :: Microsoft :: Windows',\n                   'Operating System :: POSIX :: Linux',\n                   'Programming Language :: Python :: 2.7',\n                   'Topic :: Scientific/Engineering :: Artificial Intelligence']\n      )\n", "path": "setup.py"}, {"content": "# Copyright 2016 James Hensman\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n# http://www.apache.org/licenses/LICENSE-2.0\n# \n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\n__version__ = \"0.3.0\"\n", "path": "GPflow/_version.py"}]}