Skip to content
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

ModuleNotFoundError: No module named 'bin.rouge_cmd' #56

Open
vighneshck opened this issue Jan 31, 2021 · 3 comments
Open

ModuleNotFoundError: No module named 'bin.rouge_cmd' #56

vighneshck opened this issue Jan 31, 2021 · 3 comments

Comments

@vighneshck
Copy link

vighneshck commented Jan 31, 2021

Hi,
I wanted to first test out the rouge library on the sample files provided ('./tests/hyp.txt' and './tests/ref.txt') before actually using it on my own files.

However, on running the command: rouge -f ./tests/hyp.txt ./tests/ref.txt

I get the following error:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/rouge", line 33, in <module> sys.exit(load_entry_point('rouge==1.0.0rc2', 'console_scripts', 'rouge')())
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/rouge", line 25, in importlib_load_entry_point
return next(matches).load()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'bin.rouge_cmd'`

P.S.:

  1. I get the same error when I run rouge on my own files too.
  2. I have installed Python3.8.7 and pip21.0.1

UPDATE: The library worked when I tried using it on google colab (with Python3.6.9 and pip19.3.1)

@pltrdy
Copy link
Owner

pltrdy commented Feb 1, 2021

Honestly don't get it. I tried using exact same version of python and pip, everything is fine...

Maybe things are messed up by environments, are you using some envs?

@tangxiangru
Copy link

same bug.

@tangxiangru
Copy link

Please use python rouge/bin/rouge_cmd.py -f ./fb/data/xsum_hypo/bart.test.hypo ./fb/data/xsum_data/test.target -a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants