Skip to content

Error on installing this module on Ubuntu  #8

Description

@GreatBahram

Hello there,

I want to install this package, after installing libicapapi dependencies on my system, I still cannot install it.

I got this error message when I tried to install it via pip install icapclient3:

  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d6pnun5q
       cwd: /tmp/pip-install-6bp7xdah/icapclient3/
  Complete output (16 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'icapclient' extension
  creating build
  creating build/temp.linux-x86_64-3.8
  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 -I/usr/include/python3.8 -c icapclient.c -o build/temp.linux-x86_64-3.8/icapclient.o -std=gnu99 -Wextra -D_REENTRANT -g -O2 -fdebug-prefix-map=/build/c-icap-PpBRfz/c-icap-0.5.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap
  In file included from /usr/include/c_icap/request.h:31,
                   from cicap_compat.h:23,
                   from ICAPConnection.h:22,
                   from icapclient.c:21:
  /usr/include/c_icap/net_io.h:37:10: fatal error: openssl/bio.h: No such file or directory
     37 | #include <openssl/bio.h>
        |          ^~~~~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for icapclient3
  Running setup.py clean for icapclient3
Failed to build icapclient3
Installing collected packages: icapclient3
    Running setup.py install for icapclient3 ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-w5fwlki3/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/bahram/.local/include/python3.8/icapclient3
         cwd: /tmp/pip-install-6bp7xdah/icapclient3/
    Complete output (16 lines):
    running install
    running build
    running build_ext
    building 'icapclient' extension
    creating build
    creating build/temp.linux-x86_64-3.8
    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 -I/usr/include/python3.8 -c icapclient.c -o build/temp.linux-x86_64-3.8/icapclient.o -std=gnu99 -Wextra -D_REENTRANT -g -O2 -fdebug-prefix-map=/build/c-icap-PpBRfz/c-icap-0.5.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap
    In file included from /usr/include/c_icap/request.h:31,
                     from cicap_compat.h:23,
                     from ICAPConnection.h:22,
                     from icapclient.c:21:
    /usr/include/c_icap/net_io.h:37:10: fatal error: openssl/bio.h: No such file or directory
       37 | #include <openssl/bio.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 sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6bp7xdah/icapclient3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-w5fwlki3/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/bahram/.local/include/python3.8/icapclient3 Check the logs for full command output.

I tried to build it via python3 setup.py build:

running build
running build_ext
building 'icapclient' extension
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 -I/usr/include/python3.8 -c icapclient.c -o build/temp.linux-x86_64-3.8/icapclient.o -std=gnu99 -Wextra -D_REENTRANT -g -O2 -fdebug-prefix-map=/build/c-icap-PpBRfz/c-icap-0.5.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap
In file included from /usr/include/c_icap/request.h:31,
                 from cicap_compat.h:23,
                 from ICAPConnection.h:22,
                 from icapclient.c:21:
/usr/include/c_icap/net_io.h:37:10: fatal error: openssl/bio.h: No such file or directory
   37 | #include <openssl/bio.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions