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

run as module in documentation to avoid failing of absolute import paths #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lfoppiano
Copy link
Collaborator

If I run with

(article-dataset-builder) Lucas-M1-MacBook-Pro:article-dataset-builder lfoppiano$ python article_dataset_builder/harvest.py 
Traceback (most recent call last):
  File "/Users/lfoppiano/development/github/article-dataset-builder/article_dataset_builder/harvest.py", line 22, in <module>
    from article_dataset_builder.S3 import S3
ModuleNotFoundError: No module named 'article_dataset_builder'

because of the absolute import. This PR updated the documentation so that it can be run as

python -m article_dataset_builder.harvest

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

Successfully merging this pull request may close these issues.

1 participant