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

import fasttext_pybind as fasttext fails with undefined symbol #95

Open
HughPH opened this issue Dec 24, 2021 · 0 comments
Open

import fasttext_pybind as fasttext fails with undefined symbol #95

HughPH opened this issue Dec 24, 2021 · 0 comments

Comments

@HughPH
Copy link

HughPH commented Dec 24, 2021

This is with fasttext 0.9.2

(pile) hugh@gpuserver:/mnt/store2/the-pile$ python the_pile/pile.py --interleave_output 30 --using pile_repro
Traceback (most recent call last):
  File "the_pile/pile.py", line 3, in <module>
    import fasttext
  File "/home/hugh/anaconda3/envs/pile/lib/python3.7/site-packages/fasttext/__init__.py", line 12, in <module>
    from .FastText import train_supervised
  File "/home/hugh/anaconda3/envs/pile/lib/python3.7/site-packages/fasttext/FastText.py", line 12, in <module>
    import fasttext_pybind as fasttext
ImportError: /home/hugh/anaconda3/envs/pile/lib/python3.7/site-packages/fasttext_pybind.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv

With any version prior to 0.9.0 (and after 0.5.x) I get a different error:

Traceback (most recent call last):
  File "the_pile/pile.py", line 3, in <module>
    import fasttext
  File "/home/hugh/anaconda3/envs/pile/lib/python3.7/site-packages/fasttext/__init__.py", line 1, in <module>
    from .fasttext import skipgram
ImportError: /home/hugh/anaconda3/envs/pile/lib/python3.7/site-packages/fasttext/fasttext.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZSt28__throw_bad_array_new_lengthv

All code is entirely unchanged from this repo.

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

1 participant