Bug #1487
crash sync-metadata for pfidp
Début:
01 juin 2012
Echéance:
% réalisé:
90%
Temps estimé:
Patch proposed:
Planning:
Description
dans pfidp :
$ python ./manage.py sync-metadata --source="federation" --sp --verbosity=1 metadata.xml Traceback (most recent call last): File "./manage.py", line 25, in <module> execute_manager(settings) File "/usr/local/univnautes/lib/python2.7/site-packages/django/core/management/__init__.py", line 459, in execute_manager utility.execute() File "/usr/local/univnautes/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/univnautes/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/local/univnautes/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/saml/management/commands/sync-metadata.py", line 9, in <module> from authentic2.saml.models import * File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/saml/models.py", line 18, in <module> from authentic2.idp.models import AttributePolicy File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/idp/models.py", line 10, in <module> from authentic2.attribute_aggregator.mapping import ATTRIBUTE_MAPPING, \ File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/attribute_aggregator/mapping.py", line 871, in <module> "display_name": _("Last name") + "(sn surname)", File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 86, in ugettext return _trans.ugettext(message) File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 278, in ugettext return do_translate(message, 'ugettext') File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 268, in do_translate _default = translation(settings.LANGUAGE_CODE) File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 183, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 160, in _fetch app = import_module(appname) File "/usr/local/univnautes/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/univnautes/pfidp/base/__init__.py", line 1, in <module> import signals File "/usr/local/univnautes/pfidp/base/signals.py", line 1, in <module> from authentic2.idp.signals import add_attributes_to_response File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/idp/signals.py", line 3, in <module> from authentic2.idp.attributes import provide_attributes_at_sso File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/idp/attributes.py", line 25, in <module> from authentic2.attribute_aggregator.models import AttributeSource File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/attribute_aggregator/models.py", line 34, in <module> from authentic2.attribute_aggregator.signals import any_attributes_call, \ File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/attribute_aggregator/signals.py", line 25, in <module> import user_profile File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/attribute_aggregator/user_profile.py", line 26, in <module> from authentic2.attribute_aggregator.core import get_profile_field_name_from_definition, \ File "/usr/local/univnautes/lib/python2.7/site-packages/authentic2/attribute_aggregator/core.py", line 30, in <module> from authentic2.attribute_aggregator.mapping import ATTRIBUTE_MAPPING ImportError: cannot import name ATTRIBUTE_MAPPING
Historique
Mis à jour par Thomas Noël il y a presque 12 ans
- Statut changé de Nouveau à Solution déployée
- % réalisé changé de 0 à 90
Appliqué par commit commit:b303dd068c09c5b0ab34e12112fc09d7aea49643.