[英]heroku/python buildpack for node.js app get rejected
我有一個嘗試將Python腳本部署到Heroku的Node.js應用程序。
每當我嘗試添加heroku/python
buildpack時, git push
都會被拒絕。
遠程:找不到滿足要求pywin32 == 224的版本(來自-r /tmp/build_ebad00f3b8d3c9b4b03965f0d0924e7a/requirements.txt(第57行))(來自版本:)遠程:找不到pywin32 == 224的匹配發行版-r /tmp/build_ebad00f3b8d3c9b4b03965f0d0924e7a/requirements.txt(第57行))
遠程:! 推送被拒絕,無法編譯Python應用。
遠程:
遠程:! 推送失敗
遠程:! 推送失敗
遠程:正在驗證部署...
遠程:遠程:! 推送到XXXXXX被拒絕
遠程:
到https://git.heroku.com/xxxxxx.git
! [遠程拒絕]主機->主機(預接收掛鈎被拒絕)
錯誤:無法將某些引用推送到' https://git.heroku.com/xxxxx.git '
如果沒有heroku/python
buildpack,則推送效果很好。 我認為我需要在Web上運行Python腳本的構建。
我的應用程序在本地運行良好,但與Python相關的一切在部署時均無法正常工作。 我使用Python 3.7.3 64位版本。 我的應用程序的根目錄中有runtime.txt和requirements.txt。
我的runtime.txt
文件:
python-3.7.3
requirements.txt:
altgraph==0.16.1
asn1crypto==0.24.0
astroid==2.1.0
awscli==1.16.209
beautifulsoup4==4.6.3
botocore==1.12.199
bs4==0.0.1
cached-property==1.5.1
cachetools==3.1.1
certifi==2019.6.16
cffi==1.12.2
chardet==3.0.4
colorama==0.3.9
cryptography==2.6.1
defusedxml==0.5.0
dnspython==1.16.0
docutils==0.14
et-xmlfile==1.0.1
exchangelib==1.12.2
future==0.17.1
google-api-python-client==1.7.9
google-auth==1.6.3
google-auth-httplib2==0.0.3
google-auth-oauthlib==0.4.0
googletrans==2.4.0
gspread==3.1.0
httplib2==0.13.0
idna==2.8
isodate==0.6.0
isort==4.3.4
jdcal==1.4
jmespath==0.9.4
lazy-object-proxy==1.3.1
lxml==4.3.2
macholib==1.11
mccabe==0.6.1
ntlm-auth==1.2.0
numpy==1.15.4
oauth2client==4.1.3
oauthlib==3.0.1
openpyxl==2.6.0
pandas==0.23.4
pefile==2018.8.8
py2exe==0.9.2.2
pyasn1==0.4.5
pyasn1-modules==0.2.5
pycparser==2.19
Pygments==2.3.1
pygsheets==2.0.1
PyInstaller==3.4
pylint==2.2.2
PyMySQL==0.9.3
pyodbc==4.0.26
PySocks==1.6.8
python-dateutil==2.7.5
pytz==2019.1
pywin32==224
pywin32-ctypes==0.2.0
pywinrm==0.3.0
PyYAML==5.1
requests==2.22.0
requests-kerberos==0.12.0
requests-ntlm==1.1.0
requests-oauthlib==1.2.0
rsa==3.4.2
s3transfer==0.2.1
selenium==3.141.0
six==1.11.0
soupsieve==1.8
stem==1.7.0
torrequest==0.1.0
tzlocal==1.5.1
uritemplate==3.0.0
urllib3==1.25.3
uuid==1.30
virtualenv==16.7.2
winkerberos==0.7.0
wrapt==1.10.11
xlrd==1.1.0
XlsxWriter==1.1.2
xmltodict==0.12.0
感謝任何指導。
這是問題所在:
找不到滿足要求pywin32 == 224的版本
Heroku無法運行Windows,因此pywin32
不可用。 我不確定您將其用於什么。 如果不需要它,請將其刪除(以及pywin32-ctypes
, pywinrm
以及與Windows相關的其他任何東西),然后重新部署。 如果您正在使用這些庫,則需要重寫代碼的那部分。
一般而言,您的requirements.txt
應該只包含應用程序實際需要的內容。 我懷疑您那里有很多不使用的東西。 也許您沒有使用虛擬環境?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.