Can't install `eth-tester` Python Package - python-3.x

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.

Related

Unable to install M2Crypto on Mac M1

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

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

Getting an error when i try to install a package (translate) by "pip3 install translate" in virtual environment

I am facing an error when i am trying to install a package in my python project virtual environment. But it's OK when i try to install the same package by same commend (pip3 install translate) in outside of the virtual environment.
pip 19.0.3
Python 3.8.2
Using cached https://files.pythonhosted.org/packages/85/b2/2ea329a07bbc0c7227eef84ca89ffd6895e7ec237d6c0b26574d56103e53/translate-3.5.0-py2.py3-none-any.whl
Requirement already satisfied: tox in e:\testproject\venv\lib\site-packages (from translate) (3.14.6)
Requirement already satisfied: pre-commit in e:\testproject\venv\lib\site-packages (from translate) (2.3.0)
Requirement already satisfied: click in e:\testproject\venv\lib\site-packages (from translate) (7.1.1)
Collecting lxml (from translate)
Using cached https://files.pythonhosted.org/packages/39/2b/0a66d5436f237aff76b91e68b4d8c041d145ad0a2cdeefe2c42f76ba2857/lxml-4.5.0.tar.gz
Requirement already satisfied: requests in e:\testproject\venv\lib\site-packages (from translate) (2.23.0)
Requirement already satisfied: toml>=0.9.4 in e:\testproject\venv\lib\site-packages (from tox->translate) (0.10.0)
Requirement already satisfied: filelock<4,>=3.0.0 in e:\testproject\venv\lib\site-packages (from tox->translate) (3.0.12)
Requirement already satisfied: colorama>=0.4.1; platform_system == "Windows" in e:\testproject\venv\lib\site-packages (from tox->translate) (0.4.3)
Requirement already satisfied: virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 in e:\testproject\venv\lib\site-packages (from tox->translate) (20.0.18)
Requirement already satisfied: packaging>=14 in e:\testproject\venv\lib\site-packages (from tox->translate) (20.3)
Requirement already satisfied: six<2,>=1.14.0 in e:\testproject\venv\lib\site-packages (from tox->translate) (1.14.0)
Requirement already satisfied: py<2,>=1.4.17 in e:\testproject\venv\lib\site-packages (from tox->translate) (1.8.1)
Requirement already satisfied: pluggy<1,>=0.12.0 in e:\testproject\venv\lib\site-packages (from tox->translate) (0.13.1)
Requirement already satisfied: cfgv>=2.0.0 in e:\testproject\venv\lib\site-packages (from pre-commit->translate) (3.1.0)
Requirement already satisfied: identify>=1.0.0 in e:\testproject\venv\lib\site-packages (from pre-commit->translate) (1.4.15)
Requirement already satisfied: pyyaml>=5.1 in e:\testproject\venv\lib\site-packages (from pre-commit->translate) (5.3.1)
Requirement already satisfied: nodeenv>=0.11.1 in e:\testproject\venv\lib\site-packages (from pre-commit->translate) (1.3.5)
Requirement already satisfied: chardet<4,>=3.0.2 in e:\testproject\venv\lib\site-packages (from requests->translate) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in e:\testproject\venv\lib\site-packages (from requests->translate) (2020.4.5.1)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in e:\testproject\venv\lib\site-packages (from requests->translate) (1.25.9)
Requirement already satisfied: idna<3,>=2.5 in e:\testproject\venv\lib\site-packages (from requests->translate) (2.9)
Requirement already satisfied: appdirs<2,>=1.4.3 in e:\testproject\venv\lib\site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox->translate) (1.4.3)
Requirement already satisfied: distlib<1,>=0.3.0 in e:\testproject\venv\lib\site-packages (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox->translate) (0.3.0)
Requirement already satisfied: pyparsing>=2.0.2 in e:\testproject\venv\lib\site-packages (from packaging>=14->tox->translate) (2.4.7)
Installing collected packages: lxml, translate
Running setup.py install for lxml ... error
Complete output from command E:\TestProject\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\rabby\AppData\Local\Temp\pip-install-muzepxbu\lxml\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\rabby\AppData\Local\Temp\pip-record-0023ymbj\install-record.txt --single-version-externally-managed --compile --install-headers E:\TestProject\venv\include\site\python3.8\lxml:
Building lxml version 4.5.0.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\lxml
copying src\lxml\builder.py -> build\lib.win32-3.8\lxml
copying src\lxml\cssselect.py -> build\lib.win32-3.8\lxml
copying src\lxml\doctestcompare.py -> build\lib.win32-3.8\lxml
copying src\lxml\ElementInclude.py -> build\lib.win32-3.8\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win32-3.8\lxml
copying src\lxml\sax.py -> build\lib.win32-3.8\lxml
copying src\lxml\usedoctest.py -> build\lib.win32-3.8\lxml
copying src\lxml\_elementpath.py -> build\lib.win32-3.8\lxml
copying src\lxml\__init__.py -> build\lib.win32-3.8\lxml
creating build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.win32-3.8\lxml\includes
creating build\lib.win32-3.8\lxml\html
copying src\lxml\html\builder.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\clean.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\defs.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\diff.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win32-3.8\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win32-3.8\lxml\html
creating build\lib.win32-3.8\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win32-3.8\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win32-3.8\lxml
copying src\lxml\etree_api.h -> build\lib.win32-3.8\lxml
copying src\lxml\lxml.etree.h -> build\lib.win32-3.8\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win32-3.8\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win32-3.8\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win32-3.8\lxml\includes
creating build\lib.win32-3.8\lxml\isoschematron\resources
creating build\lib.win32-3.8\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win32-3.8\lxml\isoschematron\resources\rng
creating build\lib.win32-3.8\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl
creating build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win32-3.8\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\src
creating build\temp.win32-3.8\Release\src\lxml
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes -IE:\TestProject\venv\include -IC:\Users\rabby\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\rabby\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tcsrc\lxml\etree.c /Fobuild\temp.win32-3.8\Release\src\lxml\etree.obj -w
cl : Command line warning D9025 : overriding '/W3' with '/w'
etree.c
c:\users\rabby\appdata\local\temp\pip-install-muzepxbu\lxml\src\lxml\includes/etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
creating Users
creating Users\rabby
creating Users\rabby\AppData
creating Users\rabby\AppData\Local
creating Users\rabby\AppData\Local\Temp
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /TcC:\Users\rabby\AppData\Local\Temp\xmlXPathInitt0q8ob77.c /FoUsers\rabby\AppData\Local\Temp\xmlXPathInitt0q8ob77.obj
xmlXPathInitt0q8ob77.c
C:\Users\rabby\AppData\Local\Temp\xmlXPathInitt0q8ob77.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
----------------------------------------
Command "E:\TestProject\venv\Scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\rabby\AppData\Local\Temp\pip-install-muzepxbu\lxml\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\rabby\AppData\Local\Temp\pip-record-0023ymbj\install-record.txt --single-version-externally-managed --compile --install-headers E:\TestProject\venv\include\site\python3.8\lxml" failed with error code 1 in C:\Users\rabby\AppData\Local\Temp\pip-install-muzepxbu\lxml\
I have solved this problem by installing lxml package in my virtual environment.
easy_install lxml

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