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.

ImportError: libboost_python-py34.so.1.55.0: cannot open shared object file: No such file or directory

See original GitHub issue

OS and version used:

raspbian

Python runtime used:

python3.5

SDK version used

# Description of the issue: Installation was performed based off of the above environment as: sudo apt-get install libpython3-dev sudo apt-get install libboost-python-dev sudo pip install azure-iothub-service-client sudo pip3 install azure-iothub-service-client

Once after that, using service SDK by importing in Python it fails with error: ImportError: libboost_python-py34.so.1.54.0: cannot open shared object file: No such file or directory

Effectively cannot use Python SDK.

# Code sample exhibiting the issue: import iothub_service_client

# Console log of the issue: From the Python console:

`import iothub_service_client

Traceback (most recent call last): File “<stdin>”, line 1, in <module> ImportError: libboost_python-py34.so.1.55.0: cannot open shared object file: No such file or directory

ImportError: libboost_python-py34.so.1.55.0: cannot open shared object file: No such file or directory `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
kaareserascommented, Jun 21, 2018

Running in a docker python:3.5 I hav copied the files

iothub_client_prov_args.py iothub_client_sample_x509.py iothub_client_args.py iothub_client_prov_hsm_sample.py iothub_client_shared_transport_sample.py iothub_client_cert.py iothub_client_sample.py readme.md iothub_client_file_upload.py iothub_client_sample_class.py

run the install: pip install azure-iothub-device-client and sudo apt-get install libboost1.55-all and apt-get update and apt-get upgrade

but when running the iothub_client_sample.py i still get this error:

python iothub_client_sample.py Traceback (most recent call last): File “iothub_client_sample.py”, line 10, in <module> import iothub_client File “/usr/local/lib/python3.5/site-packages/iothub_client/init.py”, line 1, in <module> from .iothub_client import * ImportError: libboost_python-py35.so.1.58.0: cannot open shared object file: No such file or directory

Any idea of how to get this to work

3reactions
drcrook1commented, Oct 8, 2018

I’m putting a python module inside of a container which takes a dependency on this and hitting it as well. I’ve based off of the latest miniconda3 container; which leverages python 3.7. I can set python back to a different version and have set it to 3.5 and install the libboost-dev-all.

I still get the same error:

import iothub_client Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/opt/conda/lib/python3.5/site-packages/iothub_client/init.py”, line 1, in <module> from .iothub_client import * ImportError: libboost_python-py35.so.1.58.0: cannot open shared object file: No such file or directory

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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