This repository was archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
This repository was archived by the owner on Aug 9, 2024. It is now read-only.
Install revscoring on OS X #310
Copy link
Copy link
Open
Description
1. Per documentation on README
$ brew install aspell --with-all-languages
$ brew install enchant
$ mkvirtualenv wikiai_revscoring
pip install --no-binary pyenchant revscoring
...
Collecting scipy<0.17.999,>=0.13.3 (from revscoring)
Using cached scipy-0.17.1.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/numpy/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
No local packages or working download links found for numpy>=1.6.2
...2. This looks like a known issue!
Per comment here, installing numpy first and then installing revscoring is the solution.
$ pip install numpy
$ pip install --no-binary pyenchant revscoring
Running setup.py bdist_wheel for scikit-learn ... error
Complete output from command /Users/bkowshik/.virtualenvs/wikiai_revscoring/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/pip-build-r55j2ov3/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/tmpdj729dstpip-wheel- --python-tag cp36:
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/pip-build-r55j2ov3/scikit-learn/setup.py", line 247, in <module>
setup_package()
File "/private/var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/pip-build-r55j2ov3/scikit-learn/setup.py", line 237, in setup_package
.format(scipy_req_str, instructions))
ImportError: Scientific Python (SciPy) is not installed.
scikit-learn requires SciPy >= 0.9.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html3. Should scipy be installated seperately as well?
$ pip install scipy
$ pip install --no-binary pyenchant revscoring
...
----------------------------------------
Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
...
Running setup.py install for pyenchant ... error
Complete output from command /Users/bkowshik/.virtualenvs/wikiai_revscoring/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/pip-build-w7tlixyc/pyenchant/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/_0/75g04h290zz51r_l4k_f22zr0000gn/T/pip-vtwens7f-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/bkowshik/.virtualenvs/wikiai_revscoring/bin/../include/site/python3.6/pyenchant:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/bkowshik/.virtualenvs/wikiai_revscoring/lib/python3.6/site-packages/setuptools/__init__.py", line 11, in <module>
from setuptools.extension import Extension
File "/Users/bkowshik/.virtualenvs/wikiai_revscoring/lib/python3.6/site-packages/setuptools/extension.py", line 8, in <module>
from .dist import _get_unpatched
File "/Users/bkowshik/.virtualenvs/wikiai_revscoring/lib/python3.6/site-packages/setuptools/dist.py", line 19, in <module>
import pkg_resources
File "/Users/bkowshik/.virtualenvs/wikiai_revscoring/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1724, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'4. What if I remove --no-binary?
$ pip install pyenchant revscoring
...
Successfully installed pyenchant-1.6.8 revscoring-1.3.10Questions
- Is the ^ procesure, (step 4) the right way to install
revscoring? - Should we use the Docker image instead?
cc: @halfak @geohacker
Metadata
Metadata
Assignees
Labels
No labels