toddlipcon / python-sasl Goto Github PK
View Code? Open in Web Editor NEWSASL wrappers for Python, borrowed from QPid
SASL wrappers for Python, borrowed from QPid
stress test where you loop connecting to impala, do some query, and close the connection a bajillion times over a weekend?
and make sure at the end of the weekend the RSS of the process is around thes ame?
I am having a few people reach out to me with different OS's (CentOS, Windows, Mac) that are having issues with getting python-sasl to install. I think it has something to do with compilation using the c compiler. Do you have any tutorials for setting up a compiler on vanilla machines and attaching to a python installation.
Thanks!
Hi Todd,
I am having an issue where the sasl is prompting for a password in the console.
I am using this wrapper as a starter:
https://github.com/BradRuderman/python-hiveserver2/blob/master/example/example.py
And am being prompted at this line 63:
ret, chosen_mech, initial_response = self.sasl.start(self.mechanism)
in:
https://github.com/BradRuderman/python-hiveserver2/blob/master/src/cloudera/thrift_sasl.py
This password prompt has no effect on the connection provided I actually pass a string. If I don't pass a string it throws this error:
Bad status: 3 (Error validating the login)
I am not sure where this validation is coming from, and why it is actually prompts when the password is not needed.
Thanks!
I'm attempting to install "python-sasl" on Windows (Python 2.7.10), using Visual C++ for Python and the Cyrus sasl library.
I've already installed stdint.h from msinttypes.googlecode.com and Cyrus sasl 2.1.25 from ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.25.tar.gz. Installing these two sets of include files eliminated some errors, but now I've gotten to an error that's not so easy to resolve:
C:\Users\user.name\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isasl -IC:\Python27\include -IC:\Python27\PC /Tpsasl/saslwrapper.cpp /Fobuild\temp.win-amd64-2.7\Release\sasl/saslwrapper.obj
saslwrapper.cpp
C:\Users\user.name\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
sasl/saslwrapper.cpp(25) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Is there a proper way to install python-sasl on Windows, or is it just not supported at the moment?
Getting error as "ImportError: libsasl2.so.2: cannot open shared object file: No such file or directory"
Just trying to import the package using import sasl and this is throwing the above mentioned error:
import sasl
Traceback (most recent call last):
File "", line 1, in
File "***/site-packages/sasl/init.py", line 15, in
from sasl.saslwrapper import *
ImportError: libsasl2.so.2: cannot open shared object file: No such file or directory
Python 3 support would be nice.
Lots of other packages depending on it:
BradRuderman/pyhs2#44
http://stackoverflow.com/questions/31701493/problems-installing-pyhs2-in-python3
Currently compiling on Python 3 fails with "PyString_AsString" and other errors.
I've built sasl with the following command:
pip install sasl --global-option=build_ext --global-option="-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sasl/"
The above installs successfully but on import i receive the error below:
(clusto)quasiben@dirty-horse:~$ python -c 'import sasl;'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/quasiben/anaconda/envs/clusto/lib/python2.7/site-packages/sasl/__init__.py", line 1, in <module>
from sasl.saslwrapper import *
File "/Users/quasiben/anaconda/envs/clusto/lib/python2.7/site-packages/sasl/saslwrapper.py", line 7, in <module>
import _saslwrapper
ImportError: dlopen(/Users/quasiben/anaconda/envs/clusto/lib/python2.7/site-packages/_saslwrapper.so, 2): Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
Referenced from: /Users/quasiben/anaconda/envs/clusto/lib/python2.7/site-packages/_saslwrapper.so
Expected in: dynamic lookup
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.