Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-1215

Importing Project with removed operations fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.1
    • Component/s: None
    • Labels:
      None

      Description

      Message from Tim:

      2014-02-27 16:04:44,744 - INFO - tvb.core.code_versions.base_classes - Found unprocessed code update scripts: [].
      2014-02-27 16:04:44,923 - ERROR - tvb.core.entities.storage.root_dao - When fetching gid 9e876696-9fad-11e3-95dd-2c4138a1c4ef
      Traceback (most recent call last):
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/tvb/core/entities/storage/operation_dao.py", line 71, in get_operation_by_gid
      operation = self.session.query(model.Operation).filter_by(gid=operation_gid).one()
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/sqlalchemy/orm/query.py", line 2139, in one
      raise orm_exc.NoResultFound("No row was found for one()")
      NoResultFound: No row was found for one()
      2014-02-27 16:04:45,063 - ERROR - tvb.core.services.import_service - Error encountered during import. Deleting projects created during this operation.
      Traceback (most recent call last):
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/tvb/core/services/import_service.py", line 132, in import_project_structure
      self._import_project_from_folder(temp_folder)
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/tvb/core/services/import_service.py", line 212, in _import_project_from_folder
      self.import_workflows(project_entity, bursts_dict, burst_ids_mapping)
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/tvb/core/services/import_service.py", line 236, in import_workflows
      self.import_workflow_steps(workflow_entity, wf_steps_info, view_steps_info)
      File "/home/tim/Work/Models/python/TVB/TVB_Distribution_1.1.1_2/tvb_data/tvb/core/services/import_service.py", line 265, in import_workflow_steps
      wf_step_entity.fk_operation = wf_step.get_operagion().id
      AttributeError: 'NoneType' object has no attribute 'id'

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              lia.domide Lia Domide
              Reporter:
              lia.domide Lia Domide
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6 hours
                  6h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours Time Not Required
                  3h