错误:找不到 pythonanywhere 服务器日志类型的"view"邮件帽规则"application/pdf"



我正在尝试使用 lolviz 和 graphviz 来可视化数据结构,但没有输出。这是我在服务器日志中遇到的错误:groupn.pythonanywhere.com.server.log

Warning: 2017-11-14 16:32:24 Illegal attribute sides in <TD> - ignored 2017-11-14 16:32:24   
Warning: 2017-11-14 16:32:24 Illegal attribute sides in <TD> - ignored 2017-11-14 16:32:24 in label of node node140165832004944 2017-11-14 16:32:24   
Warning: 2017-11-14 16:32:24 Illegal attribute sides in <TD> - ignored 2017-11-14 16:32:24 in label of node node140165832024136 2017-11-14 16:32:24   
Error: no "view" mailcap rules found for type "application/pdf" 2017-11-14 16:32:24 /usr/bin/xdg-open: 461: /usr/bin/xdg-open: 2017-11-14 16:32:24   
 links2: not found

这就是函数在我的 views.py

elif 'show' in request.POST:
                data = callviz(s).view(filename=None, directory=None, cleanup=True)
                return render(request, 'file/stacks.html', {'form': form, 'data': data})

视图正在尝试在 PythonAnywhere 上以 PDF 格式打开生成的可视化。在 Web 应用程序中,这不是一件特别有用的事情。将可视化生成为某种格式,您可以将其嵌入到网页中或提供下载。

最新更新