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

relative path issues in python module imports #20

Open
adamfreedman opened this issue Oct 6, 2023 · 0 comments
Open

relative path issues in python module imports #20

adamfreedman opened this issue Oct 6, 2023 · 0 comments

Comments

@adamfreedman
Copy link

even with PYTHONPATH set to include MYPATHTO/COSMO/operon, with python 3.10.12 there are relative path import errors when trying to run:

python ~/software/COSMO/operon/user_input.py --output ${bam}_cosmo.tsv $genome $reflength $bam $gtf, where things with $ are shell variables in a job submission script:

Traceback (most recent call last):
File "/n/home_rc/afreedman/software/COSMO/operon/user_input.py", line 15, in
from .detect import Detect
ImportError: attempted relative import with no known parent package

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

1 participant