No module named 'common_utils'

See original GitHub issue

Hello,

I work on mac os and try to run the LFR demo. I created a conda environment as in the README and install using pip the entire package( pip install 'aif360[all]' ).

When I run the first cell in the notebook I get the error No module named 'common_utils'. This script exists in the examples directory (here) but is not imported correctly.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
lgoetzcommented, Feb 4, 2022

there’s a compute_metrics here: https://github.com/Trusted-AI/AIF360/blob/746e763191ef46ba3ab5c601b96ce3f6dcb772fd/examples/common_utils.py which seems not to have been merged. A quick fix would be to copy that to e.g. aif360.metrics.classification_metric

0reactions
rahulolivercommented, Mar 2, 2022

I have the same issue as well. ModuleNotFoundError: No module named ‘common_utils’ Is there any solution to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named common - python
In root, I execute python core/iemoji.py , an error occurs. Traceback (most recent call last): File "core/iemoji.py", line 6, in module from ...
Read more >
ModuleNotFoundError: No module named 'common-utils'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'common-utils' How to remove the Modul.
Read more >
No module named common.Utils... Please tell me how to do it
sys.path.insert(0, '.') from pyspark import SparkContext, SparkConf from commons.Utils import Utils def splitComma(line: str): splits = Utils.
Read more >
Getting ModuleNotFoundError: No module named 'common ...
So, when I run the command with converter.py, I'm getting this error and I don't know how to fix it. I installed common-utils...
Read more >
common-utils - PyPI
common-utils 2.0.1.dev1. pip install common-utils. Copy PIP instructions. Latest version. Released: Sep 21, 2017. A common utils project ...
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