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.

Getting ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6 in Python 3.5 Ubuntu 16.04

See original GitHub issue

I am trying to replicate Taxi Data Set Analysis using TFX as in https://github.com/tensorflow/tfx/tree/master/tfx/examples/chicago_taxi_pipeline.

I am using Python3.5 in Ubuntu 16.04. My virtual environment base path is at /home/user/Environments/tfx_py3

Here is the error log while running airflow webserver -p 8080

[2019-07-11 14:32:01,072] {init.py:305} INFO - Filling up the DagBag from /home/user/airflow/dags [2019-07-11 14:32:01,855] {init.py:416} ERROR - Failed to import: /home/user/airflow/dags/taxi/taxi_pipeline_simple.py Traceback (most recent call last): File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/airflow/models/init.py”, line 413, in process_file m = imp.load_source(mod_name, filepath) File “/home/user/Environments/tfx_py3/lib/python3.5/imp.py”, line 172, in load_source module = _load(spec) File “<frozen importlib._bootstrap>”, line 693, in _load File “<frozen importlib._bootstrap>”, line 673, in _load_unlocked File “<frozen importlib._bootstrap_external>”, line 665, in exec_module File “<frozen importlib._bootstrap>”, line 222, in _call_with_frames_removed File “/home/user/airflow/dags/taxi/taxi_pipeline_simple.py”, line 22, in <module> from tfx.components.evaluator.component import Evaluator File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/tfx/components/evaluator/component.py”, line 23, in <module> from tfx.components.base import base_driver File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/tfx/components/base/base_driver.py”, line 25, in <module> from tfx.orchestration import metadata File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/tfx/orchestration/metadata.py”, line 26, in <module> from ml_metadata.metadata_store import metadata_store File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/ml_metadata/metadata_store/metadata_store.py”, line 28, in <module> from ml_metadata.metadata_store import pywrap_tf_metadata_store_serialized as metadata_store_serialized File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/ml_metadata/metadata_store/pywrap_tf_metadata_store_serialized.py”, line 28, in <module> _pywrap_tf_metadata_store_serialized = swig_import_helper() File “/home/user/Environments/tfx_py3/lib/python3.5/site-packages/ml_metadata/metadata_store/pywrap_tf_metadata_store_serialized.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tf_metadata_store_serialized’, fp, pathname, description) File “/home/user/Environments/tfx_py3/lib/python3.5/imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “/home/user/Environments/tfx_py3/lib/python3.5/imp.py”, line 342, in load_dynamic return _load(spec) ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22’ not found (required by /home/user/Environments/tfx_py3/lib/python3.5/site-packages/ml_metadata/metadata_store/_pywrap_tf_metadata_store_serialized.so) [2019-07-11 14:32:02 +0530] [23633] [INFO] Handling signal: ttou [2019-07-11 14:32:02 +0530] [23835] [INFO] Worker exiting (pid: 23835)

Can you please guide further ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JFishLovercommented, Mar 10, 2021

ow do i solve this?

did you solved it?

0reactions
Chokerinocommented, Nov 5, 2020

apt-get is not available for me. How do i solve this? I install gcc suing conda but still get ImportError: /lib64/libstdc++.so.6: version CXXABI_1.3.8’ not found (required by /home/bhavay18384/.conda/envs/myenv/lib/python3.7/site-packages/sklearn/svm/_libsvm.cpython-37m-x86_64-linux-gnu.so)`

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zlib import error on python 3.5 - Ask Ubuntu
Try to install the python in such a way. It includes zlib support ./configure --with-zlib make sudo make altinstall.
Read more >
python 3.5 on Ubuntu 16.04 has dict syntax error for installed ...
One of the packages I was installing had a dependency of importlib-metadata , but the version wasn't pinned so I ended up with...
Read more >
Ubuntu 16.04: How to install OpenCV - PyImageSearch
When I (1) open up a Python shell that imports OpenCV or (2) execute a Python script that calls OpenCV, I get an...
Read more >
How to upgrade to Python 3.9.0 on Ubuntu 18.04 LTS - isw blog
Install Python 3.9.0 · Step 1: Add the repository and update · Step 2: Install the Python 3.9.0 package using apt-get · Step...
Read more >
Installing OpenCV in Ubuntu for Python 3 - Cyan Infinite -
Installing OpenCV in linux for Python 3 is not that straight forward, so ... We'll be using a 64 bit Ubuntu 16.04 system,...
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