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

Jupyter Notebook installation not working #71

Open
junotown opened this issue Sep 16, 2021 · 1 comment
Open

Jupyter Notebook installation not working #71

junotown opened this issue Sep 16, 2021 · 1 comment

Comments

@junotown
Copy link

I cannot get string_grouper to work in jupyter notebook as it is not building the sparse_dot_topn module, wondering if anyone could help?

`Collecting string-grouper
Using cached string_grouper-0.5.0-py3-none-any.whl (20 kB)
Requirement already satisfied: scikit-learn in /opt/conda/lib/python3.9/site-packages (from string-grouper) (0.24.2)
Collecting sparse-dot-topn>=0.3.1
Using cached sparse_dot_topn-0.3.1.tar.gz (17 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: pandas>=0.25.3 in /opt/conda/lib/python3.9/site-packages (from string-grouper) (1.3.2)
Requirement already satisfied: numpy in /opt/conda/lib/python3.9/site-packages (from string-grouper) (1.20.3)
Requirement already satisfied: scipy in /opt/conda/lib/python3.9/site-packages (from string-grouper) (1.7.1)
Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.9/site-packages (from pandas>=0.25.3->string-grouper) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.9/site-packages (from pandas>=0.25.3->string-grouper) (2021.1)
Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas>=0.25.3->string-grouper) (1.16.0)
Requirement already satisfied: cython>=0.29.15 in /opt/conda/lib/python3.9/site-packages (from sparse-dot-topn>=0.3.1->string-grouper) (0.29.24)
Requirement already satisfied: setuptools>=42 in /opt/conda/lib/python3.9/site-packages (from sparse-dot-topn>=0.3.1->string-grouper) (57.4.0)
Requirement already satisfied: joblib>=0.11 in /opt/conda/lib/python3.9/site-packages (from scikit-learn->string-grouper) (1.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in /opt/conda/lib/python3.9/site-packages (from scikit-learn->string-grouper) (2.2.0)
Building wheels for collected packages: sparse-dot-topn
Building wheel for sparse-dot-topn (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.9 /opt/conda/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpi5pog1_w
cwd: /tmp/pip-install-z5tecldu/sparse-dot-topn_829b4cf792fa4587a955c95bc64c1bbb
Complete output (38 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/awesome_cossim_topn.py -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/init.py -> build/lib.linux-x86_64-3.9/sparse_dot_topn
running egg_info
writing sparse_dot_topn.egg-info/PKG-INFO
writing dependency_links to sparse_dot_topn.egg-info/dependency_links.txt
writing requirements to sparse_dot_topn.egg-info/requires.txt
writing top-level names to sparse_dot_topn.egg-info/top_level.txt
reading manifest file 'sparse_dot_topn.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'sparse_dot_topn.egg-info/SOURCES.txt'
copying sparse_dot_topn/array_wrappers.pxd -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/array_wrappers.pyx -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/sparse_dot_topn.pyx -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/sparse_dot_topn_parallel.h -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/sparse_dot_topn_source.h -> build/lib.linux-x86_64-3.9/sparse_dot_topn
copying sparse_dot_topn/sparse_dot_topn_threaded.pyx -> build/lib.linux-x86_64-3.9/sparse_dot_topn
running build_ext
cythoning ./sparse_dot_topn/array_wrappers.pyx to ./sparse_dot_topn/array_wrappers.cpp
/tmp/pip-build-env-93__ikic/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-z5tecldu/sparse-dot-topn_829b4cf792fa4587a955c95bc64c1bbb/sparse_dot_topn/array_wrappers.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
cythoning ./sparse_dot_topn/sparse_dot_topn.pyx to ./sparse_dot_topn/sparse_dot_topn.cpp
/tmp/pip-build-env-93__ikic/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-z5tecldu/sparse-dot-topn_829b4cf792fa4587a955c95bc64c1bbb/sparse_dot_topn/sparse_dot_topn.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
cythoning ./sparse_dot_topn/sparse_dot_topn_threaded.pyx to ./sparse_dot_topn/sparse_dot_topn_threaded.cpp
/tmp/pip-build-env-93__ikic/normal/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-z5tecldu/sparse-dot-topn_829b4cf792fa4587a955c95bc64c1bbb/sparse_dot_topn/sparse_dot_topn_threaded.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'sparse_dot_topn.array_wrappers' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/sparse_dot_topn
gcc -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/include/python3.9 -I/tmp/pip-build-env-93__ikic/normal/lib/python3.9/site-packages/numpy/core/include -c ./sparse_dot_topn/array_wrappers.cpp -o build/temp.linux-x86_64-3.9/./sparse_dot_topn/array_wrappers.o -std=c++0x -pthread -O3
error: command 'gcc' failed: No such file or directory

ERROR: Failed building wheel for sparse-dot-topn
Failed to build sparse-dot-topn
ERROR: Could not build wheels for sparse-dot-topn which use PEP 517 and cannot be installed directly`

@ParticularMiner
Copy link
Contributor

@junotown

Sorry for the late reply. It looks like you need to install gcc in order to successfully install string_grouper.

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

2 participants