Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-358

Tox fails with the AttributeError: 'module' object has no attribute 'MUSIC_API'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • Casablanca Release
    • None
    • None

      Tox is failing in fresh git clone of has repository. AttributeError: 'module' object has no attribute 'MUSIC_API'

      ==============================
      Failed 5 tests - output below:
      ==============================

      conductor.tests.unit.solver.test_order_lock_service.TestOrdersLockingService.test_update_order_status
      -----------------------------------------------------------------------------------------------------

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      File "conductor/tests/unit/solver/test_order_lock_service.py", line 31, in setUp
      self.order_lock_svc = OrdersLockingService()
      File "conductor/solver/orders_lock/orders_lock_service.py", line 34, in _init_
      self.Plan = base.create_dynamic_model(keyspace=CONF.keyspace, baseclass=Plan, classname="Plan")
      File "conductor/common/music/model/base.py", line 173, in create_dynamic_model
      model.table_create()
      File "conductor/common/music/model/base.py", line 70, in table_create
      api.MUSIC_API.table_create(**kwargs)
      AttributeError: 'module' object has no attribute 'MUSIC_API'

      conductor.tests.unit.solver.test_solver_parser.TestSolverParser.test_drop_no_latency_rule_candidates
      ----------------------------------------------------------------------------------------------------

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      File "conductor/tests/unit/solver/test_solver_parser.py", line 98, in test_drop_no_latency_rule_candidates
      self.sp.latencyTriage = TriageLatency()
      File "conductor/solver/triage_tool/traige_latency.py", line 37, in _init_
      keyspace=CONF.keyspace, baseclass=TriageTool, classname="TriageTool")
      File "conductor/common/music/model/base.py", line 173, in create_dynamic_model
      model.table_create()
      File "conductor/common/music/model/base.py", line 70, in table_create
      api.MUSIC_API.table_create(**kwargs)
      AttributeError: 'module' object has no attribute 'MUSIC_API'

      conductor.tests.unit.solver.test_order_lock_service.TestOrdersLockingService.test_rehomes_for_service_resource
      --------------------------------------------------------------------------------------------------------------

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      File "conductor/tests/unit/solver/test_order_lock_service.py", line 31, in setUp
      self.order_lock_svc = OrdersLockingService()
      File "conductor/solver/orders_lock/orders_lock_service.py", line 34, in _init_
      self.Plan = base.create_dynamic_model(keyspace=CONF.keyspace, baseclass=Plan, classname="Plan")
      File "conductor/common/music/model/base.py", line 173, in create_dynamic_model
      model.table_create()
      File "conductor/common/music/model/base.py", line 70, in table_create
      api.MUSIC_API.table_create(**kwargs)
      AttributeError: 'module' object has no attribute 'MUSIC_API'

      conductor.tests.unit.solver.test_order_lock_service.TestOrdersLockingService.test_update_order_status_and_get_effected_plans
      ----------------------------------------------------------------------------------------------------------------------------

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      File "conductor/tests/unit/solver/test_order_lock_service.py", line 31, in setUp
      self.order_lock_svc = OrdersLockingService()
      File "conductor/solver/orders_lock/orders_lock_service.py", line 34, in _init_
      self.Plan = base.create_dynamic_model(keyspace=CONF.keyspace, baseclass=Plan, classname="Plan")
      File "conductor/common/music/model/base.py", line 173, in create_dynamic_model
      model.table_create()
      File "conductor/common/music/model/base.py", line 70, in table_create
      api.MUSIC_API.table_create(**kwargs)
      AttributeError: 'module' object has no attribute 'MUSIC_API'

      conductor.tests.unit.solver.test_order_lock_service.TestOrdersLockingService.test_get_plans_by_id
      -------------------------------------------------------------------------------------------------

      Captured traceback:
      ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
      File "conductor/tests/unit/solver/test_order_lock_service.py", line 31, in setUp
      self.order_lock_svc = OrdersLockingService()
      File "conductor/solver/orders_lock/orders_lock_service.py", line 34, in _init_
      self.Plan = base.create_dynamic_model(keyspace=CONF.keyspace, baseclass=Plan, classname="Plan")
      File "conductor/common/music/model/base.py", line 173, in create_dynamic_model
      model.table_create()
      File "conductor/common/music/model/base.py", line 70, in table_create
      api.MUSIC_API.table_create(**kwargs)
      AttributeError: 'module' object has no attribute 'MUSIC_API'

            dileep.ranganathan dileep.ranganathan
            dileep.ranganathan dileep.ranganathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: