You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
On windows when the path start with the "file://" scheme, I get the following error:
(path is 'file://C:\Users\MrT\UserSegmentation\lib\site-packages\happybase\Hbase.thrift')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\happybase_init_.py", line 10, in
'Hbase_thrift')
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\thriftpy\parser_init_.py", line 30, in load
include_dir=include_dir)
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\thriftpy\parser\parser.py", line 496, in parse
url_scheme))
thriftpy.parser.exc.ThriftParserError: ThriftPy does not support generating module with path in protocol 'file'
workaround that I added in my environment in thriftpy\parser\parser.py", around starting at line 540
url_scheme = urlparse(path).scheme
if url_scheme == 'file':
with open(urlparse(path).netloc) as fh:
data = fh.read()
elif url_scheme == '':
with open(path) as fh:
data = fh.read()
elif url_scheme in ('http', 'https'):
data = urlopen(path).read()
else:
raise ThriftParserError('ThriftPy does not support generating module '
'with path in protocol \'{}\''.format(
url_scheme))
The text was updated successfully, but these errors were encountered:
On non-Windows systems: things stay as they are
On windows system: it would pass the path to the thrift file with "file://" scheme.
If ThriftPY is fixed to handle the 'file' scheme - things would work on windows.
Until then, things will stay broken, as they are now.
This is further discussed here: python-happybase#148
and here: Thriftpy/thriftpy#269
NOTE: I created a corresponding fork and pull request on thrifypy as well:
Thriftpy/thriftpy#270
On windows when the path start with the "file://" scheme, I get the following error:
(path is 'file://C:\Users\MrT\UserSegmentation\lib\site-packages\happybase\Hbase.thrift')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\happybase_init_.py", line 10, in
'Hbase_thrift')
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\thriftpy\parser_init_.py", line 30, in load
include_dir=include_dir)
File "C:\Users\Erez.Katz\UserSegmentation\Lib\site-packages\thriftpy\parser\parser.py", line 496, in parse
url_scheme))
thriftpy.parser.exc.ThriftParserError: ThriftPy does not support generating module with path in protocol 'file'
workaround that I added in my environment in thriftpy\parser\parser.py", around starting at line 540
The text was updated successfully, but these errors were encountered: