File ~/.venv/bw2_venv/lib/python3.11/site-packages/openlca2bw/utils.py:10
8 import pandas as pd
9 import re
---> 10 from bw2parameters.utils import EXISTING_SYMBOLS
11 import math
12 from enum import Enum
ImportError: cannot import name EXISTING_SYMBOLS' from 'bw2parameters.utils' (/home/niceri/.venv/bw2_venv/lib/python3.11/site-packages/bw2parameters/utils.py)
Indeed, there is nothing refering to EXISTING_SYMBOLS in bw2parameters.utils.
Is this a bug?
The brightway packages installed are:
brightway2 2.4.4
bw-migrations 0.2
bw2analyzer 0.10
bw2calc 1.8.2
bw2data 3.6.6
bw2io 0.8.10
bw2parameters 1.1.0
Found the issue. bw2 packages pulled in were the latest, not the ones specified in requirements:
bw2analyzer<0.10.99
bw2calc==1.8.1
bw2data<3.99
bw2io<0.8.9
bw2parameters==0.6.6
When trying to
import openlca2bw
in a new venv where I let openlca2bw pull in brightway I get:`--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[5], line 1 ----> 1 import openlca2bw
File ~/.venv/bw2_venv/lib/python3.11/site-packages/openlca2bw/init.py:3 1 # -- coding: utf-8 -- ----> 3 from .utils import check_OpenLCA_version, flattenNestedList, return_attribute, uncertainty_convert, main_flow_table, change_formula, change_param_names, is_product, ref_flow, root_folder, rescale_exchange, convert_to_internal_ids, normalize_units 4 from .bw_write import OpenLCABiosphereImporter, create_OpenLCA_biosphere3, register_method, create_OpenLCA_LCIAmethods, import_parameters, check_elementary_exchanges, check_exchanges_units, single_provider_retriver 5 from .main import load_openLCA_IPC, update_openLCA_IPC, load_openLCA_Json, update_openLCA_Json
File ~/.venv/bw2_venv/lib/python3.11/site-packages/openlca2bw/utils.py:10 8 import pandas as pd 9 import re ---> 10 from bw2parameters.utils import EXISTING_SYMBOLS 11 import math 12 from enum import Enum
ImportError: cannot import name
EXISTING_SYMBOLS' from 'bw2parameters.utils' (/home/niceri/.venv/bw2_venv/lib/python3.11/site-packages/bw2parameters/utils.py)
Indeed, there is nothing refering to
EXISTING_SYMBOLS
inbw2parameters.utils
. Is this a bug? The brightway packages installed are: brightway2 2.4.4 bw-migrations 0.2 bw2analyzer 0.10 bw2calc 1.8.2 bw2data 3.6.6 bw2io 0.8.10 bw2parameters 1.1.0