Giter Site home page Giter Site logo

python-sasl's People

Contributors

toddlipcon avatar ecederstrand avatar qwertymaniac avatar

Stargazers

Jiacai Liu avatar Will West avatar Brad Ruderman avatar Dominic LoBue avatar  avatar

Watchers

 avatar Angel Kafazov avatar James Cloos avatar Goh Kenneth avatar

python-sasl's Issues

Stress test Cython version

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?

Required C Compilation

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!

Prompting Password

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!

Wrapper uses <unistd.h>, which doesn't exist on Windows

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?

Library file libsasl2.so.2 not found

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

OSX Usage

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.