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

No module named 'git_contributions_importer' #46

Open
julix-unity opened this issue Aug 9, 2024 · 1 comment
Open

No module named 'git_contributions_importer' #46

julix-unity opened this issue Aug 9, 2024 · 1 comment

Comments

@julix-unity
Copy link

the import scripts from the tutorials didn't work for me. Specifically the line:

from git_contributions_importer import *  

running python_run.py in root.

it failed as

(Contributions-Importer-For-Github) julix @ 17:42 $ python3 run_script.py               
Traceback (most recent call last):
  File "/Users/julian.sloman/Dev/Contributions-Importer-For-Github/run_script.py", line 5, in <module>
    from git_contributions_importer import *  # Assuming git_contributions_importer is the package name defined in __init__.py
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'git_contributions_importer'

I moved it to src and imported things directly:

import git

from .Content import *
from .Importer import *
from .Committer import *

and then called it as

python -m src.run_script

that worked.

I don't normally do Python as a Front End dev, so figured I'd share the findings in case anyone else runs into these troubles.

@AmartyaSingh97
Copy link

Thanks much needed, was facing the same difficulty !!

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

2 participants