question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundError

See original GitHub issue
import evaluate
evaluate.load("rouge")

Couldn’t find a module script at… module “rouge” doesn’t exist on the hugging face hub either

Any suggestion?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lvwerracommented, Nov 2, 2022

Closing for now as I can’t reproduce the issue and you found a workaround. Let me know if you have more insights!

1reaction
lvwerracommented, Nov 1, 2022

Not sure all the issues here are related 😃

@muximus3 if rouge-score is not installed you should get an error like:

ImportError: To be able to use evaluate-metric/rouge, you need to install the following dependencies['rouge_score'] using 'pip install rouge_score' for instance'

@km5ar is it possible that the machine where you got the first error was not connected to the internet? In the second case it looks like you have not installed evaluate.

On Colab the following code works:

!pip install evaluate rouge-score

import evaluate
evaluate.load("rouge")
Read more comments on GitHub >

github_iconTop Results From Across the Web

Built-in Exceptions — Python 3.11.1 documentation
exception FileNotFoundError¶. Raised when a file or directory is requested but doesn't exist. Corresponds to errno ENOENT . exception InterruptedError¶.
Read more >
Python FileNotFoundError: [Errno 2] No such file or directory ...
Any message with the contents FileNotFoundError indicates that Python cannot find the file you are referencing. Python raises this error because your program ......
Read more >
Python raising FileNotFoundError for file name returned by os ...
It is because os.listdir does not return the full path to the file, only the filename part; that is 'foo.txt' , when open...
Read more >
FileNotFoundError: [Errno 2] No such ... - Net-Informations.Com
When you open a file with the name "filename.ext"; you are telling the open() function that your file is in the current working...
Read more >
FileNotFoundError Exception in Python - Pylenin
The FileNotFoundError Exception in Python is raised when you are trying to access a file or a directory that doesn't exist.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found