They did not seem to think that anyone would install Penson TensorBoard in the user's directory. Below is my hack to make it work:
The ~/.local/bin/tensorboardscript has a section that looks like this:
def FindModuleSpace():
stub_filename = os.path.abspath(sys.argv[0])
while True:
module_space = stub_filename + '.runfiles'
if os.path.isdir(module_space):
break
for mod in site.getsitepackages():
module_space = mod + '/tensorboard/tensorboard' + '.runfiles'
if os.path.isdir(module_space):
return module_space
(just above the statement with the error "Cannot find the .runfiles directory").
In the directory he is looking for
~/.local/lib/python2.7/site-packages/tensorboard/tensorboard.runfiles
, find ~/.local -name '*runfiles*'.
for , :
for mod in site.getsitepackages() + [os.path.expanduser("~/.local/lib/python2.7/site-packages")]
, :
python2.7, Python. .- Windows ;
os.path.join . - TensorBoard. ?