{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21518","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21518/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21518/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21518/events","html_url":"https://github.com/tensorflow/tensorflow/issues/21518","id":349181771,"node_id":"MDU6SXNzdWUzNDkxODE3NzE=","number":21518,"title":"1.10 build fails with \"No module named 'keras_applications'\"","user":{"login":"skeydan","id":469371,"node_id":"MDQ6VXNlcjQ2OTM3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/469371?v=4","gravatar_id":"","url":"https://api.github.com/users/skeydan","html_url":"https://github.com/skeydan","followers_url":"https://api.github.com/users/skeydan/followers","following_url":"https://api.github.com/users/skeydan/following{/other_user}","gists_url":"https://api.github.com/users/skeydan/gists{/gist_id}","starred_url":"https://api.github.com/users/skeydan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skeydan/subscriptions","organizations_url":"https://api.github.com/users/skeydan/orgs","repos_url":"https://api.github.com/users/skeydan/repos","events_url":"https://api.github.com/users/skeydan/events{/privacy}","received_events_url":"https://api.github.com/users/skeydan/received_events","type":"User","site_admin":false},"labels":[{"id":386191887,"node_id":"MDU6TGFiZWwzODYxOTE4ODc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"f4b400","default":false}],"state":"closed","locked":false,"assignee":{"login":"av8ramit","id":5588272,"node_id":"MDQ6VXNlcjU1ODgyNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5588272?v=4","gravatar_id":"","url":"https://api.github.com/users/av8ramit","html_url":"https://github.com/av8ramit","followers_url":"https://api.github.com/users/av8ramit/followers","following_url":"https://api.github.com/users/av8ramit/following{/other_user}","gists_url":"https://api.github.com/users/av8ramit/gists{/gist_id}","starred_url":"https://api.github.com/users/av8ramit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/av8ramit/subscriptions","organizations_url":"https://api.github.com/users/av8ramit/orgs","repos_url":"https://api.github.com/users/av8ramit/repos","events_url":"https://api.github.com/users/av8ramit/events{/privacy}","received_events_url":"https://api.github.com/users/av8ramit/received_events","type":"User","site_admin":false},"assignees":[{"login":"av8ramit","id":5588272,"node_id":"MDQ6VXNlcjU1ODgyNzI=","avatar_url":"https://avatars1.githubusercontent.com/u/5588272?v=4","gravatar_id":"","url":"https://api.github.com/users/av8ramit","html_url":"https://github.com/av8ramit","followers_url":"https://api.github.com/users/av8ramit/followers","following_url":"https://api.github.com/users/av8ramit/following{/other_user}","gists_url":"https://api.github.com/users/av8ramit/gists{/gist_id}","starred_url":"https://api.github.com/users/av8ramit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/av8ramit/subscriptions","organizations_url":"https://api.github.com/users/av8ramit/orgs","repos_url":"https://api.github.com/users/av8ramit/repos","events_url":"https://api.github.com/users/av8ramit/events{/privacy}","received_events_url":"https://api.github.com/users/av8ramit/received_events","type":"User","site_admin":false}],"milestone":null,"comments":28,"created_at":"2018-08-09T15:36:10Z","updated_at":"2019-04-11T07:59:20Z","closed_at":"2018-09-10T19:28:06Z","author_association":"NONE","body":"\r\n### System information\r\n- **Have I written custom code (as opposed to using a stock example script provided in TensorFlow)**: no\r\n- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: Linux Fedora 28\r\n- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device**: N/A\r\n- **TensorFlow installed from (source or binary)**: source\r\n- **TensorFlow version (use command below)**: 1.10\r\n- **Python version**: 3.6\r\n- **Bazel version (if compiling from source)**: 0.16\r\n- **GCC/Compiler version (if compiling from source)**: 7.3\r\n- **CUDA/cuDNN version**: 9.2\r\n- **GPU model and memory**: Quadro M2200 4G\r\n- **Exact command to reproduce**: bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package\r\n\r\nHi, a recent checkout of master (~ 2 hours ago) fails (for me) with\r\n\r\n```\r\nERROR: /home/key/code/tensorflow/tensorflow/BUILD:584:1: Executing genrule //tensorflow:tensorflow_python_api_gen failed (Exit 1)\r\n/home/key/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\nTraceback (most recent call last):\r\n  File \"/home/key/.cache/bazel/_bazel_key/8de93c72df6c3fec3e289f10fadff72b/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py\", line 27, in <module>\r\n    from tensorflow.python.tools.api.generator import doc_srcs\r\n  File \"/home/key/.cache/bazel/_bazel_key/8de93c72df6c3fec3e289f10fadff72b/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/__init__.py\", line 81, in <module>\r\n    from tensorflow.python import keras\r\n  File \"/home/key/.cache/bazel/_bazel_key/8de93c72df6c3fec3e289f10fadff72b/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/keras/__init__.py\", line 25, in <module>\r\n    from tensorflow.python.keras import applications\r\n  File \"/home/key/.cache/bazel/_bazel_key/8de93c72df6c3fec3e289f10fadff72b/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/keras/applications/__init__.py\", line 21, in <module>\r\n    import keras_applications\r\nModuleNotFoundError: No module named 'keras_applications'\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 3855.754s, Critical Path: 156.93s\r\nINFO: 8932 processes: 8932 local.\r\nFAILED: Build did NOT complete successfully\r\n```\r\n\r\nCould you please advise?"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/482010104","html_url":"https://github.com/tensorflow/tensorflow/issues/21518#issuecomment-482010104","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/21518","id":482010104,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MjAxMDEwNA==","user":{"login":"LearnerInGithub","id":8637842,"node_id":"MDQ6VXNlcjg2Mzc4NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/8637842?v=4","gravatar_id":"","url":"https://api.github.com/users/LearnerInGithub","html_url":"https://github.com/LearnerInGithub","followers_url":"https://api.github.com/users/LearnerInGithub/followers","following_url":"https://api.github.com/users/LearnerInGithub/following{/other_user}","gists_url":"https://api.github.com/users/LearnerInGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnerInGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnerInGithub/subscriptions","organizations_url":"https://api.github.com/users/LearnerInGithub/orgs","repos_url":"https://api.github.com/users/LearnerInGithub/repos","events_url":"https://api.github.com/users/LearnerInGithub/events{/privacy}","received_events_url":"https://api.github.com/users/LearnerInGithub/received_events","type":"User","site_admin":false},"created_at":"2019-04-11T07:59:20Z","updated_at":"2019-04-11T07:59:20Z","author_association":"NONE","body":"@yifeif  I alse faced same problem, Environment information: keras==2.2.4, tensorflow-gpu==1.10.0, keras_applications==1.0.7, keras_preprocessing==1.0.9, CentOS 7.0, Python==3.6.5, very strange thing is that the training phase is OK, but while saved the trained model, and then load the trained model in testing phase, the system show the bellow error informatin:\r\n\r\n  File \"nasnet_predict.py\", line 278, in <module>\r\n    model = load_model(\"res_models/model.h5\")\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/saving.py\", line 419, in load_model\r\n    model = _deserialize_model(f, custom_objects, compile)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/saving.py\", line 225, in _deserialize_model\r\n    model = model_from_config(model_config, custom_objects=custom_objects)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/saving.py\", line 458, in model_from_config\r\n    return deserialize(config, custom_objects=custom_objects)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/layers/__init__.py\", line 55, in deserialize\r\n    printable_module_name='layer')\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/utils/generic_utils.py\", line 145, in deserialize_keras_object\r\n    list(custom_objects.items())))\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/network.py\", line 1032, in from_config\r\n    process_node(layer, node_data)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/network.py\", line 991, in process_node\r\n    layer(unpack_singleton(input_tensors), **kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/engine/base_layer.py\", line 457, in __call__\r\n    output = self.call(inputs, **kwargs)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/layers/core.py\", line 687, in call\r\n    return self.function(inputs, **arguments)\r\n  File \"/usr/local/lib/python3.6/site-packages/keras/applications/__init__.py\", line 23, in wrapper\r\n    def keras_modules_injection(base_fun):\r\nNameError: name 'keras_applications' is not defined"}}
{"actor":{"display_login":"LearnerInGithub"}}