为什么我不能在具有 GPU 和预装 TF 等的 Google 实例上使用 gcsfuse 命令?

为什么我不能在具有 GPU 和预装 TF 等的 Google 实例上使用 gcsfuse 命令?

我的目标是在我的 Google Compute 实例机器上安装一个 Google 存储桶。

我创建了一个 Google Compute 实例类型

c2-深度学习-tf-1-14-cu100

它预装了各种库,其中包括 CUDA、CuDNN、TensorFlow 和(Python 的)GCFS。创建后,我按照安装说明命令gcsfuse。没有抛出任何错误。但是,在 bash 中尝试使用gcsfuse命令时,我收到以下错误:

: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.0
Traceback (most recent call last):
  File "/usr/local/bin/gcsfuse", line 7, in <module>
    from gcsfs.cli.gcsfuse import main
  File "/usr/local/lib/python3.5/dist-packages/gcsfs/cli/gcsfuse.py", line 3, in <module>
    from fuse import FUSE
  File "/home/user/.local/lib/python3.5/site-packages/fuse/__init__.py", line 3, in <module>
    from .defect_augment import DefectAugment
  File "/home/user/.local/lib/python3.5/site-packages/fuse/defect_augment.py", line 11, in <module>
    from gunpowder import BatchFilter
  File "/home/user/.local/lib/python3.5/site-packages/gunpowder/__init__.py", line 3, in <module>
    from . import nodes
  File "/home/user/.local/lib/python3.5/site-packages/gunpowder/nodes/__init__.py", line 3, in <module>
    from .add_affinities import AddAffinities
  File "/home/user/.local/lib/python3.5/site-packages/gunpowder/nodes/add_affinities.py", line 6, in <module>
    from gunpowder.ext import malis
  File "/home/user/.local/lib/python3.5/site-packages/gunpowder/ext/__init__.py", line 51, in <module>
    import augment
  File "/home/user/.local/lib/python3.5/site-packages/augment.py", line 181, in <module>
    def _surround(aux_fn, around=False, before=False, after=False):
  File "/home/user/.local/lib/python3.5/site-packages/augment.py", line 130, in decorator
    allargs, fn_name = _get_args_and_name(fn)
  File "/home/user/.local/lib/python3.5/site-packages/augment.py", line 37, in _get_args_and_name
    code = fn.func_code
AttributeError: 'function' object has no attribute 'func_code'

它不仅在我尝试在我的计算机上安装任何存储桶时出现,而且在调用时也会出现gcsfuse --help

我的猜测是,因为错误明显是 Pythonic 的,而不是 Go 的,所以也许预安装的 Python GCSFs 以某种方式损坏了。然而,根据文档,GCSF 也应该启用 bashgcsfuse命令。

非常感谢您的帮助。谢谢!

答案1

我认为https://github.com/GoogleCloudPlatform/gcsfuse/issues/331可能会引起人们的兴趣。用户报告成功限定了完整路径/usr/bin/gcsfuse

相关内容