Unable to install M2Crypto on Mac M1 - m2crypto

I'm trying to install requirements.txt on Mac M1 in python, but I'm getting the stack trace below.
Collecting m2crypto
Using cached https://files.pythonhosted.org/packages/2c/52/c35ec79dd97a8ecf6b2bbd651df528abb47705def774a4a15b99977274e8/M2Crypto-0.38.0.tar.gz
Requirement already satisfied: typing in /Users/kelvin/.pyenv/versions/2.7.18/lib/python2.7/site-packages (from m2crypto) (3.10.0.0)
Installing collected packages: m2crypto
Running setup.py install for m2crypto ... error
ERROR: Command errored out with exit status 1:
command: /Users/kelvin/.pyenv/versions/2.7.18/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/setup.py'"'"'; __file__='"'"'/private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/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/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-record-k7um2g/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/
Complete output (66 lines):
running install
running build
running build_py
copying src/M2Crypto/callback.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/EVP.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/AuthCookie.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/m2.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/ftpslib.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/EC.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/httpslib.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/X509.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/util.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/RSA.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/BIO.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/DH.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/__init__.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/threading.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/Rand.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/SMIME.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/Engine.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/m2xmlrpclib.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/RC4.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/m2urllib2.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/DSA.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/six.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/m2urllib.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/BN.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/m2crypto.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/Err.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
copying src/M2Crypto/ASN1.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto
creating build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/cb.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/Session.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/timeout.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/__init__.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/Cipher.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/Connection.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/Context.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/SSLServer.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/ssl_dispatcher.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
copying src/M2Crypto/SSL/Checker.py -> build/lib.macosx-12.4-arm64-2.7/M2Crypto/SSL
running egg_info
writing requirements to src/M2Crypto.egg-info/requires.txt
writing src/M2Crypto.egg-info/PKG-INFO
writing top-level names to src/M2Crypto.egg-info/top_level.txt
writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'SWIG/*.i'
warning: no files found matching 'SWIG/*.h'
warning: no files found matching 'SWIG/*.def'
warning: no files found matching 'SWIG/_m2crypto_wrap.c'
warning: no files found matching 'M2Crypto/m2crypto.py'
writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
running build_ext
building 'M2Crypto._m2crypto' extension
swigging src/SWIG/_m2crypto.i to src/SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/include -I/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory) -I/usr/local/include -I/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory) -I/Users/kelvin/.pyenv/versions/2.7.18/include/python2.7 -I/usr/include/openssl -includeall -modern -builtin -outdir /private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/src/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
Deprecated command line option: -modern. This option is now always on.
src/SWIG/_m2crypto.i:62: Error: Unable to find 'openssl/opensslv.h'
src/SWIG/_m2crypto.i:68: Error: Unable to find 'openssl/safestack.h'
src/SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
src/SWIG/_rc4.i:5: Error: Unable to find 'openssl/opensslconf.h'
src/SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/kelvin/.pyenv/versions/2.7.18/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/setup.py'"'"'; __file__='"'"'/private/var/folders/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-install-Vz8dAN/m2crypto/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/yb/wpq8rw3114j3r9l_brykw2_r0000gn/T/pip-record-k7um2g/install-record.txt --single-version-externally-managed --compile Check the logs for full command output

Just in case you're still experiencing this - and because this post matched my search terms - the instructions at https://gitlab.com/m2crypto/m2crypto/-/blob/master/INSTALL.rst#macosx worked for me. In case that ever disappears, they were to
$ brew install openssl swig
$ LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-I$(brew --prefix openssl)/include" pip install m2crypto

Related

how to install django-auth-ldap

