Skip to content

Database link to biosphere #1666

@Erinunter

Description

@Erinunter

Updating AB

  • Yes, I have updated AB and still experience this issue

What happened?

Using AB Beta, I'm unable to upload a database with my processes that are connected to biosphere3. As a test, I uploaded my processes in an .xlsx without the biosphere exchanges, added them manually in AB Beta, exported the file, and then tried to re-import the file and I received the same error.

Relevant errors

Operating system

Windows 11

Conda environment

Applying strategy: relink_exchanges_with_db
Error calling Python override of QThread::run(): 14:25:15 | ERROR | LinkingFailed: ([{'name': 'Water', 'amount': 0.002, 'database': 'biosphere3', 'unit': 'cubic meter', 'categories': ('water', 'surface water'), 'type': 'biosphere'}, {'name': 'Water, salt, ocean', 'amount': 600, 'database': 'biosphere3', 'unit': 'cubic meter', 'categories': ('natural resource', 'in water'), 'type': 'biosphere'}, {'name': 'Ammonia', 'amount': 0.8, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'Dinitrogen monoxide', 'amount': 0.55, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'Methane, non-fossil', 'amount': 2.48, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'NMVOC, non-methane volatile organic compounds', 'amount': 2.63, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}], {'biosphere3'})
Traceback (most recent call last):
  File "C:\Users\1613660\AppData\Local\anaconda3\envs\ab_beta\Lib\site-packages\activity_browser\ui\core\threading.py", line 42, in run
    raise e
  File "C:\Users\1613660\AppData\Local\anaconda3\envs\ab_beta\Lib\site-packages\activity_browser\ui\core\threading.py", line 38, in run
    self.run_safely(*self._args, **self._kwargs)
  File "C:\Users\1613660\AppData\Local\anaconda3\envs\ab_beta\Lib\site-packages\activity_browser\actions\database\database_importer_excel.py", line 139, in run_safely
    importer.automated_import(database_name, linking_dict)
  File "C:\Users\1613660\AppData\Local\anaconda3\envs\ab_beta\Lib\site-packages\activity_browser\bwutils\importers.py", line 124, in automated_import
    raise LinkingFailed(excs, databases)
activity_browser.bwutils.errors.LinkingFailed: ([{'name': 'Water', 'amount': 0.002, 'database': 'biosphere3', 'unit': 'cubic meter', 'categories': ('water', 'surface water'), 'type': 'biosphere'}, {'name': 'Water, salt, ocean', 'amount': 600, 'database': 'biosphere3', 'unit': 'cubic meter', 'categories': ('natural resource', 'in water'), 'type': 'biosphere'}, {'name': 'Ammonia', 'amount': 0.8, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'Dinitrogen monoxide', 'amount': 0.55, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'Methane, non-fossil', 'amount': 2.48, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}, {'name': 'NMVOC, non-methane volatile organic compounds', 'amount': 2.63, 'database': 'biosphere3', 'unit': 'kilogram', 'categories': ('air',), 'type': 'biosphere'}], {'biosphere3'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions