Giter Club home page Giter Club logo

Comments (12)

ranjita-naik avatar ranjita-naik commented on May 8, 2024 1

Actually I got the installation working - used python 3.7 + torch==1.4.0. Now I'm trying to run it end to end.

from comet.

ranjita-naik avatar ranjita-naik commented on May 8, 2024

Python 3.6 and python 3.8 also gave me similar errors.

from comet.

ricardorei avatar ricardorei commented on May 8, 2024

Hey @ranjita-naik! did you installed the latest COMET version ? pip install unbabel-comet==0.1.0?

COMET was not running for windows due to FastBPE package but I removed that dependency on the latest version. I see you are having a problem with test-tube, but I dont think test-tube is a COMET dependency

from comet.

ranjita-naik avatar ranjita-naik commented on May 8, 2024
pip install unbabel-comet==0.1.0

is also failing with the same error.

from comet.

ricardorei avatar ricardorei commented on May 8, 2024

Ok ok, I'll have to create a VM and try to see why it's breaking for windows.
I'll send you some updates early next week

from comet.

ricardorei avatar ricardorei commented on May 8, 2024

That's good news! is it running well?

from comet.

ranjita-naik avatar ranjita-naik commented on May 8, 2024

No, it failed with the following error

    arg_overrides=kwargs,
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\checkpoint_utils.py", line 194, in load_model_ensemble_and_task
    task = tasks.setup_task(args)
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\tasks\__init__.py", line 17, in setup_task
    return TASK_REGISTRY[args.task].setup_task(args, **kwargs)
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\tasks\multilingual_masked_lm.py", line 74, in setup_task
    dictionary = Dictionary.load(os.path.join(paths[0], 'dict.txt'))
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 188, in load
    d.add_from_file(f)
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 201, in add_from_file
    raise fnfe
  File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 198, in add_from_file
    with open(f, 'r', encoding='utf-8') as fd:
FileNotFoundError: [Errno 2] No such file or directory: 'C\\dict.txt'

from comet.

ricardorei avatar ricardorei commented on May 8, 2024

Ok that's a known error from fairseq: fairseq issue #865

I'll allocate some time next week to look at it. Probably you have to install fairseq locally and change the logic behind path splitting convention

from comet.

ranjita-naik avatar ranjita-naik commented on May 8, 2024

fairseq==0.10.0 doesn't have this problem but COMET depends on 0.9.0. After I fixed the path splitting logic in the locally installed version of fairseq==0.9.0, COMET ran fine. I also managed to create an exe through pyinstaller.

from comet.

lodeous avatar lodeous commented on May 8, 2024

@ranjita-naik what did you do to get it working? I'm also having problems getting it installed on windows.

from comet.

ranjita-naik avatar ranjita-naik commented on May 8, 2024

@lodeous the following worked for me.

conda create --name comet_windows_3_7 python=3.7
conda activate comet_windows_3_7
pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install unbabel-comet==0.1.0 torch==1.4.0

I was able to build from the source as well; had to add torch==1.4.0 to poetry.

poetry add https://download.pytorch.org/whl/cu92/torch-1.4.0%2Bcu92-cp37-cp37m-win_amd64.whl

If the above doesn't work, do share the errors, I can take a look.

from comet.

ricardorei avatar ricardorei commented on May 8, 2024

@ranjita-naik Thanks for helping out 🙏

from comet.

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.