semanticize / semanticizer

Entity Linking for the masses
http://semanticize.uva.nl/
GNU General Public License v3.0
56 stars 15 forks source link

replace python-Levenshtein with leven #28

Closed larsmans closed 10 years ago

larsmans commented 10 years ago

Fixes #18. Untested.

dodijk commented 10 years ago

I'm sorry to say we're not there yet:

u019823:semanticizer dodijk$ easy_install leven
Searching for leven
Reading http://pypi.python.org/simple/leven/
Best match: leven 1.0.4
Downloading https://pypi.python.org/packages/source/l/leven/leven-1.0.4.tar.gz#md5=52506c7cf33d09b273314935b7e16588
Processing leven-1.0.4.tar.gz
Writing /var/folders/sj/vzvf23js0t58mhx5l6dbkpqm0000gn/T/easy_install-kzNvjx/leven-1.0.4/setup.cfg
Running leven-1.0.4/setup.py -q bdist_egg --dist-dir /var/folders/sj/vzvf23js0t58mhx5l6dbkpqm0000gn/T/easy_install-kzNvjx/leven-1.0.4/egg-dist-tmp-D39LxE
ld: warning: directory not found for option '-L/tmp/_py/libraries/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib'
zip_safe flag not set; analyzing archive contents...
Adding leven 1.0.4 to easy-install.pth file

Installed /Users/dodijk/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/leven-1.0.4-py2.7-macosx-10.6-x86_64.egg
Processing dependencies for leven
Searching for six
Reading http://pypi.python.org/simple/six/
Best match: six 1.4.1
Downloading https://pypi.python.org/packages/source/s/six/six-1.4.1.tar.gz#md5=bdbb9e12d3336c198695aa4cf3a61d62
Processing six-1.4.1.tar.gz
Writing /var/folders/sj/vzvf23js0t58mhx5l6dbkpqm0000gn/T/easy_install-3UJaGw/six-1.4.1/setup.cfg
Running six-1.4.1/setup.py -q bdist_egg --dist-dir /var/folders/sj/vzvf23js0t58mhx5l6dbkpqm0000gn/T/easy_install-3UJaGw/six-1.4.1/egg-dist-tmp-FUtgjQ
zip_safe flag not set; analyzing archive contents...
Adding six 1.4.1 to easy-install.pth file

Installed /Users/dodijk/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/six-1.4.1-py2.7.egg
Finished processing dependencies for leven

But then...

u019823:semanticizer dodijk$ python -m semanticizer.server
Traceback (most recent call last):
  File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/Applications/Canopy.app/appdata/canopy-1.1.0.1371.macosx-x86_64/Canopy.app/Contents/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/dodijk/Desktop/semanticizer/semanticizer/server/__main__.py", line 17, in <module>
    from .. import procpipeline
  File "semanticizer/procpipeline.py", line 19, in <module>
    from .processors.features import FeaturesProcessor, ArticleFeaturesProcessor, \
  File "semanticizer/processors/features.py", line 16, in <module>
    from . import feature as features
  File "semanticizer/processors/feature.py", line 20, in <module>
    from leven import levenshtein
  File "/Users/dodijk/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/leven-1.0.4-py2.7-macosx-10.6-x86_64.egg/leven/__init__.py", line 1, in <module>
    from ._levenshtein import levenshtein
ImportError: No module named _levenshtein
larsmans commented 10 years ago

leven install fine now, merged.