BLLIP / bllip-parser

BLLIP reranking parser (also known as Charniak-Johnson parser, Charniak parser, Brown reranking parser) See http://pypi.python.org/pypi/bllipparser/ for Python module.
http://bllip.cs.brown.edu/
227 stars 53 forks source link

python import failing with undefined symbol #59

Closed moleary closed 7 years ago

moleary commented 7 years ago

Hi,

I've installed and re-installed bllipparser a few times on Ubuntu Xenial 16.04 and I keep getting the same import errors in python (anaconda). Has anyone else seen this issue? Here is my attempt at an import:

Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import bllipparser Traceback (most recent call last): File "", line 1, in File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/init.py", line 399, in from .RerankingParser import RerankingParser, Tree, Sentence, tokenize File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/RerankingParser.py", line 19, in from . import CharniakParser as parser File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/CharniakParser.py", line 28, in _CharniakParser = swig_import_helper() File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/CharniakParser.py", line 24, in swig_import_helper _mod = imp.load_module('_CharniakParser', fp, pathname, description) ImportError: /home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/_CharniakParser.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE

dmcc commented 7 years ago

Looks like it might be an Anaconda issue ( https://github.com/stan-dev/pystan/issues/269, https://github.com/stan-dev/pystan/issues/292). Are you using "pip install" or "conda install"?

On Fri, Jul 14, 2017 at 6:53 PM, moleary notifications@github.com wrote:

Hi,

I've installed and re-installed bllipparser a few times on Ubuntu Xenial 16.04 and I keep getting the same import errors in python (anaconda). Has anyone else seen this issue? Here is my attempt at an import:

Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org

import bllipparser Traceback (most recent call last): File "", line 1, in File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/bllipparser/ init.py", line 399, in from .RerankingParser import RerankingParser, Tree, Sentence, tokenize File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/ bllipparser/RerankingParser.py", line 19, in from . import CharniakParser as parser File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/ bllipparser/CharniakParser.py", line 28, in _CharniakParser = swig_import_helper() File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/ bllipparser/CharniakParser.py", line 24, in swig_import_helper _mod = imp.load_module('_CharniakParser', fp, pathname, description) ImportError: /home/ubuntu/anaconda2/lib/python2.7/site-packages/ bllipparser/_CharniakParser.so: undefined symbol: _ZTVNSt7_cxx1118basic stringstreamIcSt11char_traitsIcESaIcEEE

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BLLIP/bllip-parser/issues/59, or mute the thread https://github.com/notifications/unsubscribe-auth/AAm5ZXiw8ARbsNG2n7JnzlMcYulogJDEks5sOBusgaJpZM4OY4mw .

moleary commented 7 years ago

That's what it was. It works fine with the standard python install. Thanks for the help!