linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 58 forks source link

Building Anaconda: Mandatory Packages - 6. Building and Installing the Python 3.6 package #16

Open CharlesAydin opened 6 years ago

CharlesAydin commented 6 years ago

This is in reference to THIS specific section.

My system info:

Linux LNXUBTF1 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:58:22 UTC 2018 s390x s390x s390x GNU/Linux

In the python-3.6/meta.yaml file, when I use Python-3.6.1.tar.xz, as recommended, and run conda build python-3.6 --python 3.6, I receive the following error:

Adding in variants from internal_defaults INFO:conda_build.variants:Adding in variants from internal_defaults Adding in variants from config.variant INFO:conda_build.variants:Adding in variants from config.variant Attempting to finalize metadata for python INFO:conda_build.metadata:Attempting to finalize metadata for python Solving environment: done

Downloading and Extracting Packages bzip2 1.0.6: ###################################################################### | 100% Solving environment: done BUILD START: ['python-3.6.1-0.tar.bz2'] Solving environment: done Solving environment: done

Package Plan

environment location: /home/caydin/miniconda3/conda-bld/python_1516385390581/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla

The following NEW packages will be INSTALLED:

bzip2:     1.0.6-h6d464ef_2      
libgcc-ng: 7.2.0-h7cc24e2_2      
openssl:   1.0.2l-0         local
readline:  6.2-2            local
sqlite:    3.13.0-0         local
system:    5.8-2            local
tk:        8.5.18-0         local
xz:        5.2.2-0          local
zlib:      1.2.8-1          local

Downloading and Extracting Packages openssl 1.0.2l: ################################################################### | 100% readline 6.2: ##################################################################### | 100% sqlite 3.13.0: #################################################################### | 100% system 5.8: ####################################################################### | 100% tk 8.5.18: ######################################################################## | 100% xz 5.2.2: ######################################################################### | 100% zlib 1.2.8: ####################################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Source cache directory is: /home/caydin/miniconda3/conda-bld/src_cache No hash (md5, sha1, sha256) provided. Source download forced. Add hash to recipe to use source cache. WARNING:conda_build.source:No hash (md5, sha1, sha256) provided. Source download forced. Add hash to recipe to use source cache. Downloading source to cache: Python-3.6.1.tar.xz Downloading https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz Success Extracting download Traceback (most recent call last): File "/home/caydin/miniconda3/bin/conda-build", line 11, in sys.exit(main()) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 399, in main execute(sys.argv[1:]) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 390, in execute verify=args.verify) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/api.py", line 188, in build need_source_download=need_source_download, config=config, variants=variants) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 1916, in build_tree notest=notest, File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 1117, in build try_download(m, no_download_source=False, raise_error=True) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/render.py", line 461, in try_download source.provide(metadata) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/source.py", line 626, in provide timeout=metadata.config.timeout, locking=metadata.config.locking) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/source.py", line 146, in unpack tar_xf(src_path, tmpdir) File "/home/caydin/miniconda3/lib/python3.6/site-packages/conda_build/utils.py", line 382, in tar_xf t = tarfile.open(tarball, mode) File "/home/caydin/miniconda3/lib/python3.6/tarfile.py", line 1573, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not be opened successfully

When I use Python-3.6.1.tgz, the process seems to run (with some errors, though). I wanted to file this issue at this stage, which I'll update once I'm done with the whole build process.