Skip to content

how do use dedupe in C# code ? #592

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

Closed
omansak opened this issue Apr 5, 2019 · 2 comments
Closed

how do use dedupe in C# code ? #592

omansak opened this issue Apr 5, 2019 · 2 comments

Comments

@omansak
Copy link

omansak commented Apr 5, 2019

I must make a Web Service with .Net that should communication to dedupe (https://github.com/dedupeio/dedupe)

I used IronPython and i got import 'No Module Named builtins'
I used PythonNet and i got System.DllNotFoundException: 'DLL 'python27' not load.
Visual Studio 2017 (15.9)
Python (3.5 or 3.7 and 2.7)
PythonNet last version build from master branch (Python.Runtime.dll)

I tried a lot of things and i failed all time. I couldn't connect with .net and python , always get errors.

I need run a function from py file to returns data. How do i make ?

my .py file

import sys
sys.path.append("C:\\Users\\**\\AppData\\Local\\\\Programs\\Python\\Python37-32\\python37.zip")            
sys.path.append("C:\\Users\\**\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs")             
sys.path.append("C:\\Users\\**\\AppData\\Local\\Programs\\Python\\Python37-32\\lib")               
sys.path.append("C:\\Users\\**\\AppData\\Local\\Programs\\Python\\Python37-32")               
sys.path.append("C:\\Users\\**\\AppData\\Roaming\\Python\\Python37\\site-packages")                
sys.path.append("C:\\Users\\**\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages")
sys.path.append("C:\\Users\\**\\Desktop\\Files\\dedupe-master\dedupe")

import csv
import re
import dedupe
from unidecode import unidecode


def readData(filename):
.....
@lostmsu
Copy link

lostmsu commented May 8, 2019

This is not really the right repository to ask in. Your question appears to be about https://github.com/pythonnet/pythonnet/

Anyway, you need to ensure, that the directory, where you have python27.dll is listed in your PATH. See https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10

@slozier
Copy link
Contributor

slozier commented May 9, 2019

Unfortunately dedupe has a dependency on numpy so it won't work with IronPython.

@slozier slozier closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants