[Solved] pyhive error: Could not start SASL: b’Error in sasl_client_start (-4) SASL(-4)

[Solved] Pyhive Error: Could Not Start Sasl: B’error In Sasl_Client_Start (-4) Sasl(-4)

I’ve this drawback when utilizing pyhive, I’m utilizing anaconda3. I’ve checked many posts however I can’t resolve it.

At first I came upon that sasl wants to make use of some dll recordsdata in the E:YingYongRJAnacondaLibsite-packagessaslsasl2 listing.

Finally discovered that anaconda3 moved this folder sasl2 on the finish of the tackle to E:YingYongRJAnacondaLibrarybin, ensuing in this system not studying the placement.

Use the next code: administrator console paste code.

FOR /F "usebackq delims=" %A IN (`python -c "from importlib import util;import os;print(os.path.join(os.path.dirname(util.find_spec('sasl'). origin),'sasl2'))"`) DO (
REG ADD "HKEY_LOCAL_MACHINESOFTWARECarnegie MellonProject CyrusSASL Library" /v SearchPath /t REG_SZ /d "%A"
)

The above code is making a search path for lib in the registry. But it nonetheless doesn’t work, we have to change it a bit extra.

win+R and kind regedit

regedit and click on on the trail: HKEY_LOCAL_MACHINESOFTWARECarnegie MellonProject CyrusSASL Library

Change the worth of SearchPath to E:YingYongRJAnacondaLibrarybinsasl2 on it (take note of change to the tackle of their anaconda)

Then it’s high-quality

Read More:

This entry was posted in Python and tagged pyhive error on by Robins.

Leave a Reply

Your email address will not be published. Required fields are marked *