python - Heroku:无法找到软件包 libsm6
问题描述
我正在尝试从我的github 存储库中部署一个在 heroku 上使用 openCV 的烧瓶应用程序。我在 python buildpack 中包含了heroku-buildpack-apt buildpack,我什至尝试了这个答案中给出的方法。我收到以下错误。有人请帮我让它运行。
-----> Using buildpacks:
1. https://github.com/heroku/heroku-buildpack-apt
2. heroku/python
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Updating apt caches
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [86.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [335 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [925 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [778 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,050 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,362 kB]
Fetched 17.6 MB in 2s (7,275 kB/s)
Reading package lists...
-----> Fetching .debs for libsm6
Reading package lists...
Building dependency tree...
E: Unable to locate package libsm6
! Push rejected, failed to compile Apt app.
! Push failed
解决方案
推荐阅读
- rest - 在 Salesforce 中通过 REST API 编辑自定义对象
- python - 如何指定任意嵌套的 Django 模型(如目录结构)?
- android - node.js REST API 中 Google 社交身份验证的正确方法是什么?
- css - 您可以将 CSS 添加到由自定义字段创建的 CSS 类的子类中吗?
- python - 在 exp() 中使用符号时,sympy 求解器内存不足
- raku - 随机消息:在 LANG1 中检测到不同步的包
- mysql - 将数据从一列插入另一列的末尾,不包括插入的部分
- rust - 从 cargo 包的 tests 目录导入主包 crate
- javascript - 如何从标记的工具提示中获取内容?
- loops - 在汇编中获得偶数输出时遇到一些问题