PSLmodels / Package-Builder

Policy Simulation Library tool that builds packages and uploads them to the Anaconda Cloud's PSLmodels channel for public distribution
4 stars 7 forks source link

Problem building package for CCC release 1.0.0 #165

Closed jdebacker closed 5 years ago

jdebacker commented 5 years ago

I've had some issues building the CCC package using package builder.

I'm running version 0.22.0:

(ccc-dev) A02655JDEBACKER:ccc jason.debacker$ pbrelease --version
Package-Builder 0.22.0

Please see the output below for what I see when trying to build the package. I'm having trouble figuring out what the issue is.

(ccc-dev) A02655JDEBACKER:ccc jason.debacker$ pbrelease  Cost-of-Capital-Calculator  ccc  1.0.0
: Package-Builder will build model packages for:
:   repository_name = Cost-of-Capital-Calculator
:   package_name = ccc
:   model_version = 1.0.0
:   python_versions = ['3.7', '3.6']
: Package-Builder will upload model packages to:
:   Anaconda channel = pslmodels
:   using token in file = /Users/jason.debacker/.pslmodels_anaconda_token
: Package-Builder is starting at Fri May 10 10:29:55 2019
: Package-Builder is cloning repository code for 1.0.0
Cloning into 'Cost-of-Capital-Calculator'...
remote: Enumerating objects: 135, done.
remote: Counting objects: 100% (135/135), done.
remote: Compressing objects: 100% (126/126), done.
remote: Total 135 (delta 7), reused 65 (delta 4), pack-reused 0
Receiving objects: 100% (135/135), 31.97 MiB | 11.62 MiB/s, done.
Resolving deltas: 100% (7/7), done.
Note: checking out '2e5289aee64085bb6a2ddaea46791ebf6f3b3f93'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

: Package-Builder is setting version
: Package-Builder is building package for Python 3.7
No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.11
INFO:conda_build.variants:Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from config.variant
INFO:conda_build.metadata:Attempting to finalize metadata for ccc
WARNING: symlink_conda() is deprecated.
zip_safe flag not set; analyzing archive contents...
ccc.__pycache__.data.cpython-37: module references __file__
ccc.__pycache__.parameters.cpython-37: module references __file__
ccc.__pycache__.utils.cpython-37: module references __file__
INFO:conda_build.build:Packaging ccc
INFO:conda_build.build:Packaging ccc-1.0.0-py37_0
/var/folders/b0/wwxd0byd1hx0y_rqrnqhmc0m0000gn/T/tmpjf2z6rsu/ccc-1.0.0-py37_0.tar.bz2: C1115 Found invalid license "None" in info/index.json
INFO:conda_build.variants:Adding in variants from /var/folders/b0/wwxd0byd1hx0y_rqrnqhmc0m0000gn/T/tmpvjaqrlow/info/recipe/conda_build_config.yaml
WARNING: symlink_conda() is deprecated.
Traceback (most recent call last):
  File "/anaconda3/conda-bld/ccc_1557498600857/test_tmp/run_test.py", line 2, in <module>
    import ccc
ModuleNotFoundError: No module named 'ccc'
Tests failed for ccc-1.0.0-py37_0.tar.bz2 - moving package to /anaconda3/conda-bld/broken
WARNING:conda_build.build:Tests failed for ccc-1.0.0-py37_0.tar.bz2 - moving package to /anaconda3/conda-bld/broken
TESTS FAILED: ccc-1.0.0-py37_0.tar.bz2
Traceback (most recent call last):
  File "/anaconda3/lib/python3.7/site-packages/pkgbld-0.22.0-py3.7.egg/pkgbld/utils.py", line 20, in os_call
  File "/anaconda3/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'conda build --python 3.7 --old-build-string --channel pslmodels --override-channels --no-anaconda-upload --output-folder pkgbld_output conda.recipe' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/bin/pbrelease", line 11, in <module>
    sys.exit(main())
  File "/anaconda3/lib/python3.7/site-packages/pkgbld-0.22.0-py3.7.egg/pkgbld/cli.py", line 103, in main
  File "/anaconda3/lib/python3.7/site-packages/pkgbld-0.22.0-py3.7.egg/pkgbld/release.py", line 189, in release
  File "/anaconda3/lib/python3.7/site-packages/pkgbld-0.22.0-py3.7.egg/pkgbld/utils.py", line 25, in os_call
OSError: non-zero return code 1 generated by command:
conda build --python 3.7 --old-build-string --channel pslmodels --override-channels --no-anaconda-upload --output-folder pkgbld_output conda.recipe
>output: b"Adding in variants from internal_defaults\nAdding in variants from config.variant\nAttempting to finalize metadata for ccc\nCollecting package metadata: ...working... done\nSolving environment: ...working... done\nCollecting package metadata: ...working... done\nSolving environment: ...working... done\nBUILD START: ['ccc-1.0.0-py37_0.tar.bz2']\nCollecting package metadata: ...working... done\nSolving environment: ...working... done\nCollecting package metadata: ...working... done\nSolving environment: ...working... done\n\n## Package Plan ##\n\n  environment location: /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold\n\n\nThe following NEW packages will be INSTALLED:\n\n    asn1crypto:      0.24.0-py37_1003      conda-forge\n    bokeh:           1.1.0-py37_0          conda-forge\n    bzip2:           1.0.6-h1de35cc_1002   conda-forge\n    ca-certificates: 2019.3.9-hecc5488_0   conda-forge\n    certifi:         2019.3.9-py37_0       conda-forge\n    cffi:            1.12.3-py37hccf1714_0 conda-forge\n    chardet:         3.0.4-py37_1003       conda-forge\n    cryptography:    2.6.1-py37h212c5bf_0  conda-forge\n    freetype:        2.10.0-h24853df_0     conda-forge\n    idna:            2.8-py37_1000         conda-forge\n    jinja2:          2.10.1-py_0           conda-forge\n    jpeg:            9c-h1de35cc_1001      conda-forge\n    libblas:         3.8.0-8_openblas      conda-forge\n    libcblas:        3.8.0-8_openblas      conda-forge\n    libcxx:          8.0.0-2               conda-forge\n    libcxxabi:       8.0.0-2               conda-forge\n    libffi:          3.2.1-h6de7cb9_1006   conda-forge\n    libgfortran:     3.0.1-0               conda-forge\n    liblapack:       3.8.0-8_openblas      conda-forge\n    libpng:          1.6.37-h2573ce8_0     conda-forge\n    libtiff:         4.0.10-h344961e_1002  conda-forge\n    llvmlite:        0.28.0-py37hf292337_0 conda-forge\n    markupsafe:      1.1.1-py37h1de35cc_0  conda-forge\n    marshmallow:     3.0.0rc5-py_0         conda-forge\n    ncurses:         6.1-h0a44026_1002     conda-forge\n    numba:           0.43.1-py37h051e8ed_0 conda-forge\n    numpy:           1.16.3-py37hdf140aa_0 conda-forge\n    olefile:         0.46-py_0             conda-forge\n    openblas:        0.3.6-hd44dcd8_1      conda-forge\n    openssl:         1.1.1b-h01d97ff_2     conda-forge\n    packaging:       19.0-py_0             conda-forge\n    pandas:          0.24.2-py37h0a44026_0 conda-forge\n    paramtools:      0.4.1-py37_0          pslmodels  \n    pillow:          6.0.0-py37h7095ceb_0  conda-forge\n    pip:             19.1-py37_0           conda-forge\n    pycparser:       2.19-py37_1           conda-forge\n    pyopenssl:       19.0.0-py37_0         conda-forge\n    pyparsing:       2.4.0-py_0            conda-forge\n    pysocks:         1.6.8-py37_1002       conda-forge\n    python:          3.7.3-h0d93f26_0      conda-forge\n    python-dateutil: 2.8.0-py_0            conda-forge\n    pytz:            2019.1-py_0           conda-forge\n    pyyaml:          5.1-py37h1de35cc_0    conda-forge\n    readline:        7.0-hcfe32e1_1001     conda-forge\n    requests:        2.21.0-py37_1000      conda-forge\n    scipy:           1.2.1-py37hbd7caa9_1  conda-forge\n    setuptools:      41.0.1-py37_0         conda-forge\n    six:             1.12.0-py37_1000      conda-forge\n    sqlite:          3.26.0-h1765d9f_1001  conda-forge\n    taxcalc:         2.1.0-py37_0          pslmodels  \n    tk:              8.6.9-ha441bb4_1001   conda-forge\n    tornado:         6.0.2-py37h01d97ff_0  conda-forge\n    urllib3:         1.24.2-py37_0         conda-forge\n    wheel:           0.33.2-py37_0         conda-forge\n    xlrd:            1.2.0-py_0            conda-forge\n    xz:              5.2.4-h1de35cc_1001   conda-forge\n    yaml:            0.1.7-h1de35cc_1001   conda-forge\n    zlib:            1.2.11-h1de35cc_1004  conda-forge\n    zstd:            1.3.3-1               conda-forge\n\nPreparing transaction: ...working... done\nVerifying transaction: ...working... done\nExecuting transaction: ...working... done\nINFO: activate-gfortran_osx-64.sh made the following environmental changes:\n+DEBUG_FFLAGS=-march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/work=/usr/local/src/conda/ccc-1.0.0 -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold=/usr/local/src/conda-prefix -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments\n+DEBUG_FORTRANFLAGS=-march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/work=/usr/local/src/conda/ccc-1.0.0 -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold=/usr/local/src/conda-prefix -march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -Og -g -Wall -Wextra -fcheck=all -fbacktrace -fimplicit-none -fvar-tracking-assignments\n+F77=/anaconda3/bin/x86_64-apple-darwin13.4.0-gfortran\n+F90=/anaconda3/bin/x86_64-apple-darwin13.4.0-gfortran\n+F95=/anaconda3/bin/x86_64-apple-darwin13.4.0-gfortran\n+FC=/anaconda3/bin/x86_64-apple-darwin13.4.0-gfortran\n+FFLAGS=-march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/work=/usr/local/src/conda/ccc-1.0.0 -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold=/usr/local/src/conda-prefix\n+FORTRANFLAGS=-march=nocona -mtune=core2 -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/work=/usr/local/src/conda/ccc-1.0.0 -fdebug-prefix-map=/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold=/usr/local/src/conda-prefix\n+GFORTRAN=/anaconda3/bin/x86_64-apple-darwin13.4.0-gfortran\n+HOST=x86_64-apple-darwin13.4.0\nINFO: activate_clang_osx-64.sh made the following environmental changes:\n+AR=/anaconda3/bin/x86_64-apple-darwin13.4.0-ar\n+AS=/anaconda3/bin/x86_64-apple-darwin13.4.0-as\n+CC=x86_64-apple-darwin13.4.0-clang\n+CFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix\n+CHECKSYMS=/anaconda3/bin/x86_64-apple-darwin13.4.0-checksyms\n+CLANG=/anaconda3/bin/x86_64-apple-darwin13.4.0-clang\n+CODESIGN_ALLOCATE=/anaconda3/bin/x86_64-apple-darwin13.4.0-codesign_allocate\n+CONDA_BUILD_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk\n+CPPFLAGS=-D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9\n+DEBUG_CFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix\n+INDR=/anaconda3/bin/x86_64-apple-darwin13.4.0-indr\n+INSTALL_NAME_TOOL=/anaconda3/bin/x86_64-apple-darwin13.4.0-install_name_tool\n+LD=/anaconda3/bin/x86_64-apple-darwin13.4.0-ld\n+LDFLAGS=-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -L/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib\n+LDFLAGS_LD=-pie -headerpad_max_install_names -dead_strip_dylibs -rpath /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib -L/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib\n+LIBTOOL=/anaconda3/bin/x86_64-apple-darwin13.4.0-libtool\n+LIPO=/anaconda3/bin/x86_64-apple-darwin13.4.0-lipo\n+NM=/anaconda3/bin/x86_64-apple-darwin13.4.0-nm\n+NMEDIT=/anaconda3/bin/x86_64-apple-darwin13.4.0-nmedit\n+OTOOL=/anaconda3/bin/x86_64-apple-darwin13.4.0-otool\n+PAGESTUFF=/anaconda3/bin/x86_64-apple-darwin13.4.0-pagestuff\n+RANLIB=/anaconda3/bin/x86_64-apple-darwin13.4.0-ranlib\n+REDO_PREBINDING=/anaconda3/bin/x86_64-apple-darwin13.4.0-redo_prebinding\n+SEGEDIT=/anaconda3/bin/x86_64-apple-darwin13.4.0-segedit\n+SEG_ADDR_TABLE=/anaconda3/bin/x86_64-apple-darwin13.4.0-seg_addr_table\n+SEG_HACK=/anaconda3/bin/x86_64-apple-darwin13.4.0-seg_hack\n+SIZE=/anaconda3/bin/x86_64-apple-darwin13.4.0-size\n+STRINGS=/anaconda3/bin/x86_64-apple-darwin13.4.0-strings\n+STRIP=/anaconda3/bin/x86_64-apple-darwin13.4.0-strip\n+_CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_apple_darwin13_4_0\nINFO: activate_clangxx_osx-64.sh made the following environmental changes:\n+CLANGXX=/anaconda3/bin/x86_64-apple-darwin13.4.0-clang++\n+CXX=x86_64-apple-darwin13.4.0-clang++\n+CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix\n+DEBUG_CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -Og -g -Wall -Wextra -I/anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/include -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=${PREFIX}=/usr/local/src/conda-prefix\n~/temporary_pkgbld_working_dir/Cost-of-Capital-Calculator /anaconda3/conda-bld/ccc_1557498600857/work\nrunning install\nrunning bdist_egg\nrunning egg_info\ncreating ccc.egg-info\nwriting ccc.egg-info/PKG-INFO\nwriting dependency_links to ccc.egg-info/dependency_links.txt\nwriting requirements to ccc.egg-info/requires.txt\nwriting top-level names to ccc.egg-info/top_level.txt\nwriting manifest file 'ccc.egg-info/SOURCES.txt'\nreading manifest file 'ccc.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nwriting manifest file 'ccc.egg-info/SOURCES.txt'\ninstalling library code to build/bdist.macosx-10.9-x86_64/egg\nrunning install_lib\nrunning build_py\ncreating build\ncreating build/lib\ncreating build/lib/ccc\ncopying ccc/get_taxcalc_rates.py -> build/lib/ccc\ncopying ccc/constants.py -> build/lib/ccc\ncopying ccc/__init__.py -> build/lib/ccc\ncopying ccc/calcfunctions.py -> build/lib/ccc\ncopying ccc/utils.py -> build/lib/ccc\ncopying ccc/calculator.py -> build/lib/ccc\ncopying ccc/styles.py -> build/lib/ccc\ncopying ccc/controls_callback_script.py -> build/lib/ccc\ncopying ccc/parameters.py -> build/lib/ccc\ncopying ccc/data.py -> build/lib/ccc\ncopying ccc/ccc_asset_data.csv -> build/lib/ccc\ncopying ccc/default_parameters.json -> build/lib/ccc\ncopying ccc/records_variables.json -> build/lib/ccc\ncreating build/bdist.macosx-10.9-x86_64\ncreating build/bdist.macosx-10.9-x86_64/egg\ncreating build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/default_parameters.json -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/records_variables.json -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/get_taxcalc_rates.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/constants.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/calcfunctions.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/utils.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/calculator.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/styles.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/controls_callback_script.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/parameters.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/ccc_asset_data.csv -> build/bdist.macosx-10.9-x86_64/egg/ccc\ncopying build/lib/ccc/data.py -> build/bdist.macosx-10.9-x86_64/egg/ccc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/get_taxcalc_rates.py to get_taxcalc_rates.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/constants.py to constants.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/__init__.py to __init__.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/calcfunctions.py to calcfunctions.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/utils.py to utils.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/calculator.py to calculator.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/styles.py to styles.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/controls_callback_script.py to controls_callback_script.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/parameters.py to parameters.cpython-37.pyc\nbyte-compiling build/bdist.macosx-10.9-x86_64/egg/ccc/data.py to data.cpython-37.pyc\ncreating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncopying ccc.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncopying ccc.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncopying ccc.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncopying ccc.egg-info/requires.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncopying ccc.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO\ncreating dist\ncreating 'dist/ccc-1.0.0-py3.7.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it\nremoving 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)\nProcessing ccc-1.0.0-py3.7.egg\ncreating /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages/ccc-1.0.0-py3.7.egg\nExtracting ccc-1.0.0-py3.7.egg to /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nAdding ccc 1.0.0 to easy-install.pth file\n\nInstalled /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages/ccc-1.0.0-py3.7.egg\nProcessing dependencies for ccc==1.0.0\nSearching for xlrd==1.2.0\nBest match: xlrd 1.2.0\nAdding xlrd 1.2.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for scipy==1.2.1\nBest match: scipy 1.2.1\nAdding scipy 1.2.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for taxcalc==2.1.0\nBest match: taxcalc 2.1.0\nAdding taxcalc 2.1.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for pandas==0.24.2\nBest match: pandas 0.24.2\nAdding pandas 0.24.2 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for numpy==1.16.3\nBest match: numpy 1.16.3\nAdding numpy 1.16.3 to easy-install.pth file\nInstalling f2py script to /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin\nInstalling f2py3 script to /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin\nInstalling f2py3.7 script to /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for numba==0.43.1\nBest match: numba 0.43.1\nAdding numba 0.43.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for bokeh==1.1.0\nBest match: bokeh 1.1.0\nAdding bokeh 1.1.0 to easy-install.pth file\nInstalling bokeh script to /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/bin\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for python-dateutil==2.8.0\nBest match: python-dateutil 2.8.0\nAdding python-dateutil 2.8.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for pytz==2019.1\nBest match: pytz 2019.1\nAdding pytz 2019.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for llvmlite==0.28.0\nBest match: llvmlite 0.28.0\nAdding llvmlite 0.28.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for Pillow==6.0.0\nBest match: Pillow 6.0.0\nAdding Pillow 6.0.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for PyYAML==5.1\nBest match: PyYAML 5.1\nAdding PyYAML 5.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for tornado==6.0.2\nBest match: tornado 6.0.2\nAdding tornado 6.0.2 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for six==1.12.0\nBest match: six 1.12.0\nAdding six 1.12.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for Jinja2==2.10.1\nBest match: Jinja2 2.10.1\nAdding Jinja2 2.10.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for packaging==19.0\nBest match: packaging 19.0\nAdding packaging 19.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for MarkupSafe==1.1.1\nBest match: MarkupSafe 1.1.1\nAdding MarkupSafe 1.1.1 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nSearching for pyparsing==2.4.0\nBest match: pyparsing 2.4.0\nAdding pyparsing 2.4.0 to easy-install.pth file\n\nUsing /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages\nFinished processing dependencies for ccc==1.0.0\n/anaconda3/conda-bld/ccc_1557498600857/work\nCopying /Users/jason.debacker/temporary_pkgbld_working_dir/Cost-of-Capital-Calculator to /anaconda3/conda-bld/ccc_1557498600857/work\nsource tree in: /anaconda3/conda-bld/ccc_1557498600857/work\n\nResource usage statistics from building ccc:\n   Process count: 2\n   CPU time: Sys=0:00:00.4, User=0:00:01.0\n   Memory: 68.0M\n   Disk usage: 196.1K\n   Time elapsed: 0:00:06.1\n\nPackaging ccc\nPackaging ccc-1.0.0-py37_0\ncompiling .pyc files...\nfound egg dir: /anaconda3/conda-bld/ccc_1557498600857/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.7/site-packages/ccc-1.0.0-py3.7.egg\nnumber of files: 29\nFixing permissions\nPackage verification results:\n-----------------------------\nTEST START: pkgbld_output/osx-64/ccc-1.0.0-py37_0.tar.bz2\nAdding in variants from /var/folders/b0/wwxd0byd1hx0y_rqrnqhmc0m0000gn/T/tmpvjaqrlow/info/recipe/conda_build_config.yaml\nRenaming work directory,  /anaconda3/conda-bld/ccc_1557498600857/work  to  /anaconda3/conda-bld/ccc_1557498600857/work_moved_ccc-1.0.0-py37_0_osx-64\nCollecting package metadata: ...working... done\nSolving environment: ...working... done\n\n## Package Plan ##\n\n  environment location: /anaconda3/conda-bld/ccc_1557498600857/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh\n\n\nThe following NEW packages will be INSTALLED:\n\n    asn1crypto:      0.24.0-py36_1003      conda-forge                                                                                       \n    bokeh:           1.1.0-py36_0          conda-forge                                                                                       \n    ca-certificates: 2019.3.9-hecc5488_0   conda-forge                                                                                       \n    ccc:             1.0.0-py37_0          file:///Users/jason.debacker/temporary_pkgbld_working_dir/Cost-of-Capital-Calculator/pkgbld_output\n    certifi:         2019.3.9-py36_0       conda-forge                                                                                       \n    cffi:            1.12.3-py36hccf1714_0 conda-forge                                                                                       \n    chardet:         3.0.4-py36_1003       conda-forge                                                                                       \n    cryptography:    2.6.1-py36h212c5bf_0  conda-forge                                                                                       \n    freetype:        2.10.0-h24853df_0     conda-forge                                                                                       \n    idna:            2.8-py36_1000         conda-forge                                                                                       \n    jinja2:          2.10.1-py_0           conda-forge                                                                                       \n    jpeg:            9c-h1de35cc_1001      conda-forge                                                                                       \n    libblas:         3.8.0-8_openblas      conda-forge                                                                                       \n    libcblas:        3.8.0-8_openblas      conda-forge                                                                                       \n    libcxx:          8.0.0-2               conda-forge                                                                                       \n    libcxxabi:       8.0.0-2               conda-forge                                                                                       \n    libffi:          3.2.1-h6de7cb9_1006   conda-forge                                                                                       \n    libgfortran:     3.0.1-0               conda-forge                                                                                       \n    liblapack:       3.8.0-8_openblas      conda-forge                                                                                       \n    libpng:          1.6.37-h2573ce8_0     conda-forge                                                                                       \n    libtiff:         4.0.10-h79f4b77_1001  conda-forge                                                                                       \n    llvmlite:        0.28.0-py36hf292337_0 conda-forge                                                                                       \n    markupsafe:      1.1.1-py36h1de35cc_0  conda-forge                                                                                       \n    marshmallow:     3.0.0rc5-py_0         conda-forge                                                                                       \n    ncurses:         6.1-h0a44026_1002     conda-forge                                                                                       \n    numba:           0.43.1-py36h051e8ed_0 conda-forge                                                                                       \n    numpy:           1.16.3-py36hdf140aa_0 conda-forge                                                                                       \n    olefile:         0.46-py_0             conda-forge                                                                                       \n    openblas:        0.3.6-hd44dcd8_1      conda-forge                                                                                       \n    openssl:         1.1.1b-h01d97ff_2     conda-forge                                                                                       \n    packaging:       19.0-py_0             conda-forge                                                                                       \n    pandas:          0.24.2-py36h0a44026_0 conda-forge                                                                                       \n    paramtools:      0.5.4-py_0            conda-forge                                                                                       \n    pillow:          6.0.0-py36h7095ceb_0  conda-forge                                                                                       \n    pip:             19.1-py36_0           conda-forge                                                                                       \n    pycparser:       2.19-py36_1           conda-forge                                                                                       \n    pyopenssl:       19.0.0-py36_0         conda-forge                                                                                       \n    pyparsing:       2.4.0-py_0            conda-forge                                                                                       \n    pysocks:         1.6.8-py36_1002       conda-forge                                                                                       \n    python:          3.6.7-h8dc6b48_1004   conda-forge                                                                                       \n    python-dateutil: 2.8.0-py_0            conda-forge                                                                                       \n    pytz:            2019.1-py_0           conda-forge                                                                                       \n    pyyaml:          5.1-py36h1de35cc_0    conda-forge                                                                                       \n    readline:        7.0-hcfe32e1_1001     conda-forge                                                                                       \n    requests:        2.21.0-py36_1000      conda-forge                                                                                       \n    scipy:           1.2.1-py36hbd7caa9_1  conda-forge                                                                                       \n    setuptools:      41.0.1-py36_0         conda-forge                                                                                       \n    six:             1.12.0-py36_1000      conda-forge                                                                                       \n    sqlite:          3.26.0-h1765d9f_1001  conda-forge                                                                                       \n    taxcalc:         2.1.0-py36_0          pslmodels                                                                                         \n    tk:              8.6.9-ha441bb4_1001   conda-forge                                                                                       \n    tornado:         6.0.2-py36h01d97ff_0  conda-forge                                                                                       \n    urllib3:         1.24.2-py36_0         conda-forge                                                                                       \n    wheel:           0.33.2-py36_0         conda-forge                                                                                       \n    xlrd:            1.2.0-py_0            conda-forge                                                                                       \n    xz:              5.2.4-h1de35cc_1001   conda-forge                                                                                       \n    yaml:            0.1.7-h1de35cc_1001   conda-forge                                                                                       \n    zlib:            1.2.11-h1de35cc_1004  conda-forge                                                                                       \n\nPreparing transaction: ...working... done\nVerifying transaction: ...working... done\nExecuting transaction: ...working... done\nimport: 'ccc'\n"
martinholmer commented 5 years ago

