[Spacewalk-list] rhnpush error - unexpected keyword argument 'file'

Andrew Prowant aprowant at vailsys.com
Fri Apr 20 19:33:16 UTC 2012



Miroslav Suchy wrote:
> Yes.
> Open:
>  /usr/bin/rhnpush
> and comment out (or remove) this lines at the end of file:
>    except Exception, e:
>         sys.stderr.write("\nERROR: unhandled exception occurred:
> (%s).\n" % e)
>         sys.exit(-1)
> 
> and run it again. This time you should get full traceback.
> 
> Mirek

Here it is. Thanks for looking at this.

Traceback (most recent call last):
  File "/usr/bin/rhnpush", line 22, in ?
    sys.exit(mod.main() or 0)
  File "/usr/share/rhn/rhnpush/rhnpush.py", line 153, in main
    ret = upload.packages()
  File "/usr/share/rhn/rhnpush/rhnpush.py", line 338, in packages
    (server_digest_hash, pkgs_info, digest_hash) =
self.check_package_exists()
  File "/usr/share/rhn/rhnpush/rhnpush.py", line 488, in
check_package_exists
    header, payload_stream = rhn_mpm.load(file=f)
TypeError: load() got an unexpected keyword argument 'file'




More information about the Spacewalk-list mailing list