My Oracle Support Banner

Oracle Linux: redhat-upgrade-tool-cli Fails with Error "TypeError: __new__() takes exactly 7 arguments (5 given)" (Doc ID 2685020.1)

Last updated on JUNE 30, 2020

Applies to:

Linux OS - Version Oracle Linux 6.5 to Oracle Linux 6.10 [Release OL6U5 to OL6U10]
Linux x86-64

Symptoms

The redhat-upgrade-tool-cli fails with following error:

# /usr/bin/redhat-upgrade-tool-cli -d --iso=/isos/ol7.6.iso --debuglog=/tmp/upgrade.log --cleanup-post
Traceback (most recent call last):
File "/usr/bin/redhat-upgrade-tool-cli", line 574, in <module>
args = parse_args()
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/commandline.py", line 146, in parse_args
args, _leftover = p.parse_args()
File "/usr/lib64/python2.6/optparse.py", line 1394, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib64/python2.6/optparse.py", line 1434, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib64/python2.6/optparse.py", line 1509, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib64/python2.6/optparse.py", line 782, in process
value = self.convert_value(opt, value)
File "/usr/lib64/python2.6/optparse.py", line 774, in convert_value
return self.check_value(opt, value)
File "/usr/lib64/python2.6/optparse.py", line 769, in check_value
return checker(self, opt, value)
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/commandline.py", line 230, in isofile
if any(value.startswith(d.mnt) for d in media.removable()):
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/commandline.py", line 230, in <genexpr>
if any(value.startswith(d.mnt) for d in media.removable()):
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/media.py", line 76, in removable
if not any(m.mnt == d.mnt for d in mounts("/etc/fstab")):
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/media.py", line 76, in <genexpr>
if not any(m.mnt == d.mnt for d in mounts("/etc/fstab")):
File "/usr/lib/python2.6/site-packages/redhat_upgrade_tool/media.py", line 44, in mounts
yield FstabEntry(*line.split())
TypeError: __new__() takes exactly 7 arguments (5 given)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.