我跟着this https://github.com/plotly/orca安装conda plotly-orca
在 AWS EC2 实例上(构建于anaconda-python3
图像)但击中Cannot open shared object
调用 orca 时出错。修复方法是安装libgtk2.0-0
and libgconf-2-4
遗憾的是,AWS EC2 Linux 发行版上不提供这些软件包(非ubuntu
)。所以我下载了这个独立版orca-1.3.1.AppImage https://github.com/plotly/orca/releases/download/v1.3.1/orca-1.3.1.AppImage对于Linux。
I use --appimage-extract
将 orca-1.3.1.AppImage 提取到/home/ec2-user/squashfs-root
文件夹并运行:
xvfb-run --auto-servernum --server-args "-screen 0 640x480x24" /home/ec2-user/squashfs-root/orca "$@" > /opt/conda/envs/pysig/bin/orca
chmod 777 /opt/conda/envs/pysig/bin/orca
However orca --help
返回这个:
/opt/conda/envs/pysig/bin/orca: line 1: /home/ec2-user/squashfs-root/orca:: No such file or directory
但逆戟鲸确实存在于我的体内/home/ec2-user/squashfs-root
folder:
ls -l /home/ec2-user/squashfs-root/orca
-rwxrwxrwx 1 ec2-user ec2-user 112481216 Jun 29 01:39 /home/ec2-user/squashfs-root/orca
在ec2上,我已经安装了Xvfb
使用 sudo,除了libgtk2.0-0
and libgconf-2-4
AWS Linux 发行版中不提供的软件包。
我以 ec2-user 而不是 root 身份运行所有命令,因为 ec2 基于 anaconda-python3 映像,该映像将 ec2 指定为所有 conda 内容的所有者。
知道为什么吗orca --help
找不到/home/ec2-user/squashfs-root/orca
当它确实存在于/home/ec2-user/squashfs-root
我已经在其中应用了 chmod -R 777 的文件夹吗?
我可以在网上找到的所有示例orca on linux
已经上过ubuntu
仅限发行版,但在 github 上,Tests and Linux builds
被标记为“通过”。对于同样的问题,plotly orca 和 github 社区的回复为零。整个经历是如此笨重和痛苦,是时候考虑逆戟鲸的替代方案了吗?