dedupeio / dedupe-examples

:id: Examples for using the dedupe library
MIT License
406 stars 214 forks source link

error importing dedupe in csv example: "cannot import name 'LBFGSError'" #59

Closed wkniffin closed 7 years ago

wkniffin commented 7 years ago

Hello! I am getting an error when I try to import dedupe with a simple: import dedupe

I am running my python with anaconda3 in a python 3.5 environment on Windows. The error verbatim is: ImportError: cannot import name 'LBFGSError'

I didn't think that dedupe had any errors while installing via pip.

The error occurs in the file "init.py" in the lbfgs folder. The code is as follows:

"""
LBFGS and OWL-QN optimization algorithms

Python wrapper around liblbfgs.
"""

from ._lowlevel import LBFGS, LBFGSError

def fmin_lbfgs(f, x0, progress=None, args=()):
    """Minimize a function using LBFGS or OWL-QN.

    See LBFGS.minimize for full documentation.
    """
    return LBFGS().minimize(f, x0, progress=progress, args=args)

Thanks for any help you can provide!

fgregg commented 7 years ago

I'm sorry, I can't support anaconda.