ThriftPy does not support generating module with path in protocol 'c' 问题

今天使用happybase 在Windows端读取hbase 的时候,提示“ ThriftPy does not support generating module with path in protocol 'c'”

错误,查询相关的资料:https://github.com/eleme/thriftpy/issues/234 发现主要是源码在解析url的时候出现错误,解决方法如下:

修改windows端中的parser 代码,笔者代码位置如下: C:\ProgramData\Anaconda2\Lib\site-packages\thriftpy\parser

修改其中的488行为如下情况:

 #if url_scheme == '':
 if len(url_scheme) <= 1:

  然后重新运行即可。

 

posted @ 2017-09-12 15:42  angelxp  阅读(2499)  评论(1编辑  收藏  举报