#7132 [4.6] PyPI packages are broken
Closed: fixed 6 years ago Opened 6 years ago by cheimes.

ipalib.util imports from ipalib.install but the install subpackages are not available in PyPI packages.

$ tox -e py27
py27 recreate: /home/heimes/redhat/freeipa/.tox/py27
py27 installdeps: ipaclient[csrgen], ipatests
py27 installed: asn1crypto==0.22.0,cffi==1.10.0,cryptography==2.0.3,decorator==4.1.2,dnspython==1.15.0,enum34==1.1.6,gssapi==1.2.0,idna==2.6,ipaclient==4.6.0,ipaddress==1.0.18,ipalib==4.6.0,ipapython==4.6.0,ipatests==4.6.0,Jinja2==2.9.6,MarkupSafe==1.0,netaddr==0.7.19,netifaces==0.10.6,nose==1.3.7,polib==1.0.8,py==1.4.34,pyasn1==0.3.3,pyasn1-modules==0.1.1,pycparser==2.18,pytest==3.2.1,pytest-multihost==1.1.1,python-ldap==2.4.41,qrcode==5.3,six==1.10.0
py27 runtests: PYTHONHASHSEED='2337018419'
py27 runtests: commands[0] | /home/heimes/redhat/freeipa/.tox/py27/bin/ipa --help
Traceback (most recent call last):
  File "/home/heimes/redhat/freeipa/.tox/py27/bin/ipa", line 7, in <module>
    from ipaclient.__main__ import main
  File "/home/heimes/redhat/freeipa/.tox/py27/lib/python2.7/site-packages/ipaclient/__main__.py", line 7, in <module>
    from ipalib import api, cli
  File "/home/heimes/redhat/freeipa/.tox/py27/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in <module>
    from ipalib import plugable
  File "/home/heimes/redhat/freeipa/.tox/py27/lib/python2.7/site-packages/ipalib/plugable.py", line 44, in <module>
    from ipalib.util import classproperty
  File "/home/heimes/redhat/freeipa/.tox/py27/lib/python2.7/site-packages/ipalib/util.py", line 59, in <module>
    from ipalib.install import sysrestore
ImportError: No module named install
ERROR: InvocationError: '/home/heimes/redhat/freeipa/.tox/py27/bin/ipa --help'
_________________________________________________________________________ summary __________________________________________________________________________
ERROR:   py27: commands failed

$ tox -e pylint2
...
************* Module ipalib.util
lib/python2.7/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib')
lib/python2.7/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install')
lib/python2.7/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths')

Metadata Update from @stlaz:
- Issue tagged with: regression

6 years ago

Metadata Update from @fbarreto:
- Issue assigned to fbarreto

6 years ago

Metadata Update from @fbarreto:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/1036

6 years ago

Metadata Update from @pvoborni:
- Issue priority set to: critical
- Issue set to the milestone: FreeIPA 4.6.1

6 years ago

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)

6 years ago

master:

  • be66ead Fixing tox and pylint errors

ipa-4-6:

  • 90aa4d6 Fixing tox and pylint errors

Metadata Update from @tdudlak:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

The ipa-4-6 branch is passing all tests:

$ tox
...
  py27: commands succeeded
  py35: commands succeeded
  py36: commands succeeded
  pylint2: commands succeeded
  pylint3: commands succeeded
  pypi: commands succeeded
  congratulations :)

Login to comment on this ticket.

Metadata