Closed sidd3888 closed 9 months ago
Hmm, so I tried reproducing this but I'm not able to reproduce this on python 3.10 and econ-ark 0.13.0. I don't have quick access to a windows machine right now.
Can you upload the output for this set of commands:
$ conda create -n test-econ-ark-19 python=3.10
$ conda activate test-econ-ark-19
$ conda install -c conda-forge econ-ark
$ python -c 'import HARK.ConsumptionSaving; print(HARK.__version__)'
Things seem to be working now, somehow. Maybe it is the creation of the new environment with the standard anaconda packages that might be causing a problem?
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
Loading personal and system profiles took 929ms.
PS C:\Users\sidda> conda activate
(base) PS C:\Users\sidda> conda create -n test-econ-ark-19 python=3.10
Retrieving notices: ...working... C:\Users\sidda\anaconda3\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
C:\Users\sidda\anaconda3\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
C:\Users\sidda\anaconda3\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
done
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.7.4
latest version: 23.10.0
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=23.10.0
## Package Plan ##
environment location: C:\Users\sidda\anaconda3\envs\test-econ-ark-19
added / updated specs:
- python=3.10
The following packages will be downloaded:
package | build
---------------------------|-----------------
pip-23.3.1 | py310haa95532_0 2.9 MB
------------------------------------------------------------
Total: 2.9 MB
The following NEW packages will be INSTALLED:
bzip2 pkgs/main/win-64::bzip2-1.0.8-he774522_0
ca-certificates pkgs/main/win-64::ca-certificates-2023.08.22-haa95532_0
libffi pkgs/main/win-64::libffi-3.4.4-hd77b12b_0
openssl pkgs/main/win-64::openssl-3.0.12-h2bbff1b_0
pip pkgs/main/win-64::pip-23.3.1-py310haa95532_0
python pkgs/main/win-64::python-3.10.13-he1021f5_0
setuptools pkgs/main/win-64::setuptools-68.0.0-py310haa95532_0
sqlite pkgs/main/win-64::sqlite-3.41.2-h2bbff1b_0
tk pkgs/main/win-64::tk-8.6.12-h2bbff1b_0
tzdata pkgs/main/noarch::tzdata-2023c-h04d1e81_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/win-64::wheel-0.41.2-py310haa95532_0
xz pkgs/main/win-64::xz-5.4.2-h8cc25b3_0
zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate test-econ-ark-19
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) PS C:\Users\sidda> conda activate test-econ-ark-19
(test-econ-ark-19) PS C:\Users\sidda> conda install -c conda-forge econ-ark
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 23.7.4
latest version: 23.10.0
Please update conda by running
$ conda update -n base -c defaults conda
Or to minimize the number of packages updated during conda update use
conda install conda=23.10.0
## Package Plan ##
environment location: C:\Users\sidda\anaconda3\envs\test-econ-ark-19
added / updated specs:
- econ-ark
The following packages will be downloaded:
package | build
---------------------------|-----------------
blas-1.0 | mkl 6 KB
bottleneck-1.3.5 | py310h9128911_0 106 KB
brotli-python-1.0.9 | py310h8a704f9_7 335 KB conda-forge
ca-certificates-2023.11.17 | h56e8100_0 151 KB conda-forge
certifi-2023.11.17 | pyhd8ed1ab_0 155 KB conda-forge
charset-normalizer-3.3.2 | pyhd8ed1ab_0 46 KB conda-forge
cycler-0.12.1 | pyhd8ed1ab_0 13 KB conda-forge
econ-ark-0.13.0 | pyhd8ed1ab_0 1.5 MB conda-forge
freetype-2.10.4 | h546665d_1 489 KB conda-forge
giflib-5.2.1 | h8d14728_2 85 KB conda-forge
icc_rt-2022.1.0 | h6049295_2 6.5 MB
idna-3.6 | pyhd8ed1ab_0 49 KB conda-forge
intel-openmp-2023.2.0 | h57928b3_50497 2.4 MB conda-forge
interpolation-2.2.5 | pyhd8ed1ab_0 59 KB conda-forge
joblib-1.3.2 | pyhd8ed1ab_0 216 KB conda-forge
jpeg-9e | h8ffe710_2 366 KB conda-forge
kiwisolver-1.4.4 | py310hd77b12b_0 60 KB
lerc-3.0 | hd77b12b_0 120 KB
libblas-3.9.0 | 20_win64_mkl 4.8 MB conda-forge
libcblas-3.9.0 | 20_win64_mkl 4.8 MB conda-forge
libdeflate-1.17 | h2bbff1b_1 153 KB
liblapack-3.9.0 | 20_win64_mkl 4.8 MB conda-forge
libpng-1.6.39 | h8cc25b3_0 369 KB
libtiff-4.5.1 | hd77b12b_0 1.1 MB
libwebp-1.3.2 | hbc33d0d_0 73 KB
libwebp-base-1.3.2 | h2bbff1b_0 306 KB
llvmlite-0.41.0 | py310hf2fb9eb_0 18.6 MB
lz4-c-1.9.4 | h2bbff1b_0 143 KB
matplotlib-base-3.4.3 | py310h79a7439_2 7.3 MB conda-forge
mkl-2023.2.0 | h6a75c08_50497 138.0 MB conda-forge
mkl-service-2.4.0 | py310h2bbff1b_1 44 KB
mpmath-1.3.0 | pyhd8ed1ab_0 428 KB conda-forge
numba-0.58.0 | py310h4ed8f06_0 4.4 MB
numexpr-2.8.7 | py310h2cd9be0_0 134 KB
numpy-1.22.4 | py310hed7ac4c_0 6.1 MB conda-forge
packaging-21.3 | pyhd8ed1ab_0 36 KB conda-forge
pandas-1.5.3 | py310h4ed8f06_0 10.6 MB
pillow-9.4.0 | py310hd77b12b_1 769 KB
pyparsing-3.1.1 | pyhd8ed1ab_0 87 KB conda-forge
pysocks-1.7.1 | pyh0701188_6 19 KB conda-forge
python-dateutil-2.8.2 | pyhd8ed1ab_0 240 KB conda-forge
python_abi-3.10 | 2_cp310 4 KB conda-forge
pytz-2023.3.post1 | pyhd8ed1ab_0 183 KB conda-forge
quantecon-0.5.3 | pyhd8ed1ab_0 130 KB conda-forge
requests-2.31.0 | pyhd8ed1ab_0 55 KB conda-forge
scipy-1.11.3 | py310h309d312_0 19.2 MB
six-1.16.0 | pyh6c4a22f_0 14 KB conda-forge
sympy-1.12 | pyh04b8f61_3 4.0 MB conda-forge
tbb-2021.8.0 | h59b6b97_0 149 KB
tornado-6.2 | py310he2412df_0 666 KB conda-forge
urllib3-2.1.0 | pyhd8ed1ab_0 83 KB conda-forge
win_inet_pton-1.1.0 | pyhd8ed1ab_6 8 KB conda-forge
xarray-2023.2.0 | pyhd8ed1ab_0 648 KB conda-forge
zstd-1.5.5 | hd43e919_0 682 KB
------------------------------------------------------------
Total: 241.4 MB
The following NEW packages will be INSTALLED:
blas pkgs/main/win-64::blas-1.0-mkl
bottleneck pkgs/main/win-64::bottleneck-1.3.5-py310h9128911_0
brotli-python conda-forge/win-64::brotli-python-1.0.9-py310h8a704f9_7
certifi conda-forge/noarch::certifi-2023.11.17-pyhd8ed1ab_0
charset-normalizer conda-forge/noarch::charset-normalizer-3.3.2-pyhd8ed1ab_0
cycler conda-forge/noarch::cycler-0.12.1-pyhd8ed1ab_0
econ-ark conda-forge/noarch::econ-ark-0.13.0-pyhd8ed1ab_0
freetype conda-forge/win-64::freetype-2.10.4-h546665d_1
giflib conda-forge/win-64::giflib-5.2.1-h8d14728_2
icc_rt pkgs/main/win-64::icc_rt-2022.1.0-h6049295_2
idna conda-forge/noarch::idna-3.6-pyhd8ed1ab_0
intel-openmp conda-forge/win-64::intel-openmp-2023.2.0-h57928b3_50497
interpolation conda-forge/noarch::interpolation-2.2.5-pyhd8ed1ab_0
joblib conda-forge/noarch::joblib-1.3.2-pyhd8ed1ab_0
jpeg conda-forge/win-64::jpeg-9e-h8ffe710_2
kiwisolver pkgs/main/win-64::kiwisolver-1.4.4-py310hd77b12b_0
lerc pkgs/main/win-64::lerc-3.0-hd77b12b_0
libblas conda-forge/win-64::libblas-3.9.0-20_win64_mkl
libcblas conda-forge/win-64::libcblas-3.9.0-20_win64_mkl
libdeflate pkgs/main/win-64::libdeflate-1.17-h2bbff1b_1
liblapack conda-forge/win-64::liblapack-3.9.0-20_win64_mkl
libpng pkgs/main/win-64::libpng-1.6.39-h8cc25b3_0
libtiff pkgs/main/win-64::libtiff-4.5.1-hd77b12b_0
libwebp pkgs/main/win-64::libwebp-1.3.2-hbc33d0d_0
libwebp-base pkgs/main/win-64::libwebp-base-1.3.2-h2bbff1b_0
llvmlite pkgs/main/win-64::llvmlite-0.41.0-py310hf2fb9eb_0
lz4-c pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0
matplotlib-base conda-forge/win-64::matplotlib-base-3.4.3-py310h79a7439_2
mkl conda-forge/win-64::mkl-2023.2.0-h6a75c08_50497
mkl-service pkgs/main/win-64::mkl-service-2.4.0-py310h2bbff1b_1
mpmath conda-forge/noarch::mpmath-1.3.0-pyhd8ed1ab_0
numba pkgs/main/win-64::numba-0.58.0-py310h4ed8f06_0
numexpr pkgs/main/win-64::numexpr-2.8.7-py310h2cd9be0_0
numpy conda-forge/win-64::numpy-1.22.4-py310hed7ac4c_0
packaging conda-forge/noarch::packaging-21.3-pyhd8ed1ab_0
pandas pkgs/main/win-64::pandas-1.5.3-py310h4ed8f06_0
pillow pkgs/main/win-64::pillow-9.4.0-py310hd77b12b_1
pyparsing conda-forge/noarch::pyparsing-3.1.1-pyhd8ed1ab_0
pysocks conda-forge/noarch::pysocks-1.7.1-pyh0701188_6
python-dateutil conda-forge/noarch::python-dateutil-2.8.2-pyhd8ed1ab_0
python_abi conda-forge/win-64::python_abi-3.10-2_cp310
pytz conda-forge/noarch::pytz-2023.3.post1-pyhd8ed1ab_0
quantecon conda-forge/noarch::quantecon-0.5.3-pyhd8ed1ab_0
requests conda-forge/noarch::requests-2.31.0-pyhd8ed1ab_0
scipy pkgs/main/win-64::scipy-1.11.3-py310h309d312_0
six conda-forge/noarch::six-1.16.0-pyh6c4a22f_0
sympy conda-forge/noarch::sympy-1.12-pyh04b8f61_3
tbb pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0
tornado conda-forge/win-64::tornado-6.2-py310he2412df_0
urllib3 conda-forge/noarch::urllib3-2.1.0-pyhd8ed1ab_0
win_inet_pton conda-forge/noarch::win_inet_pton-1.1.0-pyhd8ed1ab_6
xarray conda-forge/noarch::xarray-2023.2.0-pyhd8ed1ab_0
zstd pkgs/main/win-64::zstd-1.5.5-hd43e919_0
The following packages will be UPDATED:
ca-certificates pkgs/main::ca-certificates-2023.08.22~ --> conda-forge::ca-certificates-2023.11.17-h56e8100_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(test-econ-ark-19) PS C:\Users\sidda> python -c 'import HARK.ConsumptionSaving; print(HARK.__version__)'
0.13.0
(test-econ-ark-19) PS C:\Users\sidda>
Solution to issue cannot be found in the documentation.
Issue
The modules in the HARK package that are described in the documentation as a package, for instance, ConsumptionSaving, are not being installed with either the
pip
or theconda
install.When I run
help(HARK)
I am able to see these modules listed, but when I try to import it usingimport HARK.ConsumptionSaving
, I receive an error message that says HARK had no attribute named ConsumptionSaving.econ-ark 0.13.0
Created this issue in the main HARK repository by mistake earlier
Installed packages
Environment info