I'm having an error when running: ```pip install '...
# ingestion
r
I'm having an error when running:
Copy code
pip install 'acryl-datahub[hive]'
The error I'm getting is:
Copy code
ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-hiy7jua3
       cwd: /tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/
  Complete output (32 lines):
  /usr/local/lib/python3.8/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
    warnings.warn(
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/sasl
  copying sasl/__init__.py -> build/lib.linux-x86_64-3.8/sasl
  running egg_info
  writing sasl3.egg-info/PKG-INFO
  writing dependency_links to sasl3.egg-info/dependency_links.txt
  writing requirements to sasl3.egg-info/requires.txt
  writing top-level names to sasl3.egg-info/top_level.txt
  reading manifest file 'sasl3.egg-info/SOURCES.txt'
  reading manifest template '<http://MANIFEST.in|MANIFEST.in>'
  adding license file 'LICENSE.txt'
  writing manifest file 'sasl3.egg-info/SOURCES.txt'
  copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.8/sasl
  copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.8/sasl
  copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.8/sasl
  running build_ext
  building 'sasl.saslwrapper' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/sasl
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isasl -I/usr/include/python3.8 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-3.8/sasl/saslwrapper.o
  In file included from sasl/saslwrapper.cpp:617:
  sasl/saslwrapper.h:22:10: fatal error: sasl/sasl.h: No such file or directory
     22 | #include <sasl/sasl.h>
        |          ^~~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for sasl3
  Running setup.py clean for sasl3
Failed to build sasl3
Installing collected packages: sasl3, ruamel.yaml, ipywidgets, importlib-metadata, altair, acryl-pyhive, sqlalchemy, greenlet, great-expectations
    Running setup.py install for sasl3 ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j5ov7w7q/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/sasl3
         cwd: /tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/
    Complete output (34 lines):
    /usr/local/lib/python3.8/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
      warnings.warn(
    running install
    /usr/local/lib/python3.8/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/sasl
    copying sasl/__init__.py -> build/lib.linux-x86_64-3.8/sasl
    running egg_info
    writing sasl3.egg-info/PKG-INFO
    writing dependency_links to sasl3.egg-info/dependency_links.txt
    writing requirements to sasl3.egg-info/requires.txt
    writing top-level names to sasl3.egg-info/top_level.txt
    reading manifest file 'sasl3.egg-info/SOURCES.txt'
    reading manifest template '<http://MANIFEST.in|MANIFEST.in>'
    adding license file 'LICENSE.txt'
    writing manifest file 'sasl3.egg-info/SOURCES.txt'
    copying sasl/saslwrapper.cpp -> build/lib.linux-x86_64-3.8/sasl
    copying sasl/saslwrapper.h -> build/lib.linux-x86_64-3.8/sasl
    copying sasl/saslwrapper.pyx -> build/lib.linux-x86_64-3.8/sasl
    running build_ext
    building 'sasl.saslwrapper' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/sasl
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isasl -I/usr/include/python3.8 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-3.8/sasl/saslwrapper.o
    In file included from sasl/saslwrapper.cpp:617:
    sasl/saslwrapper.h:22:10: fatal error: sasl/sasl.h: No such file or directory
       22 | #include <sasl/sasl.h>
          |          ^~~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8rbkdeb6/sasl3_0272e4ca8ed748afae5cab58ccb4cda5/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-j5ov7w7q/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/sasl3 Check the logs for full command output.
Any thoughts? Thank you.
m
@red-window-75368: are you on linux or mac
you need the libsasl2 on the host env
r
linux
m
on linux ->
Copy code
apt-get update && apt-get install -y \
        jq \
        librdkafka-dev \
        python3-ldap \
        libldap2-dev \
        libsasl2-dev \
        libsasl2-modules \
        ldap-utils \
thank you 1
r
Thanks @mammoth-bear-12532, it worked!
b
Hi folks...got error in windows when running pip install acryl-datahub[hive]. Any solution for this?