Skip to content

[amss] Build Error #163

Closed
Closed

Description

@mmcky

@kp992 would you have time to look into the build error for amss

ValueError: V and W need to be successfully computed before simulation.

The build cache is failing so it is failing on the fresh build of the lectures. The diff (preview) built fine as amss didn't execute in that context.

Activity

  1. added
    bug
    on Jun 20, 2024
  2. kp992 commented on Jun 22, 2024

    @kp992
    Collaborator

    Hmm, digging into this looks like there are multiple bugs. Just running the latest version locally, I see:

    >>> amss_model.solve(V, σ_v_star, b_0, W, σ_w_star)
    ...
    File ~/mambaforge/envs/qe/lib/python3.10/site-packages/interpolation/splines/eval_splines.py:100, in __eval_spline(grid, C, points, out, k, diff, extrap_mode)
         98 @overload(_eval_spline)
         99 def __eval_spline(grid, C, points, out=None, k=1, diff="None", extrap_mode="linear"):
    --> 100     kk = (k).literal_value
        101     diffs = (diff).literal_value
        102     extrap_ = (extrap_mode).literal_value
    
    AttributeError: 'Integer' object has no attribute 'literal_value'

    This is coming from interpolation.

  3. mmcky commented on Jun 28, 2024

    @mmcky
    ContributorAuthor

    @kp992 this is blocking our ability to publish. Any ideas on how we can fix this.

  4. kp992 commented on Jun 28, 2024

    @kp992
    Collaborator

    @mmcky I am trying to figure out fix or some workarounds.

  5. kp992 commented on Jun 29, 2024

    @kp992
    Collaborator

    @mmcky If we need a quick release, one option is to just pin "numba<0.60". That will work fine. Till then, I am trying to fix the issue in numba 0.60.

  6. mmcky commented on Jun 29, 2024

    @mmcky
    ContributorAuthor

    thanks @kp992 -- nice suggestion.

    https://docs.anaconda.com/anaconda/allpkglists/2024.02-1/

    indicates that numba == 0.59 in the anaconda release being used. Does it get upgraded somewhere?

  7. kp992 commented on Jun 29, 2024

    @kp992
    Collaborator

    May be this is the issue:

    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    interpolation 2.2.6 requires numba>=0.59.1, but you have numba 0.59.0 which is incompatible.
    

    So, pip resolver is picking numba=0.60 (which is the latest one)

    See: https://github.com/EconForge/interpolation.py/blob/16c106fe857150d445e1c918b07da5da45d64a9b/pyproject.toml#L18.

  8. kp992 commented on Jul 4, 2024

    @kp992
    Collaborator

    @mmcky I have raised a PR: EconForge/interpolation.py#116 to fix this issue in interpolation.py. Once that is merged and added to a latest release, the issue will be resolved. I have locally tested the amss lecture with the above PR and everything works fine.

  9. kp992 commented on Jul 4, 2024

    @kp992
    Collaborator

    Also, once we have the new release of interpolation, we can remove the numba pin.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions