GithubHelp home page GithubHelp logo

Comments (4)

lorenzofantunes avatar lorenzofantunes commented on August 30, 2024 1

Hey good people.

So, the package is old (~2020), and the python version and libraries had changed A LOT since them.

For me to use the library I had to do some workarounds:

I create a VM to use old python version

I was using a VM with Ubuntu 20.04

Use a python version that was "current" around 2020

I used python 3.8 and it worked.

apt-get update
apt-get install python3-pip

You have to set the libs versions also to be the versions around 2020

Depending in with machine and OS, you may need to install more or less packages. In my case what I need to install:

python3.8 -m pip install setuptools==50.0.3 wheel==0.36.1 torch==1.8 torchtext==0.9
python3.8 -m pip install pybind11==2.6.1 numpy==1.18.0
python3.8 -m pip install fasttext pandas==1.2.0 scipy==1.6.0
python3.8 -m pip install deepmatcher

*I think it's importante for you to use the python3.X -m pip, because it'll install the packages in the right python path.

Import the library

After installing the packages I used:
python3.8

And imported the library:
import deepmatcher as dp

And that was that.

from deepmatcher.

patriciaaa82 avatar patriciaaa82 commented on August 30, 2024

Hi,

I'm having the same error. I executed:
pip install deepmatcher

Then executed:
import deepmatcher

And got the ModuleNotFoundError: No module named 'torchtext.legacy'

I have this versions (installed with pip)
torch==1.8.0
torchdata==0.6.1
torchtext==0.9.0

Could you please help me out with this issue?
Thanks

from deepmatcher.

dheeraj-pandey07 avatar dheeraj-pandey07 commented on August 30, 2024

I would think, someone can pick up and make the upgrades.. I tried a bunch of stuff but couldnt get it working. If I make a breakthrough - will send pull request

from deepmatcher.

Aatif123-hub avatar Aatif123-hub commented on August 30, 2024

I am still getting the error even if i downgrade the python version

from deepmatcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.