# git clone https://github.com/amitkumar50/freeipa; cd freeipa; # ./autogen.sh # make # make fasttest (cd ./ipaplatform && make override.py) make[1]: Entering directory '/root/test-del/freeipa/ipaplatform' make[1]: 'override.py' is up to date. make[1]: Leaving directory '/root/test-del/freeipa/ipaplatform' (cd ./ipapython && make version.py) make[1]: Entering directory '/root/test-del/freeipa/ipapython' make[1]: 'version.py' is up to date. make[1]: Leaving directory '/root/test-del/freeipa/ipapython' PYTHONPATH=/root/test-del/freeipa /usr/bin/python3 ipatests/ipa-run-tests \ --skip-ipaapi \ --ignore /root/test-del/freeipa/ipatests/test_integration \ --ignore /root/test-del/freeipa/ipatests/test_xmlrpc Traceback (most recent call last): File "ipatests/ipa-run-tests", line 35, in <module> import ipalib File "/root/test-del/freeipa/ipalib/init.py", line 919, in <module> from ipalib import plugable File "/root/test-del/freeipa/ipalib/plugable.py", line 41, in <module> from ipalib import errors File "/root/test-del/freeipa/ipalib/errors.py", line 109, in <module> from ipalib.text import ngettext as ungettext File "/root/test-del/freeipa/ipalib/text.py", line 119, in <module> from ipalib.request import context File "/root/test-del/freeipa/ipalib/request.py", line 28, in <module> from ipalib.base import ReadOnly, lock File "/root/test-del/freeipa/ipalib/base.py", line 28, in <module> from ipalib.constants import NAME_REGEX, NAME_ERROR File "/root/test-del/freeipa/ipalib/constants.py", line 27, in <module> from ipapython.dn import DN File "/root/test-del/freeipa/ipapython/dn.py", line 426, in <module> from ldap.dn import str2dn, dn2str ModuleNotFoundError: No module named 'ldap' make: *** [Makefile:1166: fasttest] Error 1
# git clone https://github.com/amitkumar50/freeipa; cd freeipa;
# ./autogen.sh
# make
# make fasttest
Apologies if i am doing in wrong way. I consulted contribute page but cannot find much info about missing module.
Hi @amitkumar25nov ,
the wiki Testing#Fast_test has been recently updated with the instructions:
sudo dnf builddep -b -D "with_python3 1" -D "with_wheels 1" -D "with_lint 1" --spec freeipa.spec.in --allowerasing ./autogen.sh make fastcheck
Please let me know if it solves your issue.
sudo dnf builddep -b -D "with_python3 1" -D "with_wheels 1" -D "with_lint 1" --spec freeipa.spec.in --allowerasing //Done ./autogen.sh //Done # make fastcheck make[1]: Entering directory '/root/freeipa' (cd ./ipaplatform && make override.py) make[2]: Entering directory '/root/freeipa/ipaplatform' make[2]: 'override.py' is up to date. make[2]: Leaving directory '/root/freeipa/ipaplatform' (cd ./ipapython && make version.py) make[2]: Entering directory '/root/freeipa/ipapython' make[2]: 'version.py' is up to date. make[2]: Leaving directory '/root/freeipa/ipapython' Fast linting with /usr/bin/python2 from branch 'master' No modified Python files found PYTHONPATH=/root/freeipa /usr/bin/python3 ipatests/ipa-run-tests \ --skip-ipaapi \ --ignore /root/freeipa/ipatests/test_integration \ --ignore /root/freeipa/ipatests/test_xmlrpc ==================================================== test session starts ===================================================== platform linux -- Python 3.6.4, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 rootdir: /root/freeipa, inifile: plugins: sourceorder-0.5, multihost-2.0 collected 581 items / 6 errors / 67 skipped =========================================================== ERRORS =========================================================== _____________________________________ ERROR collecting ipatests/test_cmdline/test_cli.py _____________________________________ ipatests/test_cmdline/test_cli.py:18: in <module> TEST_ZONE = u'zoneadd.%(domain)s' % api.env ipalib/config.py:280: in __getitem__ return self.__d[key] E KeyError: 'domain' _____________________________________ ERROR collecting ipatests/test_cmdline/test_cli.py _____________________________________ ipatests/test_cmdline/test_cli.py:18: in <module> TEST_ZONE = u'zoneadd.%(domain)s' % api.env ipalib/config.py:280: in __getitem__ return self.__d[key] E KeyError: 'domain' ____________________________________ ERROR collecting ipatests/test_cmdline/test_help.py _____________________________________ ipatests/test_cmdline/test_help.py:29: in <module> from ipaserver.plugins.user import user_add ipaserver/plugins/user.py:31: in <module> from .baseuser import ( ipaserver/plugins/baseuser.py:77: in <module> api.env.basedn) E AttributeError: 'Env' object has no attribute 'basedn' ____________________________________ ERROR collecting ipatests/test_cmdline/test_help.py _____________________________________ ipatests/test_cmdline/test_help.py:29: in <module> from ipaserver.plugins.user import user_add ipaserver/plugins/user.py:31: in <module> from .baseuser import ( ipaserver/plugins/baseuser.py:77: in <module> api.env.basedn) E AttributeError: 'Env' object has no attribute 'basedn' ________________________________ ERROR collecting ipatests/test_ipaserver/test_serverroles.py ________________________________ ipatests/test_ipaserver/test_serverroles.py:57: in <module> api.env.basedn E AttributeError: 'Env' object has no attribute 'basedn' ________________________________ ERROR collecting ipatests/test_ipaserver/test_serverroles.py ________________________________ ipatests/test_ipaserver/test_serverroles.py:57: in <module> api.env.basedn E AttributeError: 'Env' object has no attribute 'basedn' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================================ 67 skipped, 6 error in 4.92 seconds ============================================= make[1]: *** [Makefile:1166: fasttest] Error 2 make[1]: Leaving directory '/root/freeipa' make: *** [Makefile:1158: fastcheck] Error 2
Metadata Update from @cheimes: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1692 - Issue assigned to cheimes - Issue set to the milestone: FreeIPA 4.6.4
master:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.