Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImproperlyConfigured Traceback (most recent call last)
- <ipython-input-5-bfd824541d50> in <module>
- 3 detections = []
- 4 for inp in get_input():
- ----> 5 detections = detections + DetectorRunner(det, inp).run(utils.get_detector_context())
- E:\sink\govtech\src\frauds\explore\runner.py in run(self, context)
- 42 if self.verbose:
- 43 print("Running detector:", self.detector_name)
- ---> 44 detections = [r for r in self.detector.execute(context)]
- 45
- 46 elapsed = int(time.time() - start_time)
- E:\sink\govtech\src\frauds\explore\runner.py in <listcomp>(.0)
- 42 if self.verbose:
- 43 print("Running detector:", self.detector_name)
- ---> 44 detections = [r for r in self.detector.execute(context)]
- 45
- 46 elapsed = int(time.time() - start_time)
- E:\sink\govtech\src\frauds\detectors\enricher.py in execute(self, context)
- 62 if len(enrichers) > 0:
- 63 # pierwsze przejście - zebranie statystyk
- ---> 64 for det in self._execute_internal(context):
- 65 for e in enrichers:
- 66 e.update_stats(det)
- E:\sink\govtech\src\frauds\detectors\model.py in _execute_internal(self, context)
- 93 episode_rows = [] # lista wierszy opisujących aktualnie analizowany epizod
- 94
- ---> 95 for row in context.db_connection.execute(self.get_sql(), self.get_params()):
- 96 # Zapytanie zwraca po jednym wierszu dla każdej procedury
- 97 # W pętli zbieramy wszystkie procedury z danego epizodu
- E:\sink\govtech\src\frauds\webapp\detect_orm\schema.py in execute(self, query, params)
- 238 try:
- 239 with self.engine.connect() as con:
- --> 240 con.execute(text("SET search_path TO :schema;"), schema=settings.SQLALCHEMY_DETECTOR_SCHEMA)
- 241 for row in con.execute(query, **params):
- 242 results += 1
- ~\AppData\Roaming\Python\Python37\site-packages\django\conf\__init__.py in __getattr__(self, name)
- 77 """Return the value of a setting and cache it in self.__dict__."""
- 78 if self._wrapped is empty:
- ---> 79 self._setup(name)
- 80 val = getattr(self._wrapped, name)
- 81 self.__dict__[name] = val
- ~\AppData\Roaming\Python\Python37\site-packages\django\conf\__init__.py in _setup(self, name)
- 62 "You must either define the environment variable %s "
- 63 "or call settings.configure() before accessing settings."
- ---> 64 % (desc, ENVIRONMENT_VARIABLE))
- 65
- 66 self._wrapped = Settings(settings_module)
- ImproperlyConfigured: Requested setting SQLALCHEMY_DETECTOR_SCHEMA, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement