PolicyEngine / PolicyEngine/marriage

openfisca-core import issue

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
0
Forks
9
Avg merge
8h 23m
Merged PRs (30d)
9

Description

https://policyengine-us-marriage-incentive.streamlit.app/

/home/adminuser/venv/lib/python3.11/site-packages/policyengine_core/api/micr  

  osimulation.py:5 in <module>                                                  

                                                                                

      2 Microsimulation interfaces and utility functions.                       

      3 """                                                                     

      4 from typing import List, Tuple                                          

  ❱   5 from openfisca_core.entities.entity import Entity                       

      6 from policyengine_core.api.general import ReformType                    

      7 from microdf.generic import MicroDataFrame                              

      8 import numpy as np                                                      

────────────────────────────────────────────────────────────────────────────────

ModuleNotFoundError: No module named 'openfisca_core'

Caused by https://github.com/PolicyEngine/policyengine-core/issues/259

Quick fix would be manually listing the state codes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening the linked Streamlit app and reading the traceback at policyengine_core/api/microsimulation.py, especially the openfisca_core import. Review the related policyengine-core issue #259 and compare it with the suggested manual state-code listing. Done means the app no longer fails with ModuleNotFoundError for openfisca_core.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, streamlit
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.