Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version `GLIBCXX_3.4.20' not found #67

Open
harry81 opened this issue Nov 8, 2017 · 5 comments
Open

version `GLIBCXX_3.4.20' not found #67

harry81 opened this issue Nov 8, 2017 · 5 comments

Comments

@harry81
Copy link

harry81 commented Nov 8, 2017

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?

@Miserlou
Copy link
Owner

Miserlou commented Nov 9, 2017

Hi Hyunmin!

Are you deploying from Windows or OSX to Lambda?

Okay, looking into this some more, it seems that one of the KNLP dependencies is 'JPype', which in turn depends on Java. Java is available in the Lambda context, in theory, but

This may be solved when Conda support is added: Miserlou/Zappa#108 - but I'm not sure for now. I am actively working on this.

Either way, this is a bit of a tricky one, I'm afraid. Which is a shame, I'd love for this to work on Zappa. Thanks for trying Zappa out!

@harry81
Copy link
Author

harry81 commented Nov 10, 2017

Hi @Miserlou
So glad to know Zappa which helps me to get out of chores.

I'm deploying from linux.

 $ lsb_release -idc
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Codename:	xenial

Let me try in your way, Miserlou/Zappa#108.
Thanks :)

@problemsniper
Copy link

Were you able to resolve this issue @harry81

@harry81
Copy link
Author

harry81 commented Jul 13, 2018

@krishnakt031990 Sorry but unfortunately I couldn't make it work.

@ishita1995
Copy link

I'm facing the same issue when deploying on lambda.

  import jpype
  File "/var/task/jpype/__init__.py", line 17, 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)

How can we resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants