+
Skip to content

OG-UK set up #21

@jpycroft

Description

@jpycroft

@rickecon @jdebacker @nikhilwoodruff

I'm starting an issue to try to resolve my set up issues and to keep a record which may help others.

First, creating the oguk-calibrate-dev environment from the yml file gives a litany of errors. Basically, the dependencies loaded fine, but the pip install commands ran into a series of problems.

I was able to pip install the packages separately as follows:
$ python -m pip install git+https://github.com/PSLmodels/OG-USA.git
$ python -m pip install git+https://github.com/nikhilwoodruff/frs
$ python -m pip install git+https://github.com/PSLmodels/microdf
These three worked normally.

The OpenFisca files, I could only install them with the "--user" option (otherwise access was denied to some files):
$ python -m pip install --user git+https://github.com/nikhilwoodruff/openfisca-core
$ python -m pip install --user git+https://github.com/PSLmodels/openfisca-uk
At some point, I did need to install pathlib to get the above to work:
$ pip install pathlib

Then I follow this up with activating oguk-calibrate-dev:
$ conda activate oguk-calibrate-dev

And the pip install command:
$ pip install -e .

As the model didn't run, I uninstalled and reinstalled the oguk-calibrate-dev environment with the pip commands commented out, just in case.

I still cannot run the code, because the installed packages are not found:
(oguk-calibrate-dev) C:\Users\jonat\repos\OG-UK-Calibration>python run_og_uk.py
Traceback (most recent call last):
File "C:\Users\jonat\repos\OG-UK-Calibration\run_og_uk.py", line 6, in
from openfisca_core.model_api import Reform
ModuleNotFoundError: No module named 'openfisca_core'

I think the question is how to get the installed packages to be "seen", given that they are not part of the environment?

Any thoughts would be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载