You are not logged in.
I am using both the python-tensorflow and python-tensorflow-cuda packages (on two different machines). After upgrading the packages from version 1.1.0-4 to 1.2.0-1 I am receiving the error message below.
Traceback (most recent call last):
File "/usr/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
File "/usr/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 63, in <module>
from tensorflow.python.framework.framework_lib import *
File "/usr/lib/python3.6/site-packages/tensorflow/python/framework/framework_lib.py", line 100, in <module>
from tensorflow.python.framework.subscribe import subscribe
File "/usr/lib/python3.6/site-packages/tensorflow/python/framework/subscribe.py", line 26, in <module>
from tensorflow.python.ops import variables
File "/usr/lib/python3.6/site-packages/tensorflow/python/ops/variables.py", line 26, in <module>
from tensorflow.python.ops import control_flow_ops
File "/usr/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 70, in <module>
from tensorflow.python.ops import tensor_array_ops
File "/usr/lib/python3.6/site-packages/tensorflow/python/ops/tensor_array_ops.py", line 33, in <module>
from tensorflow.python.util import tf_should_use
File "/usr/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py", line 28, in <module>
from backports import weakref # pylint: disable=g-bad-import-order
ModuleNotFoundError: No module named 'backports'Are these packages broken after the update or am I doing something wrong here?
Last edited by hakunamatata (2017-06-27 18:18:05)
Offline
A bit of googling led me to this: https://bugs.archlinux.org/task/54606
So I would try the fix thats listed there and see if it works for you
" To make it work, need to replace
from backports import weakref
on line 28 of "/usr/lib/python3.6/site-packages/tensorflow/python/util/tf_should_use.py" with
import weakref "
The Hidden Secret of Arch Linux Forums:
No. No one here really uses archlinux. Arch Sucks.
We're just a bunch of neckbeards who tinker with arch linux in our mom's basement during our free time ... which we have a lot of because we are unemployed. ~ Trilby
Offline
Thank you, sir. This fix seems to solve the problem for me. I was looking into this issue yesterday, but this bug report was submitted only today, so that's probably why I didn't come across it myself. Additionally, I was getting errors when trying to run tensorboard:
$ tensorboard --logdir=./logsTraceback (most recent call last):
File "/usr/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
File "/usr/lib/python3.6/site-packages/tensorflow/tensorboard/tensorboard.py", line 28, in <module>
from werkzeug import serving
ModuleNotFoundError: No module named 'werkzeug'Traceback (most recent call last):
File "/usr/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
File "/usr/lib/python3.6/site-packages/tensorflow/tensorboard/tensorboard.py", line 36, in <module>
from tensorflow.tensorboard.plugins.text import text_plugin
File "/usr/lib/python3.6/site-packages/tensorflow/tensorboard/plugins/text/text_plugin.py", line 29, in <module>
import bleach
ModuleNotFoundError: No module named 'bleach'Traceback (most recent call last):
File "/usr/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
File "/usr/lib/python3.6/site-packages/tensorflow/tensorboard/tensorboard.py", line 36, in <module>
from tensorflow.tensorboard.plugins.text import text_plugin
File "/usr/lib/python3.6/site-packages/tensorflow/tensorboard/plugins/text/text_plugin.py", line 32, in <module>
import markdown
ModuleNotFoundError: No module named 'markdown'I was able to resolve these issues by explicitly installing the corresponding packages from the official repositories as follows:
# pacman -S python-werkzeug python-bleach python-markdownI suspect these packages are missing dependencies and I will open a bug report myself.
Offline