Skip to content

Trying to run example_estimation notebooks #962

@zahern

Description

@zahern

I am trying to run the example notebook_estimations and its falling over once I call

from activitysim.estimation.larch import component_model

This is the error "
#from activitysim.estimation.larch import component_model
----> 2 from activitysim.estimation.larch import component_model
3 model, data = component_model(modelname, return_data=True)

File c:\Users\ahernz.local\share\mamba\envs\asim_m\lib\site-packages\activitysim\estimation\larch_init_.py:6
3 except ImportError:
4 larch = None
----> 6 from .cdap import *
7 from .data_maker import *
8 from .general import *

File c:\Users\ahernz.local\share\mamba\envs\asim_m\lib\site-packages\activitysim\estimation\larch\cdap.py:15
12 import yaml
14 from ...abm.models.util import cdap
---> 15 from .general import apply_coefficients, explicit_value_parameters
17 try:
18 import larch

File c:\Users\ahernz.local\share\mamba\envs\asim_m\lib\site-packages\activitysim\estimation\larch\general.py:15
13 logger_name = "larch"
14 else:
---> 15 from larch import DataFrames, Model, P, X # noqa: F401
16 from larch.log import logger_name
17 from larch.model.abstract_model import AbstractChoiceModel

The versions im using is larch 6.0.41, python 3.10, activitysim 1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working/bug f

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions