New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'TSocket' object has no attribute 'isOpen' #268
Comments
I just pushed thrift_sasl 0.3.0 yesterday so it must be a version incompatibility. Can you upgrade to thrift 0.10.0? We probably need a version bump in impyla to pin things properly |
@wesm Thanks. I actually get the same error with 0.10.0. |
OK, well the fix is to pin thrift_sasl at 0.2.1 until we get impyla working on 0.10.0 + thrift_sasl 0.3.0. I am unable to work on it today unfortunately =/ |
Yup, that works. |
Hello! |
@rockot Maybe try |
yes, this works, thanks! and also, suddenly, i needed sasl==0.2.1. And then, all together, it works. |
* set thrift_sasl max version It looks like there was a breaking change in thrift_sasl module. Please specify thrift_sasl version <= 0.2.1, and that would resolve the issue. * thrift_sasl<=0.2.1 requirement install thrift_sasl before thrift * pinned thrift_sasl until #268 is closed * removed manditory requirement of thrift_sasl
) * set thrift_sasl max version It looks like there was a breaking change in thrift_sasl module. Please specify thrift_sasl version <= 0.2.1, and that would resolve the issue. * thrift_sasl<=0.2.1 requirement install thrift_sasl before thrift * pinned thrift_sasl until cloudera#268 is closed * removed manditory requirement of thrift_sasl
Hello! |
I attempted to install pip install git+https://github.com/cloudera/thrift_sasl and ran into TSocket thrift_sas1 error. I checked version . It says sasl-0.2.1 thrift-sasl-0.3.0. Could someone send me exact command to pin to 0.2.1 |
hlpe me, (if thrift_sasl=0.3.0,it will AttributeError: 'TSocket' object has no attribute 'isOpen'.but, thrift_sasl=0.2.1,it will thriftpy.transport.TTransportException: TTransportException(type=1, message="Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2'") |
Hi Guys, I"m having: and I"m getting ''TSSLSocket' object has no attribute 'isOpen'' . Is it also bc of version issues? Shall I downgrade any of them? Thank you so much for your help! Much appreciated! Best, |
Hi guys, I'm able to resolve this issue with a workaround and little tweaking. I uninstalled thrift_sasl on my anaconda3 environment. Then copied then directory from anaconda2 directory to anaconda3 directory. This change worked. cd /opt/anaconda2/lib/python2.7/site-packages/ Thanks, |
I am experiencing the same issue with TSocket object has no attribute isOpen. thrift-sasl 0.3.0 I'd love to be able to connect to a hive server via python... |
Make sure to Restart your kernel if you're working in a Jupyter notebook! I had the same problem connecting to Hive even after pip installing thrift_sasl==0.2.1, and was reminded by IT to restart my kernel before the changes take effect. |
I am using Anaconda 3 Environment with python 3.6.4 .Even I am getting 'TSocket' object has not attribute 'isOpen' issue. thrift = 0.11.0 |
Do you mean restart your Hive kernel or the kernel within your notebook? |
I am using Anaconda Snyder . I did restart kernel restart at Ipython console . How to do Hive Kernel restart ? |
That would be on your IT department I believe. I am not familiar how to reboot a hive/hadoop kernel. |
I am running this on VM , Which I can do my self if it resolves the issue. I will try and update |
@merritth Restart the kernel within your notebook. On the notebook toolbar: Kernel -> Restart |
I hava resolved it by use 0.2.1 version |
* include thrift_sasl in setup.py for Python3 I've also pinned the version pending the resolution of #268 * Add thrift_sasl as optional dependency
The dependencies below work for me in docker container to initialize hive and impala client both. system versionPython 3.6.8 requirements.txt
apt packages
|
Had the same problem. If you follow the error around, for me at least, the problem is that thrift-sasl calls isOpen() on a TSocket object (which exists in thriftpy2), but that object only has a function called is_open(). Looking at thrift-sasl, this was actually fixed in version 0.4.0 that was released on Dec. 13, 2019. So make sure your package manager of choice is pulling thrift-sasl >= 0.4.0 and it should be fixed. |
@dknupp do we plan to make the 0.4.0 release of thrift-sasl non-alpha? |
pandas.read_sql() still not working under thrift-sasl-0.4.2 but thrift-sasl-0.2.1 works fine |
I'm seeing this error for the first time:
These are versions I have installed:
The text was updated successfully, but these errors were encountered: