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.

Encounters an error

See original GitHub issue

I want to run code (env) abc@ubuntu:~/ADL_LRS$ fab setup_lrs Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/fabric/main.py", line743, in main *args, **kwargs File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line405, in execute results['<local-only>'] = task.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line171, in run return self.wrapped(*args, **kwargs) File "/home/abc/ADL_LRS/fabfile.py", line53, in setup_lrs adldir = settings.MEDIA_ROOT File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line55, in __getattr__ self._setup(name) File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line43, in __setup self._wrapped = Settings(settings_module) File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line99, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.7/importlib/__init__.py", line37, in import_module __import__(name) File "/home/abc/ADL_LRS/adl_lrs/settings.py", line15, in <module> DEBUG = config.getboolean('debug', 'DEBUG') File "/usr/lib/python2.7/ConfigParser.py", line368, in getboolean v = self.get(section, option) File "/usr/lib/python2.7/ConfigParser.py", line330, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'debug'

I change the settings.py DEBUG = config.getboolean(‘debug’, ‘DEBUG’) to DEBUG = True

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/fabric/main.py", line743, in main *args, **kwargs File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line405, in execute results['<local-only>'] = task.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/fabric/tasks.py", line171, in run return self.wrapped(*args, **kwargs) File "/home/abc/ADL_LRS/fabfile.py", line53, in setup_lrs adldir = settings.MEDIA_ROOT File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line55, in __getattr__ self._setup(name) File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line43, in __setup self._wrapped = Settings(settings_module) File "/home/abc/ADL_LRS/../env/lib/python2.7/site-packages/django/conf/__init__.py", line99, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.7/importlib/__init__.py", line37, in import_module __import__(name) File "/home/abc/ADL_LRS/adl_lrs/settings.py", line21, in <module> EMAIL_BACKEND = config.get('email', 'EMAIL_BACKEND') File "/usr/lib/python2.7/ConfigParser.py", line330, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'email'

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
damien-rcommented, Mar 19, 2019

Hello,

I had the same problem and then saw that my settings.ini file was in wrong directory. It would be nice to have a more explicit error in adl_lrs/settings.py, like

file = “SETTINGS_DIR+‘/setting.ini’” if not file exists (file) print “file " + file + " not found. Please consult the wiki and create one”

or something like that

0reactions
ThisIsVegascommented, Oct 28, 2019

I might be late but your settings.ini might be in the wrong directory. You must place the settings.ini in /adl_lrs/ dir where settings.py exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

encounter this error | English examples in context - Ludwig
High quality example sentences with “encounter this error” in context from reliable sources - Ludwig is the linguistic search engine that helps you...
Read more >
encounter misuse or encounter errors? - TextRanch
A complete search of the internet has found these results: encounter errors is the most popular phrase on the web. More popular! encounter...
Read more >
Facilities: what do I do if I encounter an “Error” message while ...
If you see any "error" message (no matter what error number):. Note down the question which produced the error. Click “End”.
Read more >
I encounter errors and craches everytime I try to play a game
I encounter errors and craches everytime I try to play a game. I've been struggling with my computer ever since I built. It...
Read more >
Encounter Error - YouTube
Provided to YouTube by Label Worx LimitedEncounter Error · IklukLife Concept℗ Diffuse Reality RecordsReleased on: 2022-06-29Producer: Life ...
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