The dnf-plugin-spacewalk RPM requires both Python 2 and Python 3. Except in very special circumstances, there is no need for one package to drag in both Python stacks. Usually, this is a packaging error: for example, a stray "/usr/bin/python" shebang in a Python 3 package can introduce a Python 2 dependency. Please split your package, or remove the stray dependencies. There is a section on shebangs in the Python RPM Porting Guide [0] which covers this issue. It's ok to do this in Rawhide only, however, it would be greatly appreciated if you could push it to Fedora 24 as well. If anything is unclear, or if you need any kind of assistance, you can ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy to help investigating or fixing this issue! [0] http://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#are-shebangs-dragging-you-down-to-python-2
Note that rhnlib with python3 support just landed in rawhide.
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
Hi Michael, how is it going? Do you need some help?
Fixed in commit df2755ff5d0540103814a4f10e8ce648165b922a fixed rpmlint warnings commit 3f4022b51ae602dacc5be09be4624ffc4277c233 1342491 - remove dependency on python2 on F23+
Hi Michael, Does dnf-plugin-spacewalk-2.6.1-1 support Fedora 25? I am getting below stack trace when executing dnf with dnf-plugin-spacewalk-2.4.15-4 on a fedora 25 system (Linux daemon2 4.8.6-300.fc25.x86_64 #1 SMP Tue Nov 1 12:36:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux): Traceback (most recent call last): File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in user_main errcode = main(args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 93, in _main cli.configure(list(map(ucd, args))) File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 1048, in configure self.base._plugins.run_config() File "/usr/lib/python3.5/site-packages/dnf/plugin.py", line 82, in fn dnf.util.mapall(operator.methodcaller(method), self.plugins) File "/usr/lib/python3.5/site-packages/dnf/util.py", line 183, in mapall return list(map(fn, *seq)) File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 82, in config self.activate_channels(self.cli.demands.sack_activation) File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 137, in activate_channels for (channel_id, channel_dict) in enabled_channels.iteritems():
What command do you exactly run? What's the error message (the very last lines from traceback which are missing from you previous comment)?
(In reply to Michael Mráka from comment #6) > What command do you exactly run? What's the error message (the very last > lines from traceback which are missing from you previous comment)? After installing the dnf-plugin-spacewalk and others, any subsequent dnf commands failed. The last successful dnf execution was this in the kickstart file during a build: # dnf -y install dnf-plugin-spacewalk rhnlib rhn-check rhn-setup rhn-client-tools python3-rhnlib Then the subsequent dnf resulted the stack trace that followed: # dnf -y install yum-plugin-changelog yum-plugin-versionlock This system is receiving updates from Spacewalk server. Traceback (most recent call last): File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in user_main errcode = main(args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 93, in _main cli.configure(list(map(ucd, args))) File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 1048, in configure self.base._plugins.run_config() File "/usr/lib/python3.5/site-packages/dnf/plugin.py", line 82, in fn dnf.util.mapall(operator.methodcaller(method), self.plugins) File "/usr/lib/python3.5/site-packages/dnf/util.py", line 183, in mapall return list(map(fn, *seq)) File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 82, in config self.activate_channels(self.cli.demands.sack_activation) File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 137, in activate_channels for (channel_id, channel_dict) in enabled_channels.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' yum plugin changelog installed Here we have the last dnf installation information and the plugin config file used to communicate with RedHat Satellite 5.6: root@daemon2 tmp]# rpm -qa |grep dnf-plugin python3-dnf-plugins-core-0.1.21-4.fc25.noarch dnf-plugins-core-0.1.21-4.fc25.noarch dnf-plugin-spacewalk-2.4.15-4.fc25.noarch [root@daemon2 tmp]# rpm -qa |grep rhn- rhn-client-tools-2.5.16-1.fc25.noarch rhn-setup-2.5.16-1.fc25.noarch rhn-check-2.5.16-1.fc25.noarch [root@daemon2 tmp]# rpm -qa |grep python3-rhnlib python3-rhnlib-2.5.87-2.fc25.noarch [root@daemon2 tmp]# cat /etc/dnf/plugins/spacewalk.conf [main] enabled = 1 gpgcheck = 1 timeout = 120 # You can specify options per channel, e.g.: # #[rhel-i386-server-5] #enabled = 1 # #[some-unsigned-custom-channel] #gpgcheck = 0 [root@daemon2 tmp]# Thanks.
(In reply to lau18 from comment #7) > (In reply to Michael Mráka from comment #6) > > What command do you exactly run? What's the error message (the very last > > lines from traceback which are missing from you previous comment)? > > After installing the dnf-plugin-spacewalk and others, any subsequent dnf > commands failed. The last successful dnf execution was this in the > kickstart file during a build: > # dnf -y install dnf-plugin-spacewalk rhnlib rhn-check rhn-setup > rhn-client-tools python3-rhnlib > > Then the subsequent dnf resulted the stack trace that followed: > # dnf -y install yum-plugin-changelog yum-plugin-versionlock > > > This system is receiving updates from Spacewalk server. > Traceback (most recent call last): > File "/usr/bin/dnf", line 58, in <module> > main.user_main(sys.argv[1:], exit_code=True) > File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in > user_main > errcode = main(args) > File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main > return _main(base, args) > File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 93, in _main > cli.configure(list(map(ucd, args))) > File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 1048, in > configure > self.base._plugins.run_config() > File "/usr/lib/python3.5/site-packages/dnf/plugin.py", line 82, in fn > dnf.util.mapall(operator.methodcaller(method), self.plugins) > File "/usr/lib/python3.5/site-packages/dnf/util.py", line 183, in mapall > return list(map(fn, *seq)) > File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 82, > in config > self.activate_channels(self.cli.demands.sack_activation) > File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line > 137, in activate_channels > for (channel_id, channel_dict) in enabled_channels.iteritems(): > AttributeError: 'dict' object has no attribute 'iteritems' > > yum plugin changelog installed > > > Here we have the last dnf installation information and the plugin config > file used to communicate with RedHat Satellite 5.6: > > root@daemon2 tmp]# rpm -qa |grep dnf-plugin > python3-dnf-plugins-core-0.1.21-4.fc25.noarch > dnf-plugins-core-0.1.21-4.fc25.noarch > dnf-plugin-spacewalk-2.4.15-4.fc25.noarch > [root@daemon2 tmp]# rpm -qa |grep rhn- > rhn-client-tools-2.5.16-1.fc25.noarch > rhn-setup-2.5.16-1.fc25.noarch > rhn-check-2.5.16-1.fc25.noarch > [root@daemon2 tmp]# rpm -qa |grep python3-rhnlib > python3-rhnlib-2.5.87-2.fc25.noarch > > [root@daemon2 tmp]# cat /etc/dnf/plugins/spacewalk.conf > [main] > enabled = 1 > gpgcheck = 1 > timeout = 120 > > # You can specify options per channel, e.g.: > # > #[rhel-i386-server-5] > #enabled = 1 > # > #[some-unsigned-custom-channel] > #gpgcheck = 0 > [root@daemon2 tmp]# > > Thanks. Please disregard the output as it's just a debug string using echo command: yum plugin changelog installed
dnf-plugin-spacewalk-2.6.3-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-cfc209b1df
dnf-plugin-spacewalk-2.6.3-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-14fa17d107
Hello Michael, Does dnf-plugin-spacewalk-2.6.3-1.fc25 include the fix for errors in Comment 7? File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line 137, in activate_channels for (channel_id, channel_dict) in enabled_channels.iteritems(): AttributeError: 'dict' object has no attribute 'iteritems Thanks.
dnf-plugin-spacewalk-2.6.3-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-14fa17d107
> Hello Michael, > > Does dnf-plugin-spacewalk-2.6.3-1.fc25 include the fix for errors in Comment 7? > > File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line > 137, in activate_channels > for (channel_id, channel_dict) in enabled_channels.iteritems(): > AttributeError: 'dict' object has no attribute 'iteritems > > Thanks. Yes, it does. For Fedora 25 update has been already pushed to updates-testing. You can update by dnf update dnf-plugin-spacewalk --enablerepo=updates-testing --disableplugin=spacewalk
dnf-plugin-spacewalk-2.6.3-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-cfc209b1df
(In reply to Michael Mráka from comment #14) > > Hello Michael, > > > > Does dnf-plugin-spacewalk-2.6.3-1.fc25 include the fix for errors in Comment 7? > > > > File "/usr/lib/python3.5/site-packages/dnf-plugins/spacewalk.py", line > > 137, in activate_channels > > for (channel_id, channel_dict) in enabled_channels.iteritems(): > > AttributeError: 'dict' object has no attribute 'iteritems > > > > Thanks. > > Yes, it does. For Fedora 25 update has been already pushed to > updates-testing. > You can update by > > dnf update dnf-plugin-spacewalk --enablerepo=updates-testing > --disableplugin=spacewalk Thanks! The AttributeError has been fixed. When will the fix be propagated into the fc25 Update?
> When will the fix be propagated into the fc25 Update? See https://fedoraproject.org/wiki/Updates_Policy#All_other_updates for detailed description. Basically when 3 people will mark it as worksforme (+3 karma) or after a week.
dnf-plugin-spacewalk-2.6.3-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugin-spacewalk-2.6.3-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.