Skip to content

cannot load modules from src when running from bin #2

Description

@dfielding14

Following the example in the README when I try to execute the example script
python3 bin/run_proj.py
I get the following error
Traceback (most recent call last): File "bin/run_proj.py", line 1, in <module> from ..src.Project import Profiles ValueError: attempted relative import beyond top-level package

This goes away if I run the same script in the root directory and change the import from ..src.Project to src.Project

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions