estimatingmicrodsops's People
estimatingmicrodsops's Issues
ModuleNotFoundError: No module named 'pandas'
I'm trying to execute this REMARK using a local conda environment. It looks like pandas is required but not included as an environment dependency.
$ git clone https://github.com/econ-ark/SolvingMicroDSOPs
$ cd SolvingMicroDSOPs/
$ conda env create -f environment.yml
$ conda activate solvingmicrodsops
$ python do_all.py
Traceback (most recent call last):
File "do_all.py", line 75, in <module>
import StructEstimation as struct
File "/home/sb/projects/econ-ark/SolvingMicroDSOPs/Code/StructEstimation.py", line 29, in <module>
import HARK.ConsumptionSaving.ConsIndShockModel as Model # The consumption-saving micro model
File "/home/sb/miniconda3/envs/solvingmicrodsops/lib/python3.7/site-packages/HARK/ConsumptionSaving/ConsIndShockModel.py", line 52, in <module>
from HARK.Calibration.Income.IncomeTools import parse_income_spec, parse_time_params, Cagetti_income
File "/home/sb/miniconda3/envs/solvingmicrodsops/lib/python3.7/site-packages/HARK/Calibration/Income/IncomeTools.py", line 12, in <module>
from HARK.datasets.cpi.us.CPITools import cpi_deflator
File "/home/sb/miniconda3/envs/solvingmicrodsops/lib/python3.7/site-packages/HARK/datasets/cpi/us/CPITools.py", line 10, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Test with pytest not working
Any idea why this doesn't work?
Run pytest ./code/tests.py
pytest ./code/tests.py
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/SolvingMicroDSOPs-LifeCycle/SolvingMicroDSOPs-LifeCycle
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting code/tests.py ________________________
ImportError while importing test module '/home/runner/work/SolvingMicroDSOPs-LifeCycle/SolvingMicroDSOPs-LifeCycle/code/tests.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:1[2](https://github.com/econ-ark/SolvingMicroDSOPs-LifeCycle/actions/runs/7010871614/job/19072314000#step:5:2)7: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'code.tests'; 'code' is not a package
=========================== short test summary info ============================
ERROR code/tests.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.0[6](https://github.com/econ-ark/SolvingMicroDSOPs-LifeCycle/actions/runs/7010871614/job/19072314000#step:5:6)s ===============================
Error: Process completed with exit code 2.
Rename Repo
This repo now does more than the Life-cycle exercise in Solving Micro DSOPs.
Given that the SolvingMicroDSOPs repo now includes its own estimation exercise, it doesn't need to link to this repo.
I propose renaming this repo to something like:
StructuralEstimationWealthInUtility
Please let me know if you agree or propose a different approach.
Website Materials Notebook does not exist
The website at https://econ-ark.org/materials/solvingmicrodsops points to an interactive notebook that does not exist in this repository, namely Code/Python/SolvingMicroDSOPs-Python.ipynb
.
Reported in Scientific Python Discord https://discord.com/channels/786703927705862175/1057710158639267990/1060587813281747034
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.