Skip to content

DTLSSocket installation #16

Description

@Fleaurent

I get the same error trying to install DTLSSocket, as a dependency for aiocoap[all] complaining about
"trying to run sh failed, please make sure sh is install" on all my systems:
i.e. windows, WSL and docker ubuntu container using

RUN apt-get update && apt-get install -y
python3
python3-pip
build-essential
automake
autoconf
libtool

$ pip install DTLSSocket
Collecting DTLSSocket
  Using cached dtlssocket-0.2.2.tar.gz (181 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: DTLSSocket
  Building wheel for DTLSSocket (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for DTLSSocket (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-310/DTLSSocket
      copying DTLSSocket/__init__.py -> build/lib.linux-x86_64-cpython-310/DTLSSocket
      copying DTLSSocket/DTLSSocket.py -> build/lib.linux-x86_64-cpython-310/DTLSSocket
      running build_ext
      autoreconf: export WARNINGS=
      autoreconf: Entering directory '.'
      autoreconf: configure.ac: not using Gettext
      autoreconf: running: aclocal --force
      autoreconf: configure.ac: tracing
      autoreconf: configure.ac: not using Libtool
      autoreconf: configure.ac: not using Intltool
      autoreconf: configure.ac: not using Gtkdoc
      autoreconf: running: /usr/bin/autoconf --force
      configure.ac:74: error: possibly undefined macro: AC_DEFINE
            If this token and others are legitimate, please use m4_pattern_allow.
            See the Autoconf documentation.
      autoreconf: error: /usr/bin/autoconf failed with exit status: 1
      Running: sh -c ./autogen.sh
      Trying to run sh failed, please make sure sh is installed
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for DTLSSocket
Failed to build DTLSSocket
ERROR: Could not build wheels for DTLSSocket, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions