Skip to content
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

ImportError: No module named _saslwrapper, #52

Open
atuldata opened this issue Aug 6, 2015 · 2 comments
Open

ImportError: No module named _saslwrapper, #52

atuldata opened this issue Aug 6, 2015 · 2 comments

Comments

@atuldata
Copy link

atuldata commented Aug 6, 2015

Traceback (most recent call last):
File "atul_api.py", line 14, in
database='rashmi') as conn:
File "/usr/lib64/python2.6/site-packages/pyhs2/init.py", line 6, in connect
from .connections import Connection
File "/usr/lib64/python2.6/site-packages/pyhs2/connections.py", line 6, in
import sasl
File "/usr/lib64/python2.6/site-packages/sasl/init.py", line 1, in
from sasl.saslwrapper import *
File "/usr/lib64/python2.6/site-packages/sasl/saslwrapper.py", line 6, in
import _saslwrapper
ImportError: No module named _saslwrapper

@kkennedy314
Copy link

The SASL wrapper for Python needs to be installed. On CentOS/RHEL, you can do the following:
sudo yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64

Additionally, you can also do it from source:
curl -O -L ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz
tar xzf cyrus-sasl-2.1.2.26.tar.gz
cd cyrus-sasl-2.1.26.tar.gz
./configure && make install

@adtrombley
Copy link

This didn't work, error

atrombley@RPTTEST102 ~/Desktop/rfc (master)
$ tar xzf C:\Users\atrombley\Desktop\rfc\cyrus-sasl-2.1.2.26.tar.gz
tar (child): Cannot execute remote shell: No such file or directory
tar (child): C:UsersatrombleyDesktoprfccyrus-sasl-2.1.2.26.tar.gz: Cannot open:
I/O error
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants