aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sweeney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AURORA-312) python tests fail with py26/OEL6/zope-interface-3.5.2
Date Fri, 04 Apr 2014 00:00:19 GMT

    [ https://issues.apache.org/jira/browse/AURORA-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959448#comment-13959448
] 

Kevin Sweeney commented on AURORA-312:
--------------------------------------

Potential pants bug - pants should be isolating the build from system site-packages

> python tests fail with py26/OEL6/zope-interface-3.5.2
> -----------------------------------------------------
>
>                 Key: AURORA-312
>                 URL: https://issues.apache.org/jira/browse/AURORA-312
>             Project: Aurora
>          Issue Type: Task
>          Components: Build, Testing
>    Affects Versions: 0.5.0
>         Environment: python 2.6
> Oracle Linux 6.3 and 6.5
>            Reporter: Bhuvan Arumugam
>            Priority: Minor
>              Labels: documentation, python
>         Attachments: pants-error-with-zope-interface3.5.2.log
>
>
> Aurora tests for python fail on Vanilla Oracle Linux 6.3. Refer to attached verbose output
for more details.
> {code}
> ./pants src/test/python:all -vxs
> .
> .
> platform linux2 -- Python 2.6.6 -- py-1.4.20 -- pytest-2.5.2 -- /usr/bin/python2.6
> collecting ... collected 0 items / 1 errors
> ==================================== ERRORS ====================================
>  ERROR collecting src/test/python/apache/aurora/admin/test_host_maintenance.py _
> src/test/python/apache/aurora/admin/test_host_maintenance.py:19: in <module>
> >   from apache.aurora.admin.host_maintenance import HostMaintenance
> /tmp/tmpBqOfNg/apache/aurora/admin/host_maintenance.py:20: in <module>
> >   from apache.aurora.client.api import AuroraClientAPI
> /tmp/tmpBqOfNg/apache/aurora/client/api/__init__.py:32: in <module>
> >   from .scheduler_client import SchedulerProxy
> /tmp/tmpBqOfNg/apache/aurora/client/api/scheduler_client.py:34: in <module>
> >   from twitter.common.zookeeper.kazoo_client import TwitterKazooClient
> /tmp/tmpBqOfNg/.deps/twitter.common.zookeeper-0.1.1-py2.6.egg/twitter/common/zookeeper/kazoo_client.py:10:
in <module>
> >   from kazoo.client import KazooClient
> /tmp/tmpBqOfNg/.deps/kazoo-1.3.1-py2.6.egg/kazoo/client.py:21: in <module>
> >   from kazoo.handlers.threading import SequentialThreadingHandler
> /tmp/tmpBqOfNg/.deps/kazoo-1.3.1-py2.6.egg/kazoo/handlers/threading.py:45: in <module>
> >   class AsyncResult(object):
> /usr/lib64/python2.6/site-packages/zope/interface/declarations.py:495: in __call__
> >           raise TypeError("Can't use implementer with classes.  Use one of "
> E           TypeError: Can't use implementer with classes.  Use one of the class-declaration
functions instead.
> {code}
> pants don't seem to like {{py26}} and {{python-zope-interface-3.5.2}} combination. It
likes {{py27}} and {{python-zope-interface-3.5.2}} combination though. IOW, the tests don't
fail when using {{py27}} with {{python-zope-interface-3.5.2}}. 
> The fix is to upgrade zope interface to v4. To use Aurora with {{py26}}, one should upgrade
python-zope-interface.
> {code}
> sudo yum uninstall python-zope-interface
> sudo yum install python-zope-interface4
> {code}
> Opening this ticket to document it for users running Aurora on OEL6.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message