Skip to content

Error when importing database following patch 0.11.5 #54

Description

@graemep27

When trying to import a database on version 0.11.5 the following error is thrown:

    16:08:55 | INFO | Activity Browser version: 2.11.2
    
    DevTools listening on ws://127.0.0.1:3999/devtools/browser/fee19d94-d1ba-44f0-95c8-71dd38c667fa
    16:08:56 | INFO | Brightway2 data directory: C:\Users\[username]\AppData\Local\pylca\Brightway3
    16:08:56 | INFO | Brightway2 current project: default
    16:08:56 | INFO | Project settings directory: C:\Users\[username]\AppData\Local\pylca\Brightway3\default.c21f969b5f03d33d43e04f8f136e7682
    16:08:57 | INFO | Loaded tab 'ab_plugin_scenariolink'
    Remote debugging server started successfully. Try pointing a Chromium-based browser to http://127.0.0.1:3999
    16:10:07 | INFO | Brightway2 current project: Test for Scenario
    16:10:07 | INFO | Project settings directory: C:\Users\[username]\AppData\Local\pylca\Brightway3\Test-for-Scenario.741f6981a6a84517e6a03860be82a4a0
    16:10:08 | INFO | Loaded tab 'ab_plugin_scenariolink'
    16:10:20 | INFO | Cache folder: C:\Users\[username]\AppData\Local\ActivityBrowser\ActivityBrowser\Cache
    16:10:20 | INFO | File 14291201.zip already exists in cache.
    16:10:32 | ERROR | AttributeError: 'ScenarioChooserWidget' object has no attribute 'sdf_file_location'
    Traceback (most recent call last):
      File "C:\anaconda3\envs\ab2\Lib\site-packages\ab_plugin_scenariolink\layouts\tabs\right.py", line 259, in import_state
        sdf_loc = self.sdf_file_location
                  ^^^^^^^^^^^^^^^^^^^^^^
    AttributeError: 'ScenarioChooserWidget' object has no attribute 'sdf_file_location'

I see from the version diff for version 0.11.5 sdf_file_loc was changed to sdf_file_location in various places.

Is it possible one of the instances of sdf_file_loc was missed and causing this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions