#6441 use -I(isolated) in CLI shebang to avoid env tempering
Opened 7 years ago by pvoborni. Modified 5 years ago

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1387426

-I (isolated) requires python3

later update:

It's my own issue, I had a different version of six in ~/.local. It would be nice to change /usr/bin/ipa to have "#!/usr/bin/python -s" to avoid user's environment.



Description of problem:
$ ipa-client-install --help
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 43, in <module>
    from ipaclient import ipadiscovery
  File "/usr/lib/python2.7/site-packages/ipaclient/ipadiscovery.py", line 29,
in <module>
    from ipalib import errors
  File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 883, in
<module>
    from ipalib import plugable
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 41, in
<module>
    from ipalib import errors
  File "/usr/lib/python2.7/site-packages/ipalib/errors.py", line 109, in
<module>
    from ipalib.text import ngettext as ungettext
  File "/usr/lib/python2.7/site-packages/ipalib/text.py", line 195, in <module>
    @six.python_2_unicode_compatible
AttributeError: 'module' object has no attribute 'python_2_unicode_compatible'


Version-Release number of selected component (if applicable):
freeipa-client-4.3.2-2.fc24.x86_64

How reproducible:
deterministic
Works fine under sudo.

Metadata Update from @pvoborni:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.5

7 years ago

Metadata Update from @pvoborni:
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.6 (was: FreeIPA 4.5)

7 years ago

Metadata Update from @mbasti:
- Issue assigned to stlaz (was: mbasti)

6 years ago

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

6 years ago

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

6 years ago

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

6 years ago

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.6.3)

6 years ago

FreeIPA 4.6.3 has been released, moving to FreeIPA 4.6.4 milestone

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.6.4)

5 years ago

Login to comment on this ticket.

Metadata