question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document the usage with `python -m`

See original GitHub issue

My project structure:

gfa/ ├── config │   └── settings.yaml ├── init.py ├── main.py ├── resources │   ├── exon_body.bed │   ├── exon_end.bed │   ├── exon_start.bed ├── src │   ├── annotators │   │   ├── get_annots.py │   │   └── init.py │   ├── gfa.py │   ├── preprocess └── tests ├── fixtures │   └── test_bkpt.tsv ├── init.py └── test_get_annots.py

I have a settings.yaml in the config folder with the content below

---
exon_region_dict
  start : '../resources/exon_start.bed'
  stop : '../resources/exon_stop.bed'
  body : '../resources/exon_body.bed'

I call settings.EXON_REGION_DICT in get_annots.py but I get this error line 113, in getattr return getattr(self._wrapped, name) AttributeError: ‘Settings’ object has no attribute ‘EXON_REGION_DICT’

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gopi1616commented, Jul 15, 2020

Resolved after adding the setting.yaml path to .env file in the root dir

0reactions
stale[bot]commented, Jun 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1. Command line and environment — Python 3.11.1 ...
The most common use case is, of course, a simple invocation of a script: ... When called with -m module-name , the given...
Read more >
Documenting Python Code: A Complete Guide
A complete guide to documenting Python code. Whether you're documenting a small script or a large project, whether you're a beginner or seasoned...
Read more >
python - What is the purpose of the -m switch? - Stack Overflow
In short it can be used to: (1) execute python code from the command line via modulename rather than filename (2) add a...
Read more >
pip install - pip documentation v22.3.1
Installing collected packages baz, bar, foo, quux $ python -m pip install bar . ... The Python interpreter version to use for wheel...
Read more >
django-admin and manage.py
The command-line examples throughout this document use django-admin to be consistent, but any example can use manage.py or python -m django just as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found