so basicly i'm trying to install django-auth-ldap to my system, but it always crashes with errors
i use python3.10 on Ubuntu 20.04 with Django 4.0.4
(.venv) user#vmlist:~/test/vmlist_frontend$ pip3.10 install django-auth-ldap
Collecting django-auth-ldap
Using cached django_auth_ldap-4.1.0-py3-none-any.whl (20 kB)
Collecting python-ldap>=3.1
Using cached python-ldap-3.4.0.tar.gz (376 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: Django>=2.2 in /home/user/test/.venv/lib/python3.10/site-packages (from django-auth-ldap) (4.0.4)
Requirement already satisfied: sqlparse>=0.2.2 in /home/user/test/.venv/lib/python3.10/site-packages (from Django>=2.2->django-auth-ldap) (0.4.2)
Requirement already satisfied: asgiref<4,>=3.4.1 in /home/user/test/.venv/lib/python3.10/site-packages (from Django>=2.2->django-auth-ldap) (3.5.2)
Collecting pyasn1-modules>=0.1.5
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Requirement already satisfied: pyasn1>=0.3.7 in /home/user/test/.venv/lib/python3.10/site-packages (from python-ldap>=3.1->django-auth-ldap) (0.4.8)
Building wheels for collected packages: python-ldap
Building wheel for python-ldap (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for python-ldap (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [101 lines of output]
/tmp/pip-build-env-kzs5bz2f/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
copying Lib/ldapurl.py -> build/lib.linux-x86_64-cpython-310
copying Lib/ldif.py -> build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/functions.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/logger.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/async.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/constants.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/filter.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/dn.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-cpython-310/ldap
copying Lib/ldap/compat.py -> build/lib.linux-x86_64-cpython-310/ldap
creating build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-cpython-310/ldap/controls
creating build/lib.linux-x86_64-cpython-310/ldap/extop
copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-cpython-310/ldap/extop
copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-cpython-310/ldap/extop
copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-cpython-310/ldap/extop
creating build/lib.linux-x86_64-cpython-310/ldap/schema
copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-cpython-310/ldap/schema
copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-cpython-310/ldap/schema
copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-cpython-310/ldap/schema
copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-cpython-310/ldap/schema
creating build/lib.linux-x86_64-cpython-310/slapdtest
copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-cpython-310/slapdtest
copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-cpython-310/slapdtest
running egg_info
writing Lib/python_ldap.egg-info/PKG-INFO
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'Doc/.build'
adding license file 'LICENCE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
/tmp/pip-build-env-kzs5bz2f/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: !!
############################
# Package would be ignored #
############################
Python recognizes 'slapdtest.certs' as an importable package, however it is
included in the distribution as "data".
This behavior is likely to change in future versions of setuptools (and
therefore is considered deprecated).
Please make sure that 'slapdtest.certs' is included as a package by using
setuptools' `packages` configuration field or the proper discovery methods.
You can read more about "package discovery" and "data files" on setuptools
documentation page.
!!
check.warn(importable)
creating build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-cpython-310/slapdtest/certs
running build_ext
building '_ldap' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/Modules
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.4.0 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/home/user/test/.venv/include -I/usr/include/python3.10 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-310/Modules/LDAPObject.o
error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-ldap
Failed to build python-ldap
ERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects
i tried to install the prerequisits for ldap (They did install seccessfully), but it also did not help
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
how to solve the porblem? :(
fixed the porblem by installing this things:
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo apt-get install build-essential python3-dev python3.10-dev python2.7-dev libldap2-dev libsasl2-dev slapd ldap-utils tox lcov valgrind

Sudachipy Python package require Microsoft Visual C++ 14.0 or greater when already installed [duplicate]

This question already has answers here:
Git Bash: Microsoft Visual C++ 14.0 is required, but I already have it installed
(2 answers)
Closed 1 year ago.
I am trying to install Sudachipy on my Windows machine. I tried directly from the tar file and with pip but I keep having the following error. When I check my installation in Settings>Apps&Features I see several versions of Microsoft Viusal C++, including the 2015-2019 Redistributable(x86) - 14.29.30040
The Package ask for 14. or higher. What is wrong here?
Collecting sudachipy
Using cached SudachiPy-0.5.4.tar.gz (86 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: sortedcontainers~=2.1.0 in c:\users\m\appdata\local\programs\python\python39\lib\site-packages (from sudachipy) (2.1.0)
Collecting dartsclone~=0.9.0
Using cached dartsclone-0.9.0.tar.gz (17 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Cython in c:\users\m\appdata\local\programs\python\python39\lib\site-packages (from dartsclone~=0.9.0->sudachipy) (0.29.24)
Building wheels for collected packages: sudachipy, dartsclone
Building wheel for sudachipy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\mdelal001\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\m\\AppData\\Local\\Temp\\pip-install-oal03kk3\\sudachipy_227636af8754449b96ce8e87e2caa18e\\setup.py'"'"'; __file__='"'"'C:\\Users\\m\\AppData\\Local\\Temp\\pip-install-oal03kk3\\sudachipy_227636af8754449b96ce8e87e2caa18e\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\m\AppData\Local\Temp\pip-wheel-dn9unuux'
cwd: C:\Users\m\AppData\Local\Temp\pip-install-oal03kk3\sudachipy_227636af8754449b96ce8e87e2caa18e\
Complete output (74 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\sudachipy
copying sudachipy\command_line.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\config.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\dictionary.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\morpheme.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\morphemelist.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\utf8inputtext.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\utf8inputtextbuilder.py -> build\lib.win-amd64-3.9\sudachipy
copying sudachipy\__init__.py -> build\lib.win-amd64-3.9\sudachipy
creating build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\binarydictionary.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\categorytype.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\charactercategory.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\dictionarybuilder.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\dictionaryheader.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\dictionaryversion.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\doublearraylexicon.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\grammar.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\jtypedbytebuffer.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\lexicon.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\lexiconset.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\userdictionarybuilder.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\wordidtable.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\wordinfo.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\wordinfolist.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\wordparameterlist.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
copying sudachipy\dictionarylib\__init__.py -> build\lib.win-amd64-3.9\sudachipy\dictionarylib
creating build\lib.win-amd64-3.9\sudachipy\plugin
copying sudachipy\plugin\__init__.py -> build\lib.win-amd64-3.9\sudachipy\plugin
creating build\lib.win-amd64-3.9\sudachipy\plugin\connect_cost
copying sudachipy\plugin\connect_cost\editconnectioncost.py -> build\lib.win-amd64-3.9\sudachipy\plugin\connect_cost
copying sudachipy\plugin\connect_cost\inhibitconnectioncost.py -> build\lib.win-amd64-3.9\sudachipy\plugin\connect_cost
copying sudachipy\plugin\connect_cost\__init__.py -> build\lib.win-amd64-3.9\sudachipy\plugin\connect_cost
creating build\lib.win-amd64-3.9\sudachipy\plugin\input_text
copying sudachipy\plugin\input_text\default_input_text_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\input_text
copying sudachipy\plugin\input_text\input_text.py -> build\lib.win-amd64-3.9\sudachipy\plugin\input_text
copying sudachipy\plugin\input_text\prolongedsoundmark.py -> build\lib.win-amd64-3.9\sudachipy\plugin\input_text
copying sudachipy\plugin\input_text\utils.py -> build\lib.win-amd64-3.9\sudachipy\plugin\input_text
copying sudachipy\plugin\input_text\__init__.py -> build\lib.win-amd64-3.9\sudachipy\plugin\input_text
creating build\lib.win-amd64-3.9\sudachipy\plugin\oov
copying sudachipy\plugin\oov\mecab_oov_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\oov
copying sudachipy\plugin\oov\oov_provider_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\oov
copying sudachipy\plugin\oov\simple_oov_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\oov
copying sudachipy\plugin\oov\utils.py -> build\lib.win-amd64-3.9\sudachipy\plugin\oov
copying sudachipy\plugin\oov\__init__.py -> build\lib.win-amd64-3.9\sudachipy\plugin\oov
creating build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\join_katakana_oov_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\join_numeric_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\numericparser.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\path_rewrite_plugin.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\utils.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
copying sudachipy\plugin\path_rewrite\__init__.py -> build\lib.win-amd64-3.9\sudachipy\plugin\path_rewrite
creating build\lib.win-amd64-3.9\sudachipy\resources
copying sudachipy\resources\sudachi.json -> build\lib.win-amd64-3.9\sudachipy\resources
copying sudachipy\resources\char.def -> build\lib.win-amd64-3.9\sudachipy\resources
copying sudachipy\resources\rewrite.def -> build\lib.win-amd64-3.9\sudachipy\resources
copying sudachipy\resources\unk.def -> build\lib.win-amd64-3.9\sudachipy\resources
running build_ext
cythoning sudachipy/latticenode.pyx to sudachipy\latticenode.c
C:\Users\m\AppData\Local\Programs\Python\Python39\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\m\AppData\Local\Temp\pip-install-oal03kk3\sudachipy_227636af8754449b96ce8e87e2caa18e\sudachipy\latticenode.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
cythoning sudachipy/lattice.pyx to sudachipy\lattice.c
C:\Users\m\AppData\Local\Programs\Python\Python39\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\m\AppData\Local\Temp\pip-install-oal03kk3\sudachipy_227636af8754449b96ce8e87e2caa18e\sudachipy\lattice.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
cythoning sudachipy/tokenizer.pyx to sudachipy\tokenizer.c
C:\Users\m\AppData\Local\Programs\Python\Python39\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\m\AppData\Local\Temp\pip-install-oal03kk3\sudachipy_227636af8754449b96ce8e87e2caa18e\sudachipy\tokenizer.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'sudachipy.latticenode' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for sudachipy
Running setup.py clean for sudachipy
Building wheel for dartsclone (setup.py) ...
The redistributable c++ that you are seeing are neccessary installations to run applications. What you need are build tools, i.e. a compiler, which - as the error message states - you can get from https://visualstudio.microsoft.com/visual-cpp-build-tools/
Alternatively, if you don't want to go through the trouble of compiling c code on your windows machine, you can look for compatible whl packages. In you case there is a pre-release of sudachiPy which has whl files for python 3.9, so you can do
pip install SudachiPy --pre
which should not need a compiler present to be installed

Can't install `eth-tester` Python Package

I am trying to install [eth-tester][1] Python Package so that I can use it to load test ethereum in my account by using its get_balance() function.
First when i installed this package using;
pip install eth_tester
It asked me to upgrade the pip version. I upgraded the pip. Now my pip version is 19.2.3. Now its giving me following error on installing the eth-tester package;
ERROR: Command errored out with exit status 1:
command: 'c:\users\mk141\appdata\local\programs\python\python36-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mk141\\AppData\\Local\\Temp\\pip-install-mcki_ya9\\cytoolz\\setup.py'"'"'; __file__='"'"'C:\\Users\\mk141\\AppData\\Local\\Temp\\pip-install-mcki_ya9\\cytoolz\\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\mk141\AppData\Local\Temp\pip-record-viyzcfqs\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\mk141\AppData\Local\Temp\pip-install-mcki_ya9\cytoolz\
Complete output (49 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\cytoolz
copying cytoolz\compatibility.py -> build\lib.win32-3.6\cytoolz
copying cytoolz\utils_test.py -> build\lib.win32-3.6\cytoolz
copying cytoolz\_signatures.py -> build\lib.win32-3.6\cytoolz
copying cytoolz\_version.py -> build\lib.win32-3.6\cytoolz
copying cytoolz\__init__.py -> build\lib.win32-3.6\cytoolz
creating build\lib.win32-3.6\cytoolz\curried
copying cytoolz\curried\exceptions.py -> build\lib.win32-3.6\cytoolz\curried
copying cytoolz\curried\operator.py -> build\lib.win32-3.6\cytoolz\curried
copying cytoolz\curried\__init__.py -> build\lib.win32-3.6\cytoolz\curried
copying cytoolz\dicttoolz.pyx -> build\lib.win32-3.6\cytoolz
copying cytoolz\functoolz.pyx -> build\lib.win32-3.6\cytoolz
copying cytoolz\itertoolz.pyx -> build\lib.win32-3.6\cytoolz
copying cytoolz\recipes.pyx -> build\lib.win32-3.6\cytoolz
copying cytoolz\utils.pyx -> build\lib.win32-3.6\cytoolz
copying cytoolz\cpython.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\dicttoolz.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\functoolz.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\itertoolz.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\recipes.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\utils.pxd -> build\lib.win32-3.6\cytoolz
copying cytoolz\__init__.pxd -> build\lib.win32-3.6\cytoolz
creating build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\dev_skip_test.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_compatibility.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_curried.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_dicttoolz.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_docstrings.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_doctests.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_functoolz.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_inspect_args.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_itertoolz.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_none_safe.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_recipes.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_serialization.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_signatures.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_tlz.py -> build\lib.win32-3.6\cytoolz\tests
copying cytoolz\tests\test_utils.py -> build\lib.win32-3.6\cytoolz\tests
running build_ext
building 'cytoolz.dicttoolz' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mk141\appdata\local\programs\python\python36-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mk141\\AppData\\Local\\Temp\\pip-install-mcki_ya9\\cytoolz\\setup.py'"'"'; __file__='"'"'C:\\Users\\mk141\\AppData\\Local\\Temp\\pip-install-mcki_ya9\\cytoolz\\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\mk141\AppData\Local\Temp\pip-record-viyzcfqs\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
I can easily install the other packages of python but i can't install this one. Is there any way to resolve this problem or is there any problem in this package? If there is any other way to load test ethereum in my account then please let me know.

lxml is not getting installed on Amazon Linux 64 bit with Python 3.4.3.

NOTE: Duplicate posts didn't solve my problem.
I am using Python 3.4 for a Flask based app on Amazon EC2 instance (64bit Amazon Linux 2016.09 v2.2.0 running Python 3.4).
When deploying lxml is not getting installed. The error log is:
copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/sax.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/builder.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.4/lxml
creating build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.4/lxml/includes
creating build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.4/lxml/html
creating build/lib.linux-x86_64-3.4/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.4/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.4/lxml/includes
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/rng
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/src
creating build/temp.linux-x86_64-3.4/src/lxml
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -w
{standard input}: Assembler messages:
{standard input}:364136: Error: number of operands mismatch for `movq'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Compile failed: command 'gcc' failed with exit status 4
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitxbk9_n9a.c -o tmp/xmlXPathInitxbk9_n9a.o
cc tmp/xmlXPathInitxbk9_n9a.o -L/usr/lib64 -lxml2 -o a.out
error: command 'gcc' failed with exit status 4
I have already done
yum install libxslt-devel libxml2-devel
yum install gcc
Installation of python34-lxml or python3-lxml shows that these packages are not available.
I also tried installing python-lxml using yum but show that No package python-lxml available
To install lxml, I connected to EC2 instance using SSH and did sudo pip install lxml but it was also getting terminated.
I finally installed lxml using sudo CFLAGS="-O0" pip install lxml by connecting to EC2 instance using SSH.
I have already installed dependencies libxslt-devel libxml2-devel gcc
Still the problem persists and ElasticBeanstalk is showing the above log.
I have seen the following links for same or related problems:
Installing lxml module in python
lxml not getting installed on AWS Elasticbeanstalk instance
Install lxml on Centos 7 - error: command 'gcc' failed with exit status 4
Invalid requirements.txt on deploying to AWS. Pip couldn't install lxml
Invalid requirements.txt on deploying to AWS. Pip couldn't install lxml
[centos]Fail to pip install lxml, gcc failure
Pip install lxml centOSFailed building wheel for lxml
The problem was due to RAM size.
I increased my RAM and then tried installing it, and it worked.
If you're facing this problem then install more RAN for your cloud application.
lxml takes a good amount of RAM while getting installed.

Failing to install python-igraph

I'm trying to install python-igraph. After I run sudo pip install python-igraph I got the following log:
Downloading/unpacking python-igraph
Downloading python-igraph-0.7.1-1.tar.gz (375kB): 375kB downloaded
Running setup.py egg_info for package python-igraph
Installing collected packages: python-igraph
Running setup.py install for python-igraph
Cannot find the C core of igraph on this system using pkg-config.
We will now try to download and compile the C core from scratch.
Version number of the C core: 0.7.1-1
Version 0.7.1-1 of the C core of igraph is not found among the nightly builds.
Use the --c-core-version switch to try a different version.
Could not download and compile the C core of igraph.
WARNING: we were not able to detect where igraph is installed on
your machine (if it is installed at all). We will use the fallback
library and include pathss hardcoded in setup.py and hope that the
C core of igraph is installed there.
If the compilation fails and you are sure that igraph is installed
on your machine, adjust the following two variables in setup.py
accordingly and try again:
- LIBIGRAPH_FALLBACK_INCLUDE_DIRS
- LIBIGRAPH_FALLBACK_LIBRARY_DIRS
Build type: dynamic extension
Include path: /usr/include/igraph /usr/local/include/igraph
Library path:
Linked dynamic libraries: igraph
Linked static libraries:
Extra compiler options:
Extra linker options:
building 'igraph._igraph' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/igraph -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/igraphmodule.c -o build/temp.linux-x86_64-2.7/src/igraphmodule.o
src/igraphmodule.c:25:20: fatal error: igraph.h: No such file or directory
#include <igraph.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/python-igraph/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cTa4Ba-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/igraph
copying igraph/formula.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/__init__.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/configuration.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/summary.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/layout.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/cut.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/datatypes.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/utils.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/clustering.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/statistics.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/matching.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/compat.py -> build/lib.linux-x86_64-2.7/igraph
creating build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/operators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/isomorphism.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/__init__.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/colortests.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/conversion.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/homepage.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/attributes.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/vertexseq.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/structural.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/separators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/atlas.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/layouts.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/rng.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/games.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/utils.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/iterators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/edgeseq.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/indexing.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/spectral.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/cliques.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/flow.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/basic.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/generators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/matching.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/foreign.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/bipartite.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/decomposition.py -> build/lib.linux-x86_64-2.7/igraph/test
creating build/lib.linux-x86_64-2.7/igraph/app
copying igraph/app/__init__.py -> build/lib.linux-x86_64-2.7/igraph/app
copying igraph/app/shell.py -> build/lib.linux-x86_64-2.7/igraph/app
creating build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/__init__.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/edge.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/shapes.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/coord.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/metamagic.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/utils.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/text.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/graph.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/colors.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/vertex.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/baseclasses.py -> build/lib.linux-x86_64-2.7/igraph/drawing
creating build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/__init__.py -> build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/nexus.py -> build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/gephi.py -> build/lib.linux-x86_64-2.7/igraph/remote
creating build/lib.linux-x86_64-2.7/igraph/vendor
copying igraph/vendor/__init__.py -> build/lib.linux-x86_64-2.7/igraph/vendor
copying igraph/vendor/texttable.py -> build/lib.linux-x86_64-2.7/igraph/vendor
running build_ext
Cannot find the C core of igraph on this system using pkg-config.
We will now try to download and compile the C core from scratch.
Version number of the C core: 0.7.1-1
Version 0.7.1-1 of the C core of igraph is not found among the nightly builds.
Use the --c-core-version switch to try a different version.
Could not download and compile the C core of igraph.
WARNING: we were not able to detect where igraph is installed on
your machine (if it is installed at all). We will use the fallback
library and include pathss hardcoded in setup.py and hope that the
C core of igraph is installed there.
If the compilation fails and you are sure that igraph is installed
on your machine, adjust the following two variables in setup.py
accordingly and try again:
- LIBIGRAPH_FALLBACK_INCLUDE_DIRS
- LIBIGRAPH_FALLBACK_LIBRARY_DIRS
Build type: dynamic extension
Include path: /usr/include/igraph /usr/local/include/igraph
Library path:
Linked dynamic libraries: igraph
Linked static libraries:
Extra compiler options:
Extra linker options:
building 'igraph._igraph' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/igraph -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/igraphmodule.c -o build/temp.linux-x86_64-2.7/src/igraphmodule.o
src/igraphmodule.c:25:20: fatal error: igraph.h: No such file or directory
#include <igraph.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/python-igraph/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cTa4Ba-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/python-igraph
Storing complete log in /home/sergey/.pip/pip.log
And I have similar situation if I do it with sudo python setup.py install.
Apparently the problem is with C core.
How can I install the correct version of it so that I can install igraph?
I use Linux Mint 16 64-bit, python 2.7.
You need igraph libraries before compiling python-igraph.
Try sudo apt-get install -y libigraph0-dev and try install python-igraph again.
Using Ubuntu 16 and Python3.
pip3 install python-igraph
results in error building whell. However,
sudo apt-get install python3-igraph
worked just fine.
For windows users
Download the unofficial python-igraph (according to igraph official installation instruction), please select the appropriate .whl file based on environment (python version, 64bit vs. 32bit).
Open command console and cd into .whl's folder
Execute the following command:
pip install python_igraph-0.7.1.post.xxx.whl
In ubuntu 16.04:
For python 2:
apt-get install build-essential python-dev libxml2 libxml2-dev zlib1g-dev
For python 3:
apt-get install build-essential python3-dev libxml2 libxml2-dev zlib1g-dev
Solved my problem.
For Ubuntu Users :
Add the repository of igraph to apt:
sudo add-apt-repository ppa:igraph/ppa
Then update and install the python-igraph package:
sudo apt-get update
sudo apt-get install python-igraph

Resources