question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sdk is not building in Raspian/Python3.6

See original GitHub issue
  • OS and version used: <VERSION> Raspbian GNU/Linux 9

  • Python runtime used: <VERSION> python 3.6

  • SDK version used: <VERSION> latest stable (i think)

Description of the issue:

I’m trying to build the sdk in raspian and i’m getting this error at very end of the build process. I don`t know what i have to do now.

Code sample exhibiting the issue:

./setup.sh --python-version 3 ./build.sh --build-python 3

Console log of the issue:

~/azure-iot-sdk-python copy iothub_client library to samples folder copy iothub_client_mock library to tests folder copy iothub_service_client library to samples folder copy iothub_service_client_mock library to tests folder copy provisioning_device_client library to samples folder copy provisioning_device_client_mock library to tests folder python3 iothub_client_ut.py Traceback (most recent call last): File “iothub_client_ut.py”, line 9, in <module> import iothub_client_mock ImportError: /home/pi/azure-iot-sdk-python/device/tests/iothub_client_mock.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LinuxChristiancommented, Jul 24, 2018

Sorry for the late reply. Took a while to test a couple of different combinations. I still get the error,

Scanning dependencies of target iothub_service_client_python
[100%] Building CXX object python_service_client/src/CMakeFiles/iothub_service_client_python.dir/iothub_service_client_python.cpp.o
[100%] Linking CXX shared library iothub_service_client.so
[100%] Built target iothub_service_client_python
Scanning dependencies of target iothub_service_client_mock
[100%] Building CXX object python_service_client/tests/CMakeFiles/iothub_service_client_mock.dir/iothub_service_client_mock.cpp.o
[100%] Building CXX object python_service_client/tests/CMakeFiles/iothub_service_client_mock.dir/__/src/iothub_service_client_python.cpp.o
[100%] Linking CXX shared library iothub_service_client_mock.so
[100%] Built target iothub_service_client_mock
completed run...
Tue 24 Jul 15:21:11 CEST 2018
Test project /home/pi/azure-iot-sdk-python/c/cmake/iotsdk_linux
No tests were found!!!
~/azure-iot-sdk-python
copy iothub_client library to samples folder
copy iothub_client_mock library to tests folder
copy iothub_service_client library to samples folder
copy iothub_service_client_mock library to tests folder
copy provisioning_device_client library to samples folder
copy provisioning_device_client_mock library to tests folder
python3.4 iothub_client_ut.py
Traceback (most recent call last):
  File "iothub_client_ut.py", line 9, in <module>
    import iothub_client_mock
ImportError: /home/pi/azure-iot-sdk-python/device/tests/iothub_client_mock.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv

It does not matter if gnutls and openssl installed. I have however installed the SDK using the latest pip package and that works better.

So I am happy to keep this issue closed. It may just be some strange packages on my system.

0reactions
LinuxChristiancommented, Jul 25, 2018

@pierreca I am using Libboost 1.62

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to Python3.6.8 - Raspberry Pi Forums
After writing a script on an and RPI4 with Python 3.7, I now need to port it over to an RPI Zero which...
Read more >
Python SDK Install Guide on raspberry pi 3 - Stack Overflow
I follow this page to install python SDK on raspberry pi 3. When i run " import naoqi " for Checking the installation...
Read more >
Raspberry Pi SDK setup problems - RVR - Sphero Forum
So I tried to follow the SDK setup for the Raspberry Pi. ... There is no pi_dependencies directory in the sphero-sdk-raspberrypi-python repo ...
Read more >
Installation - Freqtrade
Python3.6 or higher and the corresponding pip are assumed to be available. ... We do not advise to run hyperopt on a Raspberry...
Read more >
Installation - Numba
conda install cudatoolkit. You do not need to install the CUDA SDK from NVIDIA. ... Berryconda is a conda-based Python distribution for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found