Skip to content

Comments

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

Open
lfoppiano wants to merge 1 commit intomasterfrom
improve-docu
Open

run as module in documentation to avoid failing of absolute import paths#6
lfoppiano wants to merge 1 commit intomasterfrom
improve-docu

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