简体   繁体   English

Heroku git 主推

[英]Heroku git master push

I'm new to heroku, but I've been following the documentation to the letter.我是 heroku 的新手,但我一直在严格遵守文档。 I am deploying my dash app to heroku.我正在将我的仪表板应用程序部署到 heroku。 The setup was going well until the final master push设置进展顺利,直到最后的主推

> (venv) -MacBook-Air-3 heroku % git push heroku master
Enumerating objects: 12155, done.
Counting objects: 100% (12155/12155), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2900/2900), done.
Writing objects: 100% (12155/12155), 15.08 MiB | 1.53 MiB/s, done.
Total 12155 (delta 9145), reused 12155 (delta 9145)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Python app detected
remote: -----> Installing python-3.6.12
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        ERROR: Could not find a version that satisfies the requirement hBrotli==1.0.9        
(from -r /tmp/build_77052133/requirements.txt (line 1)) (from versions: none)
remote:        ERROR: No matching distribution found for hBrotli==1.0.9 (from -r                                /tmp/build_77052133/requirements.txt (line 1))
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed

I went to the requirements.txt that I created with pip3 freeze >requirements.txt as per the documentation and indeed on line 1 there was hBrotli== 1.0.9.我根据文档访问了我用 pip3 freeze >requirements.txt 创建的 requirements.txt,实际上在第 1 行有 hBrotli== 1.0.9。 I am not familiar with hBrotli and don't use it for my code and can't seem to find any information about it.我对 hBrotli 不熟悉,也没有在我的代码中使用它,而且似乎找不到任何关于它的信息。 I'm not sure what the error message is implying.我不确定错误消息的含义。

there is no package named hBrotli it may be due to some typo just change hBrotli to Brotli没有名为hBrotli的 package 可能是由于某些拼写错误,只需将hBrotli更改为Brotli

This is the package that you are looking for https://pypi.org/project/Brotli/ so just change the hBrotli to Brotli这是您正在寻找的package https://pypi.org/project/Brotli/所以只需将 hBrotli 更改为 Brotli

Or just do pip install Brotli或者只是做pip install Brotli

Also if needed change imports into from brotli import nameOfClass此外,如果需要,将导入更改为from brotli import nameOfClass

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM