免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2294 | 回复: 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


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

本版积分规则 发表回复

数据风云,十年变迁
DTCC 第十届中国数据库技术大会已启航!

2019年5月8日~5月10日,由IT168旗下ITPUB企业社区平台主办的第十届中国数据库技术大会(DTCC2019),将在北京隆重召开。大会将邀请百余位行业专家,就热点技术话题进行分享,是广大数据领域从业人士的又一次年度盛会和交流平台。与SACC2018类似,本届大会将采用“3+2”模式:3天传统技术演讲+2天深度主题培训。大会不仅提供超100场的主题演讲,还会提供连续2天的深度课程培训,深化数据领域的项目落地实践方案。
DTCC2019,一场值得期待的数据技术盛会,殷切地希望您报名参与!

活动入口>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP