pip install m2crypto failing with swig - python

I am trying to figure out why my pip installation of m2crypto is failing. I need it so that I may install another vmware module called pywbem.
The m2crypto installation is failing at a swig command.
I checked and I am running a swig Version : 1.3.40
Could someone please help me out?
/usr/lib64/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting m2crypto
Using cached M2Crypto-0.24.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): unittest2 in /usr/lib/python2.6/site-packages (from m2crypto)
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.6/site-packages (from unittest2->m2crypto)
Requirement already satisfied (use --upgrade to upgrade): traceback2 in /usr/lib/python2.6/site-packages (from unittest2->m2crypto)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4 in /usr/lib/python2.6/site-packages/six-1.10.0-py2.6.egg (from unittest2->m2crypto)
Requirement already satisfied (use --upgrade to upgrade): linecache2 in /usr/lib/python2.6/site-packages (from traceback2->unittest2->m2crypto)
Installing collected packages: m2crypto
Running setup.py install for m2crypto ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-IdcQbu/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qkp3B9-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
copying M2Crypto/DH.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/Engine.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/Err.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/EVP.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/util.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/RSA.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/threading.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/BN.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/X509.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/BIO.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/RC4.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/callback.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/EC.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/__init__.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/m2.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/DSA.py -> build/lib.linux-x86_64-2.6/M2Crypto
copying M2Crypto/Rand.py -> build/lib.linux-x86_64-2.6/M2Crypto
creating build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-2.6/M2Crypto/SSL
creating build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/__init__.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-x86_64-2.6/M2Crypto/PGP
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -D__x86_64__ -I/usr/include/python2.6 -I/usr/include -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.6/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
swig error : Unrecognized option -builtin
Use 'swig -help' for available options.
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-IdcQbu/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qkp3B9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-IdcQbu/m2crypto/

Looks like you need at least SWIG version 2.0.4, since the install is dying because of the -builtin option.
From the docs: http://www.swig.org/Doc2.0/Python.html#Python_nn28

I just did a yum install pywbem and it installed fine

Related

unable to install awscli using pip on dind 18.09.6-dind due to cython dependency

