首页 > 解决方案 > 在 Heroku 中安装 pysqlcipher3 失败

问题描述

我正在尝试使用 pysqlcipher3 安装应用程序,但在 Heroku 中安装失败。

你知道如何解决这个问题吗?

将我的应用程序推送到 Heroku 时收到以下通知:

Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 290 bytes | 290.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider upgrading to python-3.6.13
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> No change in requirements detected, installing from cache
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting pysqlcipher3
remote:          Downloading pysqlcipher3-1.0.3.tar.gz (100 kB)
remote:        Building wheels for collected packages: pysqlcipher3
remote:          Building wheel for pysqlcipher3 (setup.py): started
remote:          Building wheel for pysqlcipher3 (setup.py): finished with status 'done'
remote:          WARNING: Legacy build of wheel for 'pysqlcipher3' created no files.
remote:          Command arguments: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kkuyq900/pysqlcipher3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kkuyq900/pysqlcipher3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0jb_b3yp
remote:          Command output: [use --verbose to show]
remote:          Running setup.py clean for pysqlcipher3
remote:        Failed to build pysqlcipher3
remote:        Installing collected packages: pysqlcipher3
remote:            Running setup.py install for pysqlcipher3: started
remote:            Running setup.py install for pysqlcipher3: finished with status 'done'
remote:        Successfully installed pysqlcipher3
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote: 
remote: -----> Compressing...
remote:        Done: 50.8M
remote: -----> Launching...
remote:        Released v24
remote:        App deployed to Heroku
remote: 
remote: Verifying deploy... done.

标签: pythonherokupysqlcipher

解决方案


推荐阅读