Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Created August 14, 2017 10:55
Show Gist options
  • Select an option

  • Save chgeuer/3a67779ad78060a2fd1bf970b804ff95 to your computer and use it in GitHub Desktop.

Select an option

Save chgeuer/3a67779ad78060a2fd1bf970b804ff95 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
WORKDIR /root
RUN apt-get -y update \
&& apt-get -y install sudo \
&& apt-get -y install git \
&& apt-get -y install cmake \
&& apt-get -y install software-properties-common \
&& apt-get -y install build-essential \
&& apt-get -y install curl \
&& apt-get -y install libcurl4-openssl-dev \
&& apt-get -y install libssl-dev \
&& apt-get -y install uuid-dev \
&& add-apt-repository -y ppa:jonathonf/python-3.6 \
&& apt-get -y update \
&& apt-get -y install python3.6 \
&& git clone --recursive https://github.com/Azure/azure-iot-sdk-python.git \
&& cd azure-iot-sdk-python/build_all/linux \
&& sed --in-place -- 's/3.5/3.6/g' ~/azure-iot-sdk-python/c/build_all/linux/build.sh \
&& ./setup.sh --python-version 3.6 \
&& ./build.sh --build-python 3.6
@chgeuer
Copy link
Copy Markdown
Author

chgeuer commented Aug 14, 2017

Generates error

Traceback (most recent call last):
  File "iothub_client_ut.py", line 9, in <module>
    import iothub_client_mock
ImportError: /root/azure-iot-sdk-python/device/tests/iothub_client_mock.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv

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