You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Philip Zeyliger (JIRA)" <ji...@apache.org> on 2010/08/19 08:51:16 UTC
[jira] Created: (AVRO-618) Avro doesn't work with python 2.4
Avro doesn't work with python 2.4
---------------------------------
Key: AVRO-618
URL: https://issues.apache.org/jira/browse/AVRO-618
Project: Avro
Issue Type: Bug
Affects Versions: 1.4.0
Reporter: Philip Zeyliger
The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
{noformat}
File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
AttributeError: 'module' object has no attribute 'Struct'
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-618) Avro doesn't work with python 2.4
Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900531#action_12900531 ]
Philip Zeyliger commented on AVRO-618:
--------------------------------------
They're pretty close. I actually got rid of uuid completely, and just used the same mechanism that it uses to get a random 16 bytes, since there's no need to create the UUID object if all we're looking for is 16 random bytes.
I think the code has moved a bit, so mine might apply more cleanly. Haven't tried applying 588.
I've also updated the build.xml file to run arbitrary versions of python easily, so this is easier to reproduce.
> Avro doesn't work with python 2.4
> ---------------------------------
>
> Key: AVRO-618
> URL: https://issues.apache.org/jira/browse/AVRO-618
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Philip Zeyliger
> Attachments: AVRO-618.patch.txt
>
>
> The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
> The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
> {noformat}
> File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
> AttributeError: 'module' object has no attribute 'Struct'
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AVRO-618) Avro doesn't work with python 2.4
Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Zeyliger resolved AVRO-618.
----------------------------------
Assignee: Philip Zeyliger
Fix Version/s: 1.4.0
Resolution: Fixed
Committed as r987543.
> Avro doesn't work with python 2.4
> ---------------------------------
>
> Key: AVRO-618
> URL: https://issues.apache.org/jira/browse/AVRO-618
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Philip Zeyliger
> Assignee: Philip Zeyliger
> Fix For: 1.4.0
>
> Attachments: AVRO-618.patch.txt
>
>
> The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
> The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
> {noformat}
> File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
> AttributeError: 'module' object has no attribute 'Struct'
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-618) Avro doesn't work with python 2.4
Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900589#action_12900589 ]
Jeff Hammerbacher commented on AVRO-618:
----------------------------------------
If you prefer your implementation, go ahead and check it in.
> Avro doesn't work with python 2.4
> ---------------------------------
>
> Key: AVRO-618
> URL: https://issues.apache.org/jira/browse/AVRO-618
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Philip Zeyliger
> Attachments: AVRO-618.patch.txt
>
>
> The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
> The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
> {noformat}
> File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
> AttributeError: 'module' object has no attribute 'Struct'
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-618) Avro doesn't work with python 2.4
Posted by "Philip Zeyliger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Zeyliger updated AVRO-618:
---------------------------------
Attachment: AVRO-618.patch.txt
Patch which fixes python2.4 issues. I tested with python2.4 and python2.5 on OS X 10.5.
> Avro doesn't work with python 2.4
> ---------------------------------
>
> Key: AVRO-618
> URL: https://issues.apache.org/jira/browse/AVRO-618
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Philip Zeyliger
> Attachments: AVRO-618.patch.txt
>
>
> The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
> The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
> {noformat}
> File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
> AttributeError: 'module' object has no attribute 'Struct'
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-618) Avro doesn't work with python 2.4
Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900194#action_12900194 ]
Jeff Hammerbacher commented on AVRO-618:
----------------------------------------
I already did this at AVRO-588, just haven't had time to check it in. Did you do anything differently?
> Avro doesn't work with python 2.4
> ---------------------------------
>
> Key: AVRO-618
> URL: https://issues.apache.org/jira/browse/AVRO-618
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Philip Zeyliger
> Attachments: AVRO-618.patch.txt
>
>
> The avro tests fail on a system with python2.4. The issues can be easily worked around by avoiding python2.5 constructs and libraries.
> The missing "struct.Struct" is what started me down this path, but I also ended up tackling a few other similar issues and re-jiggering slightly the build.xml to allow for "ant test -Dpython=python2.4" to work.
> {noformat}
> File "build/bdist.macosx-10.5-i386/egg/avro/io.py", line 52, in ?
> AttributeError: 'module' object has no attribute 'Struct'
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.