Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. ImproperlyConfigured Traceback (most recent call last)
  2. <ipython-input-5-bfd824541d50> in <module>
  3. 3 detections = []
  4. 4 for inp in get_input():
  5. ----> 5 detections = detections + DetectorRunner(det, inp).run(utils.get_detector_context())
  6.  
  7. E:\sink\govtech\src\frauds\explore\runner.py in run(self, context)
  8. 42 if self.verbose:
  9. 43 print("Running detector:", self.detector_name)
  10. ---> 44 detections = [r for r in self.detector.execute(context)]
  11. 45
  12. 46 elapsed = int(time.time() - start_time)
  13.  
  14. E:\sink\govtech\src\frauds\explore\runner.py in <listcomp>(.0)
  15. 42 if self.verbose:
  16. 43 print("Running detector:", self.detector_name)
  17. ---> 44 detections = [r for r in self.detector.execute(context)]
  18. 45
  19. 46 elapsed = int(time.time() - start_time)
  20.  
  21. E:\sink\govtech\src\frauds\detectors\enricher.py in execute(self, context)
  22. 62 if len(enrichers) > 0:
  23. 63 # pierwsze przejście - zebranie statystyk
  24. ---> 64 for det in self._execute_internal(context):
  25. 65 for e in enrichers:
  26. 66 e.update_stats(det)
  27.  
  28. E:\sink\govtech\src\frauds\detectors\model.py in _execute_internal(self, context)
  29. 93 episode_rows = [] # lista wierszy opisujących aktualnie analizowany epizod
  30. 94
  31. ---> 95 for row in context.db_connection.execute(self.get_sql(), self.get_params()):
  32. 96 # Zapytanie zwraca po jednym wierszu dla każdej procedury
  33. 97 # W pętli zbieramy wszystkie procedury z danego epizodu
  34.  
  35. E:\sink\govtech\src\frauds\webapp\detect_orm\schema.py in execute(self, query, params)
  36. 238 try:
  37. 239 with self.engine.connect() as con:
  38. --> 240 con.execute(text("SET search_path TO :schema;"), schema=settings.SQLALCHEMY_DETECTOR_SCHEMA)
  39. 241 for row in con.execute(query, **params):
  40. 242 results += 1
  41.  
  42. ~\AppData\Roaming\Python\Python37\site-packages\django\conf\__init__.py in __getattr__(self, name)
  43. 77 """Return the value of a setting and cache it in self.__dict__."""
  44. 78 if self._wrapped is empty:
  45. ---> 79 self._setup(name)
  46. 80 val = getattr(self._wrapped, name)
  47. 81 self.__dict__[name] = val
  48.  
  49. ~\AppData\Roaming\Python\Python37\site-packages\django\conf\__init__.py in _setup(self, name)
  50. 62 "You must either define the environment variable %s "
  51. 63 "or call settings.configure() before accessing settings."
  52. ---> 64 % (desc, ENVIRONMENT_VARIABLE))
  53. 65
  54. 66 self._wrapped = Settings(settings_module)
  55.  
  56. 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