Google Cloud Composer,无法安装python-snappy

苏格米扬托·苏玛

我正在尝试python-snappy通过Google Cloud Platform控制台安装在Google Cloud Composer中。我正在使用python3环境。

我曾尝试安装其他python-snappy版本(0.5.3、0.5.2、0.5.1、0.5、0.4),但是,它总是会引发以下错误:

Http错误状态码:400 Http错误消息:错误请求其他错误:{“ ResourceType”:“ w071b50175ee0733c-tp / asia-northeast1-kumparan-co-e2ca75b3-gae-typer:appengine.apps.services.versions.create”, “ ResourceErrorCode”:“ 400”,“ ResourceErrorMessage”:“ Docker映像gcr.io/w071b50175ee0733c-tp/c949bad3-ca30-4717-a975-8e36bae3929a未找到或不是Docker V2格式。请访问https:// /cloud.google.com/container-registry/docs/ui “}

我还尝试过重新运行,如此处所讨论:https : //groups.google.com/forum/# ! topic/ cloud-composer-discuss/ jpxAGCPFkZo

但是,就我而言,它不能解决此问题。

任何人都知道如何解决吗?

达斯汀·英格拉姆

如果导航到https://console.cloud.google.com/cloud-build/builds/,则应该看到带有以下日志的构建失败:

Failed building wheel for python-snappy
Running setup.py clean for python-snappy
Failed to build python-snappy
Installing collected packages: python-snappy
Running setup.py install for python-snappy: started
Running setup.py install for python-snappy: finished with status 'error'
Complete output from command /usr/local/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-M5s4qk/python-snappy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-EuqCf8/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/snappy
copying snappy/snappy_cffi_builder.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/snappy_cffi.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/__main__.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/snappy_formats.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/snappy.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/hadoop_snappy.py -> build/lib.linux-x86_64-2.7/snappy
copying snappy/__init__.py -> build/lib.linux-x86_64-2.7/snappy
running build_ext
building 'snappy._snappy' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/snappy
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c snappy/snappymodule.cc -o build/temp.linux-x86_64-2.7/snappy/snappymodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
snappy/snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory
#include <snappy-c.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1

这是因为该python-snappy包只是与基础C库的Python绑定,而不是C库本身。

有关更多详细信息,请参见“安装python-snappy时出错:snappy-ch:没有此类文件或目录”

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Google Cloud Composer,气流作业无法识别已安装的 PyPi 包

无法在 Google Cloud Composer 上安装 Airflow Snowflake 提供程序包

Google Cloud Function无法安装python软件包

似乎无法安装Google Cloud Managed VM

无法在Google Cloud Run上安装jsonnet

是否可以在Google Cloud Composer上安装github存储库

无法在 Pycharm 中安装 python-snappy 轮

在 Google Cloud Composer 上安装 pypi 包 google-cloud-datastore 失败

Google Cloud Composer(Apache Airflow)无法访问日志文件

Google Cloud Function + Python

Google图表未在Snappy PDF中显示

无法导入google-python-cloud-debugger

从Cloud Function(Python)写入Google Cloud Storage

Google Cloud Shell无法启动

无法调用 Google Cloud Function

无法从Google Cloud删除部署

无法删除Google Cloud Project

Google Cloud无法正确安装软件包

已安装Google Cloud SDK,但无法访问gcloud

setup.py 无法安装 google-cloud-pubsub

安装MySQL后无法SSH到Google Cloud VM

如何在Google Cloud Composer中安装PYPI软件包(Facebook-business,Google-cloud-secret-manager)

Google Cloud Dataflow无法导入“ google.cloud.datastore”

我无法使用Google Cloud Run配置Google Cloud Endpoints

安装python-snappy时出错:snappy-ch:没有这样的文件或目录

安装python-snappy时出错:snappy-ch:没有这样的文件或目录

如果我导入google.cloud.storage,则无法在Google Composer上部署DAG

无法在Raspberry Pi的Ubuntu Snappy上安装Docker

使用Cloud Proxy的Google Cloud Composer和MS SQL