I saw a strange issue just most of yesterday where while running a simple jenkins build that uses pod template with container docker:18.09.6-dind (alpine linux) the build would fail while trying to install awscli using pip. Here is the sample code:-
apk add curl
apk add py-pip
pip install --user awscli
The error was :-
apk add py-pip
(1/11) Installing libbz2 (1.0.6-r7)
(2/11) Installing expat (2.2.8-r0)
(3/11) Installing libffi (3.2.1-r6)
(4/11) Installing gdbm (1.13-r1)
(5/11) Installing ncurses-terminfo-base (6.1_p20190518-r2)
(6/11) Installing ncurses-libs (6.1_p20190518-r2)
(7/11) Installing readline (8.0.0-r0)
(8/11) Installing sqlite-libs (3.28.0-r3)
(9/11) Installing python2 (2.7.18-r0)
(10/11) Installing py-setuptools (40.8.0-r1)
(11/11) Installing py2-pip (18.1-r0)
Executing busybox-1.30.1-r2.trigger
OK: 74 MiB in 54 packages
[Pipeline] withAwsCli
Executing sh script inside container dind of pod pod-custom-w741q
Executing command: "pip" "--version"
exit
pip 18.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Executing sh script inside container dind of pod pod-custom-w741q
Executing command: "pip" "show" "awscli"
exit
ERROR: [withAwsCli] Command 'pip show awscli' returned the code 1
Executing sh script inside container dind of pod pod-custom-w741q
Executing command: "pip" "install" "--user" "awscli"
exit
Collecting awscli
Downloading https://files.pythonhosted.org/packages/d9/d3/1b76aa71fea8438f82a991ad94443d343836848f8b8c0dc413ed987745f8/awscli-1.19.51-py2.py3-none-any.whl (3.6MB)
Collecting botocore==1.20.51 (from awscli)
Downloading https://files.pythonhosted.org/packages/3c/1d/7a3741f17a10cc599bb3728351992b10094328ee07b8a129250ba2039642/botocore-1.20.51-py2.py3-none-any.whl (7.4MB)
Collecting colorama<0.4.4,>=0.2.5 (from awscli)
Downloading https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting PyYAML<5.5,>=3.10 (from awscli)
Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
Complete output from command /usr/bin/python2 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-mT9r0n --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython:
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl (583kB)
Collecting wheel
Downloading https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
Collecting Cython
Downloading https://files.pythonhosted.org/packages/d9/cd/0d2d90b27219c07f68f1c25bcc7b02dd27639d2180add9d4b73e70945869/Cython-0.29.23.tar.gz (2.1MB)
Installing collected packages: setuptools, wheel, Cython
Running setup.py install for Cython: started
Running setup.py install for Cython: finished with status 'error'
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-72Od1r/Cython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-Qfbz7l/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-mT9r0n --compile:
Unable to find pgen, not compiling formal grammar.
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying cython.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/Cython
copying Cython/TestUtils.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/Utils.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/CodeWriter.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/Debugging.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/StringIOTree.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/__init__.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/Coverage.py -> build/lib.linux-x86_64-2.7/Cython
copying Cython/Shadow.py -> build/lib.linux-x86_64-2.7/Cython
creating build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/Dependencies.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/__init__.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/Distutils.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/Inline.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/BuildExecutable.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/Cythonize.py -> build/lib.linux-x86_64-2.7/Cython/Build
copying Cython/Build/IpythonMagic.py -> build/lib.linux-x86_64-2.7/Cython/Build
creating build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/FlowControl.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Code.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/MemoryView.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Pipeline.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/AnalysedTreeTransforms.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/CythonScope.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/TypeSlots.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Errors.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/FusedNode.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/PyrexTypes.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/AutoDocTransforms.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/UtilityCode.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/StringEncoding.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Version.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/CmdLine.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/UtilNodes.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/ParseTreeTransforms.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Visitor.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/TypeInference.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/__init__.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Options.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/DebugFlags.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Scanning.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/ExprNodes.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Interpreter.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Builtin.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Annotate.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Symtab.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Optimize.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Parsing.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Naming.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/ModuleNode.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/TreeFragment.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Nodes.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Future.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/TreePath.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Main.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/CodeGeneration.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Buffer.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Pythran.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
copying Cython/Compiler/Lexicon.py -> build/lib.linux-x86_64-2.7/Cython/Compiler
creating build/lib.linux-x86_64-2.7/Cython/Runtime
copying Cython/Runtime/__init__.py -> build/lib.linux-x86_64-2.7/Cython/Runtime
creating build/lib.linux-x86_64-2.7/Cython/Distutils
copying Cython/Distutils/old_build_ext.py -> build/lib.linux-x86_64-2.7/Cython/Distutils
copying Cython/Distutils/__init__.py -> build/lib.linux-x86_64-2.7/Cython/Distutils
copying Cython/Distutils/build_ext.py -> build/lib.linux-x86_64-2.7/Cython/Distutils
copying Cython/Distutils/extension.py -> build/lib.linux-x86_64-2.7/Cython/Distutils
creating build/lib.linux-x86_64-2.7/Cython/Debugger
copying Cython/Debugger/DebugWriter.py -> build/lib.linux-x86_64-2.7/Cython/Debugger
copying Cython/Debugger/libpython.py -> build/lib.linux-x86_64-2.7/Cython/Debugger
copying Cython/Debugger/__init__.py -> build/lib.linux-x86_64-2.7/Cython/Debugger
copying Cython/Debugger/Cygdb.py -> build/lib.linux-x86_64-2.7/Cython/Debugger
copying Cython/Debugger/libcython.py -> build/lib.linux-x86_64-2.7/Cython/Debugger
creating build/lib.linux-x86_64-2.7/Cython/Debugger/Tests
......................................
......................................
running build_ext
building 'Cython.Plex.Scanners' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/tmp
creating build/temp.linux-x86_64-2.7/tmp/pip-install-72Od1r
creating build/temp.linux-x86_64-2.7/tmp/pip-install-72Od1r/Cython
creating build/temp.linux-x86_64-2.7/tmp/pip-install-72Od1r/Cython/Cython
creating build/temp.linux-x86_64-2.7/tmp/pip-install-72Od1r/Cython/Cython/Plex
gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python2.7 -c /tmp/pip-install-72Od1r/Cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-2.7/tmp/pip-install-72Od1r/Cython/Cython/Plex/Scanners.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-72Od1r/Cython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-Qfbz7l/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-mT9r0n --compile" failed with error code 1 in /tmp/pip-install-72Od1r/Cython/
----------------------------------------
Command "/usr/bin/python2 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-mT9r0n --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython" failed with error code 1 in None
It always worked fine until yesterday and also works fine now on same dind OS. I have no clue why was it trying to set up dependency cython just yesterday. I see a new version of cython was released yesterday
https://pypi.org/search/?q=cython
Not sure if that played any role
I am not that familiar with how pip works when it tries to install something so would like to understand why it was looking for cython all of a sudden while its the same pip version 18.1 on that dind OS and trying to fetch latest awscli which happened to be released just yesterday 1.19.51 as per
https://github.com/aws/aws-cli/releases
Also yesterday same thing worked just fine all throughout on docker:18.06.1-ce-dind or other dind versions. So something specific to docker:18.09.6-dind and combination of pip 18.1 and awscli 1.19.51.
kindly help me figure out what could have been the issue here.
Found out the root cause which is
https://github.com/aws/aws-cli/issues/6096

How can I figure out this question about install port using pip

I want to install the package port.The OS is Mac OS 10.15.6. The terminal showed these error:
(base) bash-3.2$ pip install port
Collecting port
Using cached port-1.1.4-py3-none-any.whl
Collecting pyrss2gen
Using cached PyRSS2Gen-1.1-py3-none-any.whl
Requirement already satisfied: python-dateutil in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from port) (2.8.1)
Requirement already satisfied: pyyaml in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from port) (5.4.1)
Requirement already satisfied: watchdog==0.8.3 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from port) (0.8.3)
Collecting nom
Using cached nom-1.4.0-py3-none-any.whl
Collecting click==6.2
Using cached click-6.2-py2.py3-none-any.whl (70 kB)
Requirement already satisfied: argh>=0.24.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from watchdog==0.8.3->port) (0.26.2)
Requirement already satisfied: pathtools>=0.1.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from watchdog==0.8.3->port) (0.1.2)
Collecting Jinja2==2.8
Using cached Jinja2-2.8-py2.py3-none-any.whl (263 kB)
Requirement already satisfied: Pygments==2.1.3 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from nom->port) (2.1.3)
Requirement already satisfied: Markdown==2.6.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from nom->port) (2.6.5)
Collecting html2text==2015.11.4
Using cached html2text-2015.11.4-py3-none-any.whl
Collecting lxml==3.5.0
Using cached lxml-3.5.0.tar.gz (3.8 MB)
Requirement already satisfied: websocket-server==0.4 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from nom->port) (0.4)
Collecting gfm==0.0.3
Using cached gfm-0.0.3-py3-none-any.whl
Requirement already satisfied: py-gfm==0.1.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from nom->port) (0.1.1)
Requirement already satisfied: MarkupSafe in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from Jinja2==2.8->nom->port) (1.1.1)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from py-gfm==0.1.1->nom->port) (47.1.0)
Requirement already satisfied: unittest2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from py-gfm==0.1.1->nom->port) (1.1.0)
Requirement already satisfied: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from python-dateutil->port) (1.15.0)
Requirement already satisfied: traceback2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from unittest2->py-gfm==0.1.1->nom->port) (1.4.0)
Collecting argparse
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Requirement already satisfied: linecache2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from traceback2->unittest2->py-gfm==0.1.1->nom->port) (1.0.0)
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"'; __file__='"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-wheel-if_aavgp
cwd: /private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/
Complete output (85 lines):
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
creating build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src
creating build/temp.macosx-10.9-x86_64-3.7/src/lxml
/usr/local/bin/gcc-9 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/usr/local/opt/openblas/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Isrc/lxml/includes -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-x86_64-3.7/src/lxml/lxml.etree.o -w -flat_namespace
unable to execute '/usr/local/bin/gcc-9': No such file or directory
Compile failed: command '/usr/local/bin/gcc-9' failed with exit status 1
creating var
creating var/folders
creating var/folders/2m
creating var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn
creating var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T
cc -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitze9cdjlm.c -o var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitze9cdjlm.o
cc var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitze9cdjlm.o -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -o a.out
error: command '/usr/local/bin/gcc-9' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: argparse, lxml, Jinja2, html2text, gfm, click, pyrss2gen, nom, port
Attempting uninstall: lxml
Found existing installation: lxml 4.6.2
Uninstalling lxml-4.6.2:
Successfully uninstalled lxml-4.6.2
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"'; __file__='"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-record-ol8yht6w/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/lxml
cwd: /private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/
Complete output (80 lines):
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.9-x86_64-3.7/lxml
creating build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/html
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.9-x86_64-3.7/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.9-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.9-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/src
creating build/temp.macosx-10.9-x86_64-3.7/src/lxml
/usr/local/bin/gcc-9 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/usr/local/opt/openblas/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Isrc/lxml/includes -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-x86_64-3.7/src/lxml/lxml.etree.o -w -flat_namespace
unable to execute '/usr/local/bin/gcc-9': No such file or directory
Compile failed: command '/usr/local/bin/gcc-9' failed with exit status 1
cc -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitpxou4we_.c -o var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitpxou4we_.o
cc var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/xmlXPathInitpxou4we_.o -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lxml2 -o a.out
error: command '/usr/local/bin/gcc-9' failed with exit status 1
----------------------------------------
Rolling back uninstall of lxml
Moving to /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/lxml-4.6.2.dist-info/
from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/~xml-4.6.2.dist-info
Moving to /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/lxml/
from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/~xml
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"'; __file__='"'"'/private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-install-2bbhvpwz/lxml_3ae795971a7a4a38adceb54ead864a4e/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2m/5c6f3dp53939057p3xz0ys1c0000gn/T/pip-record-ol8yht6w/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/lxml Check the logs for full command output.

Installing clarifai (grpc) failed, exit status 1

What version of gRPC and what language are you using?
lastest
What operating system (Linux, Windows,...) and version?
Windows 10 Server
What runtime / compiler are you using (e.g. python version or version of gcc) python
What did you do?
Tried to install it from pip install command
ERROR: Command errored out with exit status 1: command:
'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';
file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record
'C:\Users\Administrator\AppData\Local\Temp\2\pip-record-nkilt9xu\install-record.txt'
--single-version-externally-managed --compile
cwd: C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\
Complete output (66 lines): Found cython-generated files... running
install running build running build_py running build_project_metadata
creating python_build creating python_build\lib.win32-3.8 creating
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_auth.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_channel.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_common.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_compression.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_grpcio_metadata.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_interceptor.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_plugin_wrapping.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc_server.py -> python_build\lib.win32-3.8\grpc
copying src\python\grpcio\grpc_utilities.py ->
python_build\lib.win32-3.8\grpc copying
src\python\grpcio\grpc__init__.py -> python_build\lib.win32-3.8\grpc
creating python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\implementations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\interfaces.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta\utilities.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_client_adaptations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_metadata.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta_server_adaptations.py ->
python_build\lib.win32-3.8\grpc\beta copying
src\python\grpcio\grpc\beta__init__.py ->
python_build\lib.win32-3.8\grpc\beta creating
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental\gevent.py ->
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental\session_cache.py ->
python_build\lib.win32-3.8\grpc\experimental copying
src\python\grpcio\grpc\experimental__init__.py ->
python_build\lib.win32-3.8\grpc\experimental creating
python_build\lib.win32-3.8\grpc\framework copying
src\python\grpcio\grpc\framework__init__.py ->
python_build\lib.win32-3.8\grpc\framework creating
python_build\lib.win32-3.8\grpc_cython copying
src\python\grpcio\grpc_cython__init__.py ->
python_build\lib.win32-3.8\grpc_cython creating
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio_channel.py ->
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio_server.py ->
python_build\lib.win32-3.8\grpc\experimental\aio copying
src\python\grpcio\grpc\experimental\aio__init__.py ->
python_build\lib.win32-3.8\grpc\experimental\aio creating
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common\cardinality.py ->
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common\style.py ->
python_build\lib.win32-3.8\grpc\framework\common copying
src\python\grpcio\grpc\framework\common__init__.py ->
python_build\lib.win32-3.8\grpc\framework\common creating
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\abandonment.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\callable_util.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\future.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\logging_pool.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\stream.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation\stream_util.py ->
python_build\lib.win32-3.8\grpc\framework\foundation copying
src\python\grpcio\grpc\framework\foundation__init__.py ->
python_build\lib.win32-3.8\grpc\framework\foundation creating
python_build\lib.win32-3.8\grpc\framework\interfaces copying
src\python\grpcio\grpc\framework\interfaces__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces creating
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base\base.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base\utilities.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base copying
src\python\grpcio\grpc\framework\interfaces\base__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\base creating
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face\face.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face\utilities.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face copying
src\python\grpcio\grpc\framework\interfaces\face__init__.py ->
python_build\lib.win32-3.8\grpc\framework\interfaces\face creating
python_build\lib.win32-3.8\grpc_cython_cygrpc copying
src\python\grpcio\grpc_cython_cygrpc__init__.py ->
python_build\lib.win32-3.8\grpc_cython_cygrpc creating
python_build\lib.win32-3.8\grpc_cython_credentials copying
src\python\grpcio\grpc_cython_credentials\roots.pem ->
python_build\lib.win32-3.8\grpc_cython_credentials running build_ext
error: [WinError 2] Impossibile trovare il file specificato
---------------------------------------- ERROR: Command errored out with exit status 1:
'c:\users\administrator\appdata\local\programs\python\python38-32\python.exe'
-u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';
file='"'"'C:\Users\Administrator\AppData\Local\Temp\2\pip-install-6hv8xzb8\grpcio\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
install --record
'C:\Users\Administrator\AppData\Local\Temp\2\pip-record-nkilt9xu\install-record.txt'
--single-v
ersion-externally-managed --compile Check the logs for full command output.
Expected to install it as it did on my personal computer
gRPC team has an issue to track adding 3.8 pre-compiled wheels https://github.com/grpc/grpc/issues/20615. Currently, 3.8 wheels are only available in Linux, but not for Windows or macOS. I would recommend:
Switch to CPython 3.7;
Help the community by digging into the compilation error.

cx_freeze doesn't get installed in python 3.8.0

I'm trying to install cx_freeze to convert my python code into an executable. But it always shows the error below.
I looked into the problem and found that I should downgrade my python version because there is no cx_freeze that supports Python 3.8.
NOTE
It turns out that cx_freeze installation on Python 3.8 is possible if you download the development version directly from Git.
Using cached https://files.pythonhosted.org/packages/14/74/a76c12e4e357c79999191d5db259e66b46c57708515395c023d38e6bbbd7/cx_Freeze-6.0.tar.gz
Building wheels for collected packages: cx-freeze
Building wheel for cx-freeze (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\lenovo\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\lenovo\AppData\Local\Temp\pip-wheel-59n38z49' --python-tag cp38
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-wncuyyho\cx-freeze\
Complete output (70 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\hooks.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\macdist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\main.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\windist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win-amd64-3.8\cx_Freeze
creating build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\Console.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
creating build\lib.win-amd64-3.8\cx_Freeze\samples
creating build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
creating build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
creating build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\get_examples.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\server_simple.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\web_srv.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\wsgiserver.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
creating build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
creating build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
creating build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
creating build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
creating build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
creating build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\Config.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
creating build\lib.win-amd64-3.8\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\hello.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\simple
creating build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
creating build\lib.win-amd64-3.8\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\wx
creating build\lib.win-amd64-3.8\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\qotd.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\zope
running build_ext
building 'cx_Freeze.util' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for cx-freeze
Running setup.py clean for cx-freeze
Failed to build cx-freeze
Installing collected packages: cx-freeze
Running setup.py install for cx-freeze ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\lenovo\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lenovo\AppData\Local\Temp\pip-record-42p9qoxu\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-wncuyyho\cx-freeze\
Complete output (70 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\hooks.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\macdist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\main.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\windist.py -> build\lib.win-amd64-3.8\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win-amd64-3.8\cx_Freeze
creating build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\Console.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win-amd64-3.8\cx_Freeze\initscripts
creating build\lib.win-amd64-3.8\cx_Freeze\samples
creating build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\advanced
creating build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\asmodule
creating build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\get_examples.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\server_simple.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\web_srv.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
copying cx_Freeze\samples\importlib\wsgiserver.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\importlib
creating build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\matplotlib
creating build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\openpyxl
creating build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt4
creating build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\PyQt5
creating build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\relimport
creating build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\Config.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
copying cx_Freeze\samples\service\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\service
creating build\lib.win-amd64-3.8\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\hello.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\simple
creating build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\Tkinter
creating build\lib.win-amd64-3.8\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\wx
creating build\lib.win-amd64-3.8\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\qotd.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\setup.py -> build\lib.win-amd64-3.8\cx_Freeze\samples\zope
running build_ext
building 'cx_Freeze.util' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\lenovo\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"'; __file__='"'"'C:\\Users\\lenovo\\AppData\\Local\\Temp\\pip-install-wncuyyho\\cx-freeze\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\lenovo\AppData\Local\Temp\pip-record-42p9qoxu\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I had the exact same problem. This is how to solve it:
 
1. Install Visual Studio Community Edition
You need the C++ compiler for Windows 10. Download **Visual Studio 2019 Community** from https://visualstudio.microsoft.com/downloads/
Double click the downloaded installer. You should now see the following window (after a bit of waiting and a bit of clicking next):
That's the place where you should select the "things" that you want to include in your Visual Studio installation. The only thing you need right now is Desktop development with C++. After selecting that, you should see Installation details appear on the right side. There are already a few entries selected there (marked as Automatically selected in my screenshot above). You need to manually select the two last entries. Now click the Install button in the down-right corner.
Now have some patience while the installation progresses:
At the end, the installer will ask you to restart your computer. Click OK. That's it.
 
2. Install cx_freeze
*Just a reminder: make sure you have an updated `pip`. Issue the command:*
*`python -m pip install --upgrade pip`*
cx_freeze does not yet support Python 3.8. Luckily, the development version already has a fix. So you should not run pip install cx_freeze, but the following command instead:
pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git#master
On my computer, the installation was successfull:
C:\Users\Kristof>pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git#master
Collecting git+https://github.com/anthony-tuininga/cx_Freeze.git#master
Cloning https://github.com/anthony-tuininga/cx_Freeze.git (to revision master) to c:\users\kristof\appdata\local\temp\pip-req-build-7hrolrl1
Running command git clone -q https://github.com/anthony-tuininga/cx_Freeze.git 'C:\Users\Kristof\AppData\Local\Temp\pip-req-build-7hrolrl1'
Building wheels for collected packages: cx-Freeze
Building wheel for cx-Freeze (setup.py) ... done
Created wheel for cx-Freeze: filename=cx_Freeze-6.1-cp38-cp38-win_amd64.whl size=173005 sha256=507c3b90a1b7945fc277ccf25a5e4be7c64a37e1a1f6bce3f5171434c823fc04
Stored in directory: C:\Users\Kristof\AppData\Local\Temp\pip-ephem-wheel-cache-p7vebfjn\wheels\30\8c\fc\66fc4c5a5e2a27aa97f29d147cee6bd5d1198260ae9d1e9102
Successfully built cx-Freeze
Installing collected packages: cx-Freeze
Successfully installed cx-Freeze-6.1
 
3. Install cx_freeze on Python 3.9
I came back to this question after several months. I've got Python 3.9 now. Please note that cx_Freeze has changed its github path and also switched from master to main branch. This is how to install the main branch now:
> pip install git+https://github.com/marcelotduarte/cx_Freeze.git#main
Collecting git+https://github.com/marcelotduarte/cx_Freeze.git#main
Cloning https://github.com/marcelotduarte/cx_Freeze.git (to revision main) to c:\users\gebruiker\appdata\local\temp\pip-req-build-ah6qsibk
Running command git clone -q https://github.com/marcelotduarte/cx_Freeze.git 'C:\Users\Gebruiker\AppData\Local\Temp\pip-req-build-ah6qsibk'
Running command git submodule update --init --recursive -q
Requirement already satisfied: importlib_metadata>=3.1.1 in c:\python39\lib\site-packages (from cx-Freeze==6.6.dev0) (3.6.0)
Requirement already satisfied: zipp>=0.5 in c:\python39\lib\site-packages (from importlib_metadata>=3.1.1->cx-Freeze==6.6.dev0) (3.4.0)
Building wheels for collected packages: cx-Freeze
Building wheel for cx-Freeze (setup.py) ... done
Created wheel for cx-Freeze: filename=cx_Freeze-6.6.dev0-cp39-cp39-win_amd64.whl size=260212 sha256=48855a055f9834fb666831b9ae4ff08aaa93276f9c91339614a4f58656d0bd47
Stored in directory: C:\Users\Gebruiker\AppData\Local\Temp\pip-ephem-wheel-cache-flvt95bk\wheels\e4\58\28\02e3273cbbf0d18134fd22f6766cfdbc1b9f6b2946d5d75940
Successfully built cx-Freeze
Installing collected packages: cx-Freeze
Successfully installed cx-Freeze-6.6.dev0

Unable to Install m2crypto

I am unable to install M2Crypto on OSX 10.11.1. I have swig and pcre already installed.
Below is the trace from my installation. Please help !!
$ pip install M2Crypto
Collecting M2Crypto
Using cached M2Crypto-0.22.5.tar.gz
Installing collected packages: M2Crypto
Running setup.py install for M2Crypto
Complete output from command /Users/nitish/edmarket/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/zw/142ltd2d3t7f8vx3sk_v_fyw0000gn/T/pip-build-wdu6z7dn/M2Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zw/142ltd2d3t7f8vx3sk_v_fyw0000gn/T/pip-hgwirik3-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/nitish/edmarket/include/site/python3.4/M2Crypto:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.4
creating build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/BIO.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/BN.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/callback.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/DH.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/DSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/EC.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Engine.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Err.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/EVP.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/Rand.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/RC4.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/RSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/threading.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/util.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
copying M2Crypto/X509.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto
creating build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/SSL
creating build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/__init__.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.macosx-10.6-intel-3.4/M2Crypto/PGP
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/Users/nitish/edmarket/include -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -I/usr/include -includeall -modern -builtin -outdir build/lib.macosx-10.6-intel-3.4/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
Use below command to resolve you problem
env LDFLAGS="-L$(brew --prefix openssl)/lib" \
CFLAGS="-I$(brew --prefix openssl)/include" \
SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" \
pip install M2Crypto
You need to install openssl-dev package.

Categories

Resources