Miserlou / Miserlou/lambda-packages

version `GLIBCXX_3.4.20' not found

Open
#67 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
728
Forks
157
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use a python library, Korean NLP in Python as below.

from konlpy.tag import Twitter

It works fine on local environment but it fails on lambda environment.

 $ zappa tail dev 

  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/var/task/utils/jobs.py", line 3, in <module>
  from konlpy.tag import Twitter
  File "/var/task/konlpy/__init__.py", line 15, in <module>
  from . import tag
  File "/var/task/konlpy/tag/__init__.py", line 4, in <module>
  from ._hannanum import Hannanum
  File "/var/task/konlpy/tag/_hannanum.py", line 7, in <module>
  import jpype
  File "/var/task/jpype/__init__.py", line 18, in <module>
  from ._jpackage import *
  File "/var/task/jpype/_jpackage.py", line 18, in <module>
  import _jpype
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /var/task/_jpype.cpython-36m-x86_64-linux-gnu.so)

Can somebody explain how to avoid the above error?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback from utils/jobs.py and the import chain through konlpy, jpype, and _jpype.cpython-36m-x86_64-linux-gnu.so. Reproduce the import in the AWS Lambda environment using the zappa tail dev workflow, then identify a deployment configuration or dependency combination that avoids the libstdc++ GLIBCXX_3.4.20 error and verify the import succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.