Import Error with version 1.6.0
See original GitHub issueCreated a new env with conda
conda create -n spacy python=3.5 ipython
and then install spacy (1.6.0) with pip (conda still has version 0.101.0)
pip install spacy
But I still get this error.
In [1]: import spacy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-c080f6458562> in <module>()
----> 1 import spacy
/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/__init__.py in <module>()
4 from .about import __version__
5
----> 6 from . import en
7 from . import de
8 from . import zh
/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/en/__init__.py in <module>()
6 from ..util import match_best_version
7 from ..util import get_data_path
----> 8 from ..language import Language
9 from ..lemmatizer import Lemmatizer
10 from ..vocab import Vocab
/home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/language.py in <module>()
15
16
---> 17 from .tokenizer import Tokenizer
18 from .vocab import Vocab
19 from .tagger import Tagger
ImportError: /home/alexis/anaconda3/envs/spacy/lib/python3.5/site-packages/spacy/tokenizer.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E
There is a similar issue here https://github.com/explosion/sense2vec/issues/19 but that solution did not help.
Note, I don’t have that problem on MacOS Sierra.
Environment
- Operating System: Ubuntu 16.04.1 LTS
% conda list
# packages in environment at /home/alexis/anaconda3/envs/spacy:
#
cloog 0.18.0 0
cloudpickle 0.2.2 <pip>
cymem 1.31.2 <pip>
cytoolz 0.8.2 <pip>
decorator 4.0.11 py35_0
flexmock 0.10.2 <pip>
gmp 6.1.0 0
ipython 5.2.2 py35_0
ipython_genutils 0.1.0 py35_0
isl 0.15 0
libgcc 5.2.0 0
mpc 1.0.3 0
mpfr 3.1.5 0
murmurhash 0.26.4 <pip>
numpy 1.12.0 <pip>
openssl 1.0.2k 0
path.py 10.1 py35_0
pathlib 1.0.1 <pip>
pexpect 4.2.1 py35_0
pickleshare 0.7.4 py35_0
pip 9.0.1 py35_1
plac 0.9.6 <pip>
preshed 0.46.4 <pip>
prompt_toolkit 1.0.9 py35_0
ptyprocess 0.5.1 py35_0
pygments 2.1.3 py35_0
python 3.5.2 0
readline 6.2 2
semver 2.7.5 <pip>
setuptools 27.2.0 py35_0
simplegeneric 0.8.1 py35_1
six 1.10.0 py35_0
spacy 1.6.0 <pip>
sputnik 0.9.3 <pip>
sqlite 3.13.0 0
thinc 6.2.0 <pip>
tk 8.5.18 0
toolz 0.8.2 <pip>
tqdm 4.11.2 <pip>
traitlets 4.3.1 py35_0
ujson 1.35 <pip>
wcwidth 0.1.7 py35_0
wheel 0.29.0 py35_0
xz 5.2.2 1
zlib 1.2.8 3
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Scala-xml (Scala 2.10.x) import error (Spark 1.6.0)
I started off using Scala 2.11.7 but then I realized that Spark 1.6.0 uses scala 2.10.5. Does any one know why I am...
Read more >The 'xIdcProfile' field is protected and may not be modified.
Oracle WebCenter Content - Version 11.1.1.6.0 and later: CMU Bundle Import Error: The 'xIdcProfile' field is protected and may not be ...
Read more >Installation — pytorch_geometric documentation
Find the CUDA version PyTorch was installed with: python -c "import torch; print(torch.version.cuda)" >>> 11.6. Install the relevant packages:.
Read more >SciPy 1.7.0 Release Notes — SciPy v1.9.3 Manual
SciPy 1.7.0 is the culmination of 6 months of hard work. It contains many new features, numerous bug-fixes, improved test coverage and better...
Read more >Installing PowerShellGet - PowerShell | Microsoft Learn
PowerShell 6.0 shipped with version 1.6.0 of PowerShellGet. ... Do you want PowerShellGet to install and import the NuGet provider now?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
conda-forge
channel now has spaCy packages up to the latest release. You can install them via:conda install -c conda-forge spacy
I’m facing the same problem on MacOS Sierra with a new Miniconda installation.
My error message is a tad different though and might be more helpful:
Ending in:
I have positively no clue where the
.env/local/lib/python2.7/site-packages/Cython/Includes/numpy/
import path come from. No Python 2.7 installed and no .env directory there either.