Can you paste in the exact code you are using to produce this error.
chapter25.py with following changes, default instruments replaced with EU-OIL
#) = get_data_dict_with_carry(["sp500", "eurostx", "us10", "us2"])
) = get_data_dict_with_carry(["EU-OIL"])
#asset_class_groupings = dict(bonds=["us2", "us10"], stocks=["sp500", "eurostx"])
asset_class_groupings = dict(stocks=["EU-OIL"])
#multipliers = dict(sp500=5, eurostx=10, us10=1000, us2=2000)
multipliers = dict(EU-OIL=50)
#instrument_weights = dict(sp500=0.25, eurostx=0.25, us10=0.25, us2=0.25)
instrument_weights = dict(EU-OIL=1)
#cost_per_contract_dict = dict(sp500=0.875, eurostx=6.8, us10=9.5, us2=5.5)
cost_per_contract_dict = dict(EU-OIL=5)
gives
multipliers = dict(EU-OIL=50)
^
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
Script works with any instrument without dash in the name. Same behavior in notebook and cli.