{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22703","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22703/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22703/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22703/events","html_url":"https://github.com/tensorflow/tensorflow/issues/22703","id":366503312,"node_id":"MDU6SXNzdWUzNjY1MDMzMTI=","number":22703,"title":"tensorflow-gpu being ruined by matplotlib","user":{"login":"H0bbitBaron","id":36517776,"node_id":"MDQ6VXNlcjM2NTE3Nzc2","avatar_url":"https://avatars3.githubusercontent.com/u/36517776?v=4","gravatar_id":"","url":"https://api.github.com/users/H0bbitBaron","html_url":"https://github.com/H0bbitBaron","followers_url":"https://api.github.com/users/H0bbitBaron/followers","following_url":"https://api.github.com/users/H0bbitBaron/following{/other_user}","gists_url":"https://api.github.com/users/H0bbitBaron/gists{/gist_id}","starred_url":"https://api.github.com/users/H0bbitBaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H0bbitBaron/subscriptions","organizations_url":"https://api.github.com/users/H0bbitBaron/orgs","repos_url":"https://api.github.com/users/H0bbitBaron/repos","events_url":"https://api.github.com/users/H0bbitBaron/events{/privacy}","received_events_url":"https://api.github.com/users/H0bbitBaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-03T19:59:10Z","updated_at":"2018-10-03T21:13:24Z","closed_at":null,"author_association":"NONE","body":"### 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)**: Ubuntu 16.04\r\n- **Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device**:\r\n- **TensorFlow installed from (source or binary)**: binary\r\n- **TensorFlow version (use command below)**: gpu-1.10.0-hf154084_0\r\n- **Python version**: 3.6.6-hc3d631a_0\r\n- **Bazel version (if compiling from source)**:\r\n- **GCC/Compiler version (if compiling from source)**:\r\n- **CUDA/cuDNN version**: 9.0\r\n- **GPU model and memory**: 1070\r\n- **Exact command to reproduce**:\r\nconda create --name test python=3.6.6 tensorflow-gpu spyder pandas\r\nsource activate test\r\n-- problem starts here\r\nconda install matplotlib\r\nspyder\r\nimport tensorflow.contrib.training as training\r\n- **Versions**:spyder=3.3.1, pandas=0.23.4, matplotlib=3.0.0\r\n\r\n### Describe the problem\r\nTensorflow-gpu works fine (import tensorflow.contrib.training as training executes without errors) until the installation of matplotlib. After that \"import tensorflow.contrib.training as training\" gives this error:\r\n\r\n    import tensorflow.contrib.training as training\r\n    Traceback (most recent call last):\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/IPython/core/interactiveshell.py\", line 2961, in run_code\r\n        exec(code_obj, self.user_global_ns, self.user_ns)\r\n    \r\n      File \"<ipython-input-1-f7e526cc11b2>\", line 1, in <module>\r\n        import tensorflow.contrib.training as training\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/__init__.py\", line 48, in <module>\r\n        from tensorflow.contrib import image\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/image/__init__.py\", line 70, in <module>\r\n        from tensorflow.contrib.image.python.ops.single_image_random_dot_stereograms import single_image_random_dot_stereograms\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py\", line 27, in <module>\r\n        \"_single_image_random_dot_stereograms.so\"))\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/util/loader.py\", line 56, in load_op_library\r\n        ret = load_library.load_op_library(path)\r\n    \r\n      File \"/home/nikolay/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py\", line 73, in load_op_library\r\n        exec(wrappers, module.__dict__)\r\n    \r\n      File \"<string>\", line 27\r\n        def single_image_random_dot_stereograms(depth_values, hidden_surface_removal=True, convergence_dots_size=8, dots_per_inch=72, eye_separation=2,5, mu=0,333299994, normalize=True, normalize_max=-100, normalize_min=100, border_level=0, number_colors=256, output_image_shape=[1024, 768, 1], output_data_window=[1022, 757], name=None):\r\n                                                                                                                                                       ^\r\n    SyntaxError: invalid syntax\r\n\r\nif it matters, here is what matplotlib installation looks like:\r\n\r\n    (test) xxx@xxx:~$ conda install matplotlib\r\n    Solving environment: done\r\n    \r\n    ## Package Plan ##\r\n    \r\n      environment location: /home/xxx/anaconda3/envs/test\r\n    \r\n      added / updated specs: \r\n        - matplotlib\r\n    \r\n    \r\n    The following NEW packages will be INSTALLED:\r\n    \r\n        cycler:     0.10.0-py36_0       \r\n        kiwisolver: 1.0.1-py36hf484d3e_0\r\n        matplotlib: 3.0.0-py36h5429711_0\r\n    \r\n    Proceed ([y]/n)? y\r\n    \r\n    Preparing transaction: done\r\n    Verifying transaction: done\r\n    Executing transaction: done\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/426805778","html_url":"https://github.com/tensorflow/tensorflow/issues/22703#issuecomment-426805778","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/22703","id":426805778,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjgwNTc3OA==","user":{"login":"H0bbitBaron","id":36517776,"node_id":"MDQ6VXNlcjM2NTE3Nzc2","avatar_url":"https://avatars3.githubusercontent.com/u/36517776?v=4","gravatar_id":"","url":"https://api.github.com/users/H0bbitBaron","html_url":"https://github.com/H0bbitBaron","followers_url":"https://api.github.com/users/H0bbitBaron/followers","following_url":"https://api.github.com/users/H0bbitBaron/following{/other_user}","gists_url":"https://api.github.com/users/H0bbitBaron/gists{/gist_id}","starred_url":"https://api.github.com/users/H0bbitBaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H0bbitBaron/subscriptions","organizations_url":"https://api.github.com/users/H0bbitBaron/orgs","repos_url":"https://api.github.com/users/H0bbitBaron/repos","events_url":"https://api.github.com/users/H0bbitBaron/events{/privacy}","received_events_url":"https://api.github.com/users/H0bbitBaron/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T21:13:24Z","updated_at":"2018-10-03T21:13:24Z","author_association":"NONE","body":"Neither it is ok after installing tensorflow-gpu via pip:\r\n\r\n    conda create --name test python=3.6.6 setuptools=39.1.0 pip=18.0 spyder\r\n    conda activate test\r\n    pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.11.0-cp36-cp36m-linux_x86_64.whl\r\n    pip install matplotlib\r\n    spyder\r\n    import tensorflow.contrib.training as training\r\n\r\nBUT, everything works fine if i use console python:\r\n\r\n    source activate test\r\n    python\r\n    import tensorflow.contrib.training as training"}}
{"actor":{"display_login":"H0bbitBaron"}}