Bug 1208782 - AttributeError: 'module' object has no attribute 'Bytes'
Summary: AttributeError: 'module' object has no attribute 'Bytes'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pypolicyd-spf
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Bojan Smojver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1208811
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-03 07:45 UTC by George Notaras
Modified: 2022-11-04 20:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-04 20:32:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1185471 0 unspecified CLOSED /usr/lib/python2.7/site-packages/spf.py crashes on IPv6 addresses 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1206380 0 unspecified CLOSED Traceback when originating address is IPv6 2021-02-22 00:41:40 UTC

Description George Notaras 2015-04-03 07:45:55 UTC
Description of problem:

Exception when using

Apr  3 07:17:57 examplesrv policyd-spf[11516]: Traceback (most recent call last):
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/libexec/postfix/policyd-spf", line 680, in <module>
Apr  3 07:17:57 examplesrv policyd-spf[11516]: instance_dict, configData, peruser)
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/libexec/postfix/policyd-spf", line 517, in _spfcheck
Apr  3 07:17:57 examplesrv policyd-spf[11516]: res = spf.check2(ip, sender, helo, querytime=configData.get('Lookup_Time'))
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 297, in check2
Apr  3 07:17:57 examplesrv policyd-spf[11516]: receiver=receiver,timeout=timeout,verbose=verbose,querytime=querytime).check()
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 547, in check
Apr  3 07:17:57 examplesrv policyd-spf[11516]: rc = self.check1(spf, self.d, 0)
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 586, in check1
Apr  3 07:17:57 examplesrv policyd-spf[11516]: return self.check0(spf, recursion)
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 900, in check0
Apr  3 07:17:57 examplesrv policyd-spf[11516]: if self.cidrmatch(self.dns_mx(arg), cidrlength):
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 1194, in dns_mx
Apr  3 07:17:57 examplesrv policyd-spf[11516]: return [a for mx in mxnames[:max] for a in self.dns_a(mx[1],self.A)]
Apr  3 07:17:57 examplesrv policyd-spf[11516]: File "/usr/lib/python2.7/site-packages/spf.py", line 1206, in dns_a
Apr  3 07:17:57 examplesrv policyd-spf[11516]: return [ipaddress.Bytes(ip) for ip in r]
Apr  3 07:17:57 examplesrv policyd-spf[11516]: AttributeError: 'module' object has no attribute 'Bytes'


Version-Release number of selected component (if applicable):

pypolicyd-spf-1.3.1-2.el7.noarch

Additional info:
See bug: 1185471

Comment 1 George Notaras 2015-04-03 10:00:00 UTC
Issue is caused by python-ipaddr. (see #1208811).

Comment 2 Scott Kitterman 2018-01-08 22:19:13 UTC
It looks like this was fixed by updating python-ipaddr, I think it can be closed.


Note You need to log in before you can comment on or make changes to this bug.