ImportError:无法找到zbar共享库

时间:2018-05-31 11:27:54

标签: django python-3.x heroku apt-get zbar

我正在尝试使用Django框架制作在线条形码阅读器并将其部署在Heroku上。 但是,当我加载页面时,它显示此错误:

ImportError at /
Unable to find zbar shared library
Request Method: GET
Request URL:    https://libportal.herokuapp.com/
Django Version: 2.0.3
Exception Type: ImportError
Exception Value:    
Unable to find zbar shared library
Exception Location: /app/.heroku/python/lib/python3.6/site-packages

/pyzbar/zbar_library.py in load, line 65
Python Executable:  /app/.heroku/python/bin/python
Python Version: 3.6.4
Python Path:    
['/app',
 '/app/.heroku/python/bin',
 '/app',
 '/app/.heroku/python/lib/python36.zip',
 '/app/.heroku/python/lib/python3.6',
 '/app/.heroku/python/lib/python3.6/lib-dynload',
 '/app/.heroku/python/lib/python3.6/site-packages']
Server time:    Thu, 31 May 2018 11:02:16 +0000

我搜索了它并找到了一个合适的解决方案here. 但在我的情况下,使用pip成功安装了pyzbar,然后在我看到上述解决方案之后将libzbar-dev文件添加到Aptfile文件中后安装了always

有人可以帮助我吗?

0 个答案:

没有答案
相关问题