no module named 'debian'
lravelo opened this issue · 2 comments
I'm having an issue creating a repo in spacewalk for ubuntu. Here's my command:
./debianSync.py --username=admin --password='xxxxxxxx' --channel='trusty' --url='http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/'
Here's my output:
INFO: Repo URL: http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/
INFO: Repo root: http://us.archive.ubuntu.com/ubuntu/
INFO: Packages in repo: 8567
INFO: Packages synced: 0
INFO: Packages to sync: 8567
INFO: 1/8567: account-plugin-aim_3.8.6-0ubuntu9_amd64.deb
ERROR: rhnpush [ rhnpush -c trusty -u admin -p xxxxxxxx /tmp/account-plugin-aim_3.8.6-0ubuntu9_amd64.deb ] failed: ('', "\nERROR: unhandled exception occurred: (No module named 'debian').\n")
My channel is using AMD64 Debian architecture and SHA256 checksum type. Could use some help here.
@lravelo which SW version are you running ? as of 2.6, syncing APT repos is natively supported, i.e. you dont need that script.
unfortunately that error doesnt ring a bell.
try running rhnpush with -vv for more details
@philicious Yes I'm running 2.6. I tried running it via the spacewalk-repo-sync command and it seems to be working. Thanks for the heads up.