Bootstrap fails with ImportError: cannot import name idn_pune_to_unicode
This document (7018018) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager 2.1
Situation
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 25, in <module>
from rhn.connections import idn_pune_to_unicode
ImportError: cannot import name idn_pune_to_unicode
Resolution
https://www.suse.com/support/kb/doc?id=7013242
On the SUSE Manager Server:
Ensure that the channels associated with the client are fully sync'd and the associated bootstrap repo is rebuilt. You can accomplish this by running the following commands as root on the SUSE Manager replacing the channels with those appropriate to the client experiencing the issue (Note: mgr-sync list channels can be used to get a listing of channels and running mgr-create-bootstrap-repo can be run without switches to list the available bootstrap-repos):
spacewalk-repo-sync -Y -c <updates channel for distribution> spacewalk-repo-sync -Y -c <pool channel for distribution> spacewalk-repo-sync -Y -c <suse manager tools channel for distribution> mgr-create-bootstrap-repo -c <name of bootstrap repo channel> |
For example if the client was SLES 11 SP4, the following commands run as root on the SUSE Manager server would ensure that the channels were completely sync'd and that the bootstrap repo contained the latest rpms:
spacewalk-repo-sync -Y -c sles11-sp4-updates-x86_64 spacewalk-repo-sync -Y -c sles11-sp4-pool-x86_64 spacewalk-repo-sync -Y -c sles11-sp4-suse-manager-tools-x86_64 mgr-create-bootstrap-repo -c SLE-11-SP4-x86_64 |
The final step is to run the bootstrap on the client again.
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018018
- Creation Date: 02-Sep-2016
- Modified Date:03-Mar-2020
-
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com