/Users/davis/google-cloud-sdk/bin:/anaconda3/envs/tf2/bin:/anaconda3/condabin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/Users/davis/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/minicom/2.2/bin:/usr/local/MacGPG2/bin:/opt/X11/bin:/Applications/mybin:~/progs/nand2tetris/tools:/Users/davis/Library/Android/sdk/platform-tools:/Users/davis/progs/flutter/bin
--
You received this message because you are subscribed to the Google Groups "TensorFlow Community Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testing+u...@tensorflow.org.
/anaconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_) ModuleNotFoundError: No module named 'tensorboard '
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-d873fe2ff8be> in <module> 1 # Load the TensorBoard notebook extension 2 # Jupyter/colab method? ----> 3 get_ipython().run_line_magic('load_ext', 'tensorboard ') 4 # Jupyterlab method? 5 #%load_ext tensorboard.notebook /anaconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth) 2305 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals 2306 with self.builtin_trap: -> 2307 result = fn(*args, **kwargs) 2308 return result 2309 </anaconda3/envs/tf2/lib/python3.7/site-packages/decorator.py:decorator-gen-64> in load_ext(self, module_str) /anaconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k) 185 # but it's overkill for just that one bit of state. 186 def magic_deco(arg): --> 187 call = lambda f, *a, **k: f(*a, **k) 188 189 if callable(arg): /anaconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/magics/extension.py in load_ext(self, module_str) 31 if not module_str: 32 raise UsageError('Missing module name.') ---> 33 res = self.shell.extension_manager.load_extension(module_str) 34 35 if res == 'already loaded': /anaconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/extensions.py in load_extension(self, module_str) 78 if module_str not in sys.modules: 79 with prepended_to_syspath(self.ipython_extension_dir): ---> 80 mod = import_module(module_str) 81 if mod.__file__.startswith(self.ipython_extension_dir): 82 print(("Loading extensions from {dir} is deprecated. " /anaconda3/envs/tf2/lib/python3.7/importlib/__init__.py in import_module(name, package) 125 break 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128 129 /anaconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _gcd_import(name, package, level) /anaconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _find_and_load(name, import_) /anaconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_) ModuleNotFoundError: No module named 'tensorboard '
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-11940607f6f4> in <module> ----> 1 __import__("tensorboard").__version__
ModuleNotFoundError: No module named 'tensorboard'
2.0.0-alpha0
Steps to reproduce
1. I installed anaconda using python 3 version.
2. Created a python 3 virt env named tf2.
3. conda activate tf2
4. Install tf2 in this environment
5. (tf2) Huo-Yang~/progs/tf-hackathon$ pip install tensorflow==2.0.0-alpha06. Possibly installed jupyter notebook using conda. It might have been there already.
/Users/davis/miniconda3/envs/tf2/bin:/Users/davis/miniconda3/envs/tf2/bin:/Users/davis/miniconda3/bin:/Users/davis/miniconda3/condabin:/Users/davis/google-cloud-sdk/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/Users/davis/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/minicom/2.2/bin:/usr/local/MacGPG2/bin:/opt/X11/bin:/Applications/mybin:~/progs/nand2tetris/tools:/Users/davis/Library/Android/sdk/platform-tools:/Users/davis/progs/flutter/bin
import tensorflow as tf
print(tf.__version__)
2.0.0-alpha0
import tensorboard
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-16-11940607f6f4> in <module>
----> 1 __import__("tensorboard").__version__
AttributeError: module 'tensorboard' has no attribute '__version__'
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last)
<ipython-input-17-d873fe2ff8be> in <module>
1 # Load the TensorBoard notebook extension 2 # Jupyter/colab method? ----> 3 get_ipython().run_line_magic('load_ext', 'tensorboard ') 4 # Jupyterlab method? 5 #%load_ext tensorboard.notebook
~/miniconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2305 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals 2306 with self.builtin_trap: -> 2307 result = fn(*args, **kwargs) 2308 return result 2309
</Users/davis/miniconda3/envs/tf2/lib/python3.7/site-packages/decorator.py:decorator-gen-64> in load_ext(self, module_str) ~/miniconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state. 186 def magic_deco(arg): --> 187 call = lambda f, *a, **k: f(*a, **k) 188 189 if callable(arg):
~/miniconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/magics/extension.py in load_ext(self, module_str)
31 if not module_str: 32 raise UsageError('Missing module name.') ---> 33 res = self.shell.extension_manager.load_extension(module_str) 34 35 if res == 'already loaded':
~/miniconda3/envs/tf2/lib/python3.7/site-packages/IPython/core/extensions.py in load_extension(self, module_str)
78 if module_str not in sys.modules: 79 with prepended_to_syspath(self.ipython_extension_dir): ---> 80 mod = import_module(module_str) 81 if mod.__file__.startswith(self.ipython_extension_dir): 82 print(("Loading extensions from {dir} is deprecated. "
~/miniconda3/envs/tf2/lib/python3.7/importlib/__init__.py in import_module(name, package)
125 break 126 level += 1 --> 127 return _bootstrap._gcd_import(name[level:], package, level) 128 129
~/miniconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _gcd_import(name, package, level) ~/miniconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _find_and_load(name, import_) ~/miniconda3/envs/tf2/lib/python3.7/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)
ModuleNotFoundError: No module named 'tensorboard '
The tensorboard module is not an IPython extension.
But at least it does not stack trace. Using notebook extension and the remaining commands work. I'm guessing collab notebooks trim trailing spaces but jupyter does not.
You have made my day. Thanks a bunch!
John