忘记密码   免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 1537 | 回复: 0

struct.error:unpack requires a buffer of 2 bytes [复制链接]

论坛徽章:
0
发表于 2018-06-21 14:10 |显示全部楼层
本帖最后由 laoliuya 于 2018-06-21 14:19 编辑

Traceback (most recent call last):
  File "E:\Programs\Python\Python36\lib\site-packages\gevent\pywsgi.py", line 963, in handle_one_response
    self.run_application()
  File "E:\Programs\Python\Python36\lib\site-packages\gevent\pywsgi.py", line 910, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "E:\Programs\Python\Python36\lib\site-packages\falcon\api.py", line 244, in __call__
    responder(req, resp, **params)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 700, in on_get
    article = ZIMRequestHandler.zim.get_article_by_url(namespace, url)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 520, in get_article_by_url
    entry, idx = self._get_entry_by_url(namespace, url)  # get the entry
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 499, in _get_entry_by_url
    entry = self.read_directory_entry_by_index(middle)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 437, in read_directory_entry_by_index
    directory_values = self._read_directory_entry(offset)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 418, in _read_directory_entry
    fields = unpack("<H", self.file.read(2))
struct.error: unpack requires a buffer of 2 bytes
2018-06-21T06:09:38Z {'REMOTE_ADDR': '::1', 'REMOTE_PORT': '52609', 'HTTP_HOST': 'localhost:9454', (hidden keys: 23)} failed with error

::1 - - [2018-06-21 14:09:38] "GET /w/load.php?debug=false&lang=en&modules=ext.gadget.site-lib&skin=vector&version=0ohvsnd HTTP/1.1" 500 161 0.002000
Traceback (most recent call last):
  File "E:\Programs\Python\Python36\lib\site-packages\gevent\pywsgi.py", line 963, in handle_one_response
    self.run_application()
  File "E:\Programs\Python\Python36\lib\site-packages\gevent\pywsgi.py", line 910, in run_application
    self.result = self.application(self.environ, self.start_response)
  File "E:\Programs\Python\Python36\lib\site-packages\falcon\api.py", line 244, in __call__
    responder(req, resp, **params)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 700, in on_get
    article = ZIMRequestHandler.zim.get_article_by_url(namespace, url)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 520, in get_article_by_url
    entry, idx = self._get_entry_by_url(namespace, url)  # get the entry
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 499, in _get_entry_by_url
    entry = self.read_directory_entry_by_index(middle)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 437, in read_directory_entry_by_index
    directory_values = self._read_directory_entry(offset)
  File "C:\Users\dell\Workspaces\MyEclipse Professional\ZIMply-master\zimply\zimply.py", line 418, in _read_directory_entry
    fields = unpack("<H", self.file.read(2))

struct.error: unpack requires a buffer of 2 bytes


这个异常如何处理?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

【重磅资料】多云网络实战的相关问题汇总!
云网融合的多云网络

本文介绍如何管理私有云数据中心,构建数据中心互联和混合云解决方案。对于OTT 网络架构的深入理解,基本上来源于SIGCOM 的白皮书和一些公开视频。

Overlay SDN 控制器详解

云计算为了适应业务/APP 的快速开发和部署,会把网络分为两层:Overlay 和 Underlay 网络。本文主要讲Overlay网络层面的问题。

超级核心路由器演进

2016 年,网络连接已经采用100G/200G/400G(虽然 400GE 接口技术还未成熟),互联网出口也已经增长到了 T 级别。

获得资料 >>
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:wangnan@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP