当前位置: 首页 > 知识库问答 >
问题:

我在heroku中部署应用程序时出错

伍胡媚
2023-03-14

错误:命令错误,退出状态为1:Command://app/.heroku/python/bin/python/app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel/tmp/tmp3b4z4ntu cwd://tmp/pip-install-1m_e8096/SciPy完成输出(171行):setup.py:460:用户警告:无法识别的setuptools命令warnings.warn(“无法识别的setuptools命令(”{}“),继续进行”从SciPy源目录运行。lapack_opt_info:lapack_mkl_info:customize UnixCCompiler库mkl_rt未在['/app/.heroku/python/lib'、'/usr/local/lib'、'/usr/lib64'、'/usr/lib'、'/usr/lib/x86_64-linux-gnu']中找到,不可用

       openblas_lapack_info:
       customize UnixCCompiler
       customize UnixCCompiler
         libraries openblas not found in ['/app/.heroku/python/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
         NOT AVAILABLE
       
       openblas_clapack_info:
       customize UnixCCompiler
       customize UnixCCompiler
         libraries openblas,lapack not found in ['/app/.heroku/python/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
         NOT AVAILABLE
       
       flame_info:
       customize UnixCCompiler
         libraries flame not found in ['/app/.heroku/python/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
         NOT AVAILABLE
       
       atlas_3_10_threads_info:
       Setting PTATLAS=ATLAS
       customize UnixCCompiler
         libraries lapack_atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries tatlas,tatlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries tatlas,tatlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries tatlas,tatlas not found in /usr/lib64
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib
       customize UnixCCompiler
         libraries tatlas,tatlas not found in /usr/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
       customize UnixCCompiler
         libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
       <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
         NOT AVAILABLE
       
       atlas_3_10_info:
       customize UnixCCompiler
         libraries lapack_atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries satlas,satlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries satlas,satlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries satlas,satlas not found in /usr/lib64
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib
       customize UnixCCompiler
         libraries satlas,satlas not found in /usr/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
       customize UnixCCompiler
         libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
       <class 'numpy.distutils.system_info.atlas_3_10_info'>
         NOT AVAILABLE
       
       atlas_threads_info:
       Setting PTATLAS=ATLAS
       customize UnixCCompiler
         libraries lapack_atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries ptf77blas,ptcblas,atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib
       customize UnixCCompiler
         libraries ptf77blas,ptcblas,atlas not found in /usr/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
       customize UnixCCompiler
         libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
       <class 'numpy.distutils.system_info.atlas_threads_info'>
         NOT AVAILABLE
       
       atlas_info:
       customize UnixCCompiler
         libraries lapack_atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries f77blas,cblas,atlas not found in /app/.heroku/python/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries f77blas,cblas,atlas not found in /usr/local/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries f77blas,cblas,atlas not found in /usr/lib64
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib
       customize UnixCCompiler
         libraries f77blas,cblas,atlas not found in /usr/lib
       customize UnixCCompiler
         libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
       customize UnixCCompiler
         libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
       <class 'numpy.distutils.system_info.atlas_info'>
         NOT AVAILABLE
       
       accelerate_info:
         NOT AVAILABLE
       
       lapack_info:
       customize UnixCCompiler
         libraries lapack not found in ['/app/.heroku/python/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
         NOT AVAILABLE
       
       /tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/numpy/distutils/system_info.py:1712: UserWarning:
           Lapack (http://www.netlib.org/lapack/) libraries not found.
           Directories to search for the libraries can be specified in the
           numpy/distutils/site.cfg file (section [lapack]) or by setting
           the LAPACK environment variable.
         if getattr(self, '_calc_info_{}'.format(lapack))():
       lapack_src_info:
         NOT AVAILABLE
       
       /tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/numpy/distutils/system_info.py:1712: UserWarning:
           Lapack (http://www.netlib.org/lapack/) sources not found.
           Directories to search for the sources can be specified in the
           numpy/distutils/site.cfg file (section [lapack_src]) or by setting
           the LAPACK_SRC environment variable.
         if getattr(self, '_calc_info_{}'.format(lapack))():
         NOT AVAILABLE
       
       Traceback (most recent call last):
         File "/app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
           main()
         File "/app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
           json_out['return_val'] = hook(**hook_input['kwargs'])
         File "/app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel
           return hook(metadata_directory, config_settings)
         File "/tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 166, in prepare_metadata_for_build_wheel
           self.run_setup()
         File "/tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 258, in run_setup
           super(_BuildMetaLegacyBackend,
         File "/tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
           exec(compile(code, __file__, 'exec'), locals())
         File "setup.py", line 583, in <module>
           setup_package()
         File "setup.py", line 579, in setup_package
           setup(**metadata)
         File "/tmp/pip-build-env-k61l7gdq/overlay/lib/python3.9/site-packages/numpy/distutils/core.py", line 137, in setup
           config = configuration()
         File "setup.py", line 477, in configuration
           raise NotFoundError(msg)
       numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
       ----------------------------------------
   ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3b4z4ntu Check the logs for full command output.

!推送拒绝,编译Python应用程序失败。!推送失败

共有1个答案

谢和颂
2023-03-14

我通过更改Python的版本解决了这个问题。要更改版本,您必须遵循以下步骤。

  1. 添加文件“runtime.txt”。
  2. 编辑runtime.txt并添加“Python-3.7.11”或heroku python版本支持的其他python版本。
  3. 将您的更改推到heroku,“Git push heroku Master”
 类似资料:
  • 我正在尝试将我的应用程序部署到Heroku,但似乎存在一些问题。每次我尝试: 我的heroku日志告诉我,我的应用程序崩溃了,我错过了“调试器”宝石。我在Heroku上找到了这条线索和这一页。当我尝试安装“byebug”gem时,bundle告诉我它不会安装在Ruby 1.9.3上,当我按照Heroku的建议将“debugger”gem放在gem文件的开发组中时,我仍然会收到相同的错误。 我也更新

  • 我有一个vuejs应用程序,它是用vue cli设置的,我正在尝试将我的应用程序部署到Heroku。 这是我的服务器: 我从gitignore中删除dist, 我在package.json中添加了一个类似“start”的起始点:“node server.js” 以下是我在控制台看到的内容: 加载资源失败:服务器响应,状态为503(服务不可用)/Favicon.ico:1 以下是heroku日志:

  • 在Heroku上部署Node.js应用程序时,我遇到以下错误。 2017-04-18T18:40:10.158442+00:00APP[Web1]:npm错误!请在任何支持请求中包含以下文件: 2017-04-18T18:40:10.158544+00:00APP[Web1]:npm错误!/app/npm-debug.log 2017-04-18T18:40:10.237236+00:00 Her

  • 我正在尝试部署一个运行在puma和jruby上的rails应用程序。程序文件如下所示 彪马的配置放在 配置/puma.rb 我对工人有条件初始化的原因是因为Heroku抱怨(或者可能是彪马)工人模式不适用于JRuby和Windows;无论如何, 我在heroku上注意到的奇怪行为是(与我的本地环境不同),集群Puma实例启动时没有任何问题,并选择两个不同的端口来绑定,即3000和5000。 但是,

  • 我运行< code>heroku open时出现应用程序错误。我查了日志,这是: 2016-06-19T05:22:44.640391 00:00 heroku[路由器]:at=错误代码=H10 desc=“应用程序崩溃”方法=获取路径=“/”主机=drawparty-.herokuapp。com request_id=6712804b-95f9-49ce-92a5-7f45df7bb79e fw

  • 每次都会出现以下错误!有相同的修复方法吗? 2021-10-07T10:47:31.133956 00:00heroku[路由器]: at=错误代码=H10 desc="应用程序崩溃"方法=GET路径="/"主机=zturlshortener.herokuapp.comrequest_id=c2f90e55-52f5-4955-a1d6-4028456cfddb fwd="103.199.173.