当前位置: 首页 > 工具软件 > ThriftPy > 使用案例 >

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

严恩
2023-12-01

场景

在使用happybase 在Windows端读取hbase 的时候,

提示“ ThriftPy does not support generating module with path in protocol ‘c’”的错误,

在github上查到资料: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:

这样问题就解决掉了,建议使用Hadoop这些大项目时,在Linux端进行运行,而不是Windows上。这样能避免出现很多问题。

 类似资料:

相关阅读

相关文章

相关问答