@jdebacker, Thank you for sharing you experience on Python 3.7 using Package-Builder release 0.22 to build packages for CCC release 1.0.0 (which was released yesterday on May 9, 2019).

I cannot exactly replicate your experience on my computer because I'm using Python 3.6 with Package-Builder 0.22. But I have done some investigation that may help you learn why you cannot build packages for CCC release 1.0.0 on your computer.

Here is what happens today on my Python-3.6+P-B-0.22 computer:

  1. The command pbrelease Cost-of-Capital-Calculator ccc 0.2.9 builds four Python 3.6 ccc packages before it crashes trying to build packages for Python 3.7 (because of the bug that was fixed in CCC PR 255).

  2. The command pbrelease Cost-of-Capital-Calculator ccc 1.0.0 crashes trying to build packages for Python 3.6.

It seems to me that the above information implies that something changed in CCC between release 0.2.9 and release 1.0.0 that makes it no longer possible for me to build ccc packages for Python 3.6 on my computer. And you cannot build Python 3.7 ccc packages on your computer.

I couldn't find a change log in the CCC repository and all the release 1.0.0 notes say is this:

Screen Shot 2019-05-10 at 12 19 06 PM

That doesn't give me much to go on. What's changed?

jdebacker commented 5 years ago

A lot of the structure of the model has changed, but I'm not sure most of those would affect the ability to package the model. E.g., Bokeh is now used in CCC, but that was already a dependency of Tax-Calc, which is a dependency of CCC.

A change I can think of that might affect the ability to build a package is the use of ParamTools, which was added as a dependency. The environment.yml has recently been updated to include the conda-forge channel, and:

- "paramtools>=0.5.1"
- pip
- pip:
  - git+https://github.com/comp-org/Developer-Tools.git@master

The environment.yml also pins to Python 3.6. Should I remove pinning to this specific version?

hdoupe commented 5 years ago

CCC was successfully built with the process and modifications in https://github.com/PSLmodels/Cost-of-Capital-Calculator/pull/261.

Conda packages that do not include C/C++ extensions can be built for the noarch platform. This includes packages that depend on other packages that do have these extensions. noarch means that they will work for all operating systems except for Arch Linux.

jdebacker commented 5 years ago

Thanks @hdoupe for finding a solution.

martinholmer commented 5 years ago

@jdebacker, The extended conversation in pull request #168 found that your problem was caused by an inappropriate exact pin in the Cosr-of-Capital-Calculator/conda.recipe/meta.ymal file in release 1.0.0.