On 03/27/2016 05:29 AM, Amir Eaman wrote: > The exact error is: in Fedora 23 > > root@localhost selinux-master]# *selinux-polgengui*** > > Failed to retrieve rpm info for selinux-policy > Traceback (most recent call last): > File "/bin/selinux-polgengui", line 360, in forward > self.generate_policy() > File "/bin/selinux-polgengui", line 506, in generate_policy > self.info <http://self.info>(my_policy.generate(outputdir)) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1382, in generate > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1228, in write_spec > fd.write(self.generate_spec()) > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", > line 1190, in generate_spec > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > TypeError: 'NoneType' object has no attribute '__getitem__' > > > On Sat, Mar 26, 2016 at 8:39 PM, Amir Eaman <amir.imen@xxxxxxxxx > <mailto:amir.imen@xxxxxxxxx>> wrote: > > Hi, > When I press apply button in the last step for policy generator on > Fedora 23 the following error is issued. What should I do? > > > > Failed to retrieve rpm info for selinux-policy > > Traceback (most recent call last): > > File "/usr/lib/python-exec/python2.7/sepolicy", line 643, in <module> > > args.func(args) > > File "/usr/lib/python-exec/python2.7/sepolicy", line 517, in generate > > print mypolicy.generate(args.path) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1370, in generate > > out += "%s # %s\n" % (self.write_spec(out_dir), _("Spec file")) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1219, in write_spec > > fd.write(self.generate_spec()) > > File "/usr/lib64/python2.7/site-packages/sepolicy/generate.py", line 1181, in generate_spec > > selinux_policyver = get_rpm_nvr_list("selinux-policy")[1] > > TypeError: 'NoneType' object has no attribute '__getitem__' Could you please open a new Fedora bug - https://bugzilla.redhat.com/. Thank you. > > > > -- > > > > > -- > > > > _______________________________________________ > Selinux mailing list > Selinux@xxxxxxxxxxxxx > To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. > To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx. > -- Miroslav Grepl Senior Software Engineer, SELinux Solutions Red Hat, Inc. _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.