You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by aconway <ac...@redhat.com> on 2015/07/10 16:01:14 UTC
New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
Anyone seeing errors like this? I think the ERROR: InterpreterNotFound
should be a warning, it seems to be testing both 2.7 and 3.4 so not
finding 2.6 and 3.3 doesn't seem like an ERROR.
The "missing attribute" is defined as a @staticmethod so I don't
understand that.
The 3 argument raise is definitely gone in python 3 so I don't
understand why its still there or what is the portable way to replace
it.
Cheers,
Alan.
1/1 Test #3: python-tox-test ..................***Failed Error regular
expression found in output. Regex=[ERROR:[ ]+py[0-9]*: commands failed]
28.49 sec
GLOB sdist-make: /home/aconway/proton/proton-c/bindings/python/setup.py
py26 create: /home/aconway/proton/proton-c/bindings/python/.tox/py26
ERROR: InterpreterNotFound: python2.6
py27 inst-nodeps: /home/aconway/proton/proton
-c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
py27 runtests: PYTHONHASHSEED='147840795'
py27 runtests: commands[0] | /home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test
Traceback (most recent call last):
File "/home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test", line 620, in
<module>
m = __import__(name, None, None, ["dummy"])
File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
line 20, in <module>
import proton_tests.codec
File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
21, in <module>
from . import common
File "/home/aconway/proton/tests/python/proton_tests/common.py", line
133, in <module>
if SASL.extended():
AttributeError: type object 'SASL' has no attribute 'extended'
ERROR: InvocationError: '/home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test'
py33 create: /home/aconway/proton/proton-c/bindings/python/.tox/py33
ERROR: InterpreterNotFound: python3.3
py34 inst-nodeps: /home/aconway/proton/proton
-c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
py34 runtests: PYTHONHASHSEED='147840795'
py34 runtests: commands[0] | /home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test
Traceback (most recent call last):
File "/home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test", line 620, in
<module>
m = __import__(name, None, None, ["dummy"])
File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
line 20, in <module>
import proton_tests.codec
File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
21, in <module>
from . import common
File "/home/aconway/proton/tests/python/proton_tests/common.py", line
26, in <module>
from proton import Connection, Transport, SASL, Endpoint, Delivery,
SSL
File "/usr/local/lib64/proton/bindings/python/proton/__init__.py",
line 3733
raise exc, val, tb
^
SyntaxError: invalid syntax
ERROR: InvocationError: '/home/aconway/proton/proton
-c/bindings/python/../../../tests/python/proton-test'
_______________________________________________ summary
_______________________________________________
ERROR: py26: InterpreterNotFound: python2.6
ERROR: py27: commands failed
ERROR: py33: InterpreterNotFound: python3.3
ERROR: py34: commands failed
Re: New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
Posted by aconway <ac...@redhat.com>.
On Fri, 2015-07-10 at 11:53 -0400, Ken Giusti wrote:
>
> ----- Original Message -----
> > From: "aconway" <ac...@redhat.com>
> > To: "proton" <pr...@qpid.apache.org>
> > Sent: Friday, July 10, 2015 10:01:14 AM
> > Subject: New python tox tests failing on fedora 22, Python
> > 2.7.10/3.4.2
> >
> > Anyone seeing errors like this? I think the ERROR:
> > InterpreterNotFound
> > should be a warning, it seems to be testing both 2.7 and 3.4 so not
> > finding 2.6 and 3.3 doesn't seem like an ERROR.
> >
The problem was having an install of proton. If I clear out the install
prefix everthing works fine, but this will fail:
make install && ctest -VV -R python-tox-test
So somewhere in the cmake or python setup scripts we are using either
the system PYTHONPATH/LD_LIBRARY_PATH or the CMAKE_INSTALL_PREFIX where
we should be using an explicit path to the .tox tree.
>
>
> InterpreterNotFound should be a warning. The ctest parser will
> ignore those, so they don't show up as an error. I'm not sure if tox
> gives us a way to suppress those (will check).
>
>
> > The "missing attribute" is defined as a @staticmethod so I don't
> > understand that.
> >
>
> Yeah me either - I'm not hitting that on latest trunk under
> python3.4.
>
>
> > The 3 argument raise is definitely gone in python 3 so I don't
> > understand why its still there or what is the portable way to
> > replace
> > it.
>
>
> There isn't a alternative in py3. I've written a "raise_" method
> that simulates the same behavior in both py2 and py3 - take a look in
> proton-c/bindings/python/proton/_compat.py
>
>
>
> >
> > Cheers,
> > Alan.
> >
> > 1/1 Test #3: python-tox-test ..................***Failed Error
> > regular
> > expression found in output. Regex=[ERROR:[ ]+py[0-9]*: commands
> > failed]
> > 28.49 sec
> > GLOB sdist-make: /home/aconway/proton/proton
> > -c/bindings/python/setup.py
> > py26 create: /home/aconway/proton/proton
> > -c/bindings/python/.tox/py26
> > ERROR: InterpreterNotFound: python2.6
> > py27 inst-nodeps: /home/aconway/proton/proton
> > -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> > py27 runtests: PYTHONHASHSEED='147840795'
> > py27 runtests: commands[0] | /home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test
> > Traceback (most recent call last):
> > File "/home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test", line 620, in
> > <module>
> > m = __import__(name, None, None, ["dummy"])
> > File
> > "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> > line 20, in <module>
> > import proton_tests.codec
> > File "/home/aconway/proton/tests/python/proton_tests/codec.py",
> > line
> > 21, in <module>
> > from . import common
> > File "/home/aconway/proton/tests/python/proton_tests/common.py",
> > line
> > 133, in <module>
> > if SASL.extended():
> > AttributeError: type object 'SASL' has no attribute 'extended'
> > ERROR: InvocationError: '/home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test'
> > py33 create: /home/aconway/proton/proton
> > -c/bindings/python/.tox/py33
> > ERROR: InterpreterNotFound: python3.3
> > py34 inst-nodeps: /home/aconway/proton/proton
> > -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> > py34 runtests: PYTHONHASHSEED='147840795'
> > py34 runtests: commands[0] | /home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test
> > Traceback (most recent call last):
> > File "/home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test", line 620, in
> > <module>
> > m = __import__(name, None, None, ["dummy"])
> > File
> > "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> > line 20, in <module>
> > import proton_tests.codec
> > File "/home/aconway/proton/tests/python/proton_tests/codec.py",
> > line
> > 21, in <module>
> > from . import common
> > File "/home/aconway/proton/tests/python/proton_tests/common.py",
> > line
> > 26, in <module>
> > from proton import Connection, Transport, SASL, Endpoint,
> > Delivery,
> > SSL
> > File
> > "/usr/local/lib64/proton/bindings/python/proton/__init__.py",
> > line 3733
> > raise exc, val, tb
> > ^
> > SyntaxError: invalid syntax
> > ERROR: InvocationError: '/home/aconway/proton/proton
> > -c/bindings/python/../../../tests/python/proton-test'
> > _______________________________________________ summary
> > _______________________________________________
> > ERROR: py26: InterpreterNotFound: python2.6
> > ERROR: py27: commands failed
> > ERROR: py33: InterpreterNotFound: python3.3
> > ERROR: py34: commands failed
> >
>
Re: New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
Posted by Ken Giusti <kg...@redhat.com>.
----- Original Message -----
> From: "aconway" <ac...@redhat.com>
> To: "proton" <pr...@qpid.apache.org>
> Sent: Friday, July 10, 2015 10:01:14 AM
> Subject: New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
>
> Anyone seeing errors like this? I think the ERROR: InterpreterNotFound
> should be a warning, it seems to be testing both 2.7 and 3.4 so not
> finding 2.6 and 3.3 doesn't seem like an ERROR.
>
InterpreterNotFound should be a warning. The ctest parser will ignore those, so they don't show up as an error. I'm not sure if tox gives us a way to suppress those (will check).
> The "missing attribute" is defined as a @staticmethod so I don't
> understand that.
>
Yeah me either - I'm not hitting that on latest trunk under python3.4.
> The 3 argument raise is definitely gone in python 3 so I don't
> understand why its still there or what is the portable way to replace
> it.
There isn't a alternative in py3. I've written a "raise_" method that simulates the same behavior in both py2 and py3 - take a look in proton-c/bindings/python/proton/_compat.py
>
> Cheers,
> Alan.
>
> 1/1 Test #3: python-tox-test ..................***Failed Error regular
> expression found in output. Regex=[ERROR:[ ]+py[0-9]*: commands failed]
> 28.49 sec
> GLOB sdist-make: /home/aconway/proton/proton-c/bindings/python/setup.py
> py26 create: /home/aconway/proton/proton-c/bindings/python/.tox/py26
> ERROR: InterpreterNotFound: python2.6
> py27 inst-nodeps: /home/aconway/proton/proton
> -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> py27 runtests: PYTHONHASHSEED='147840795'
> py27 runtests: commands[0] | /home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test
> Traceback (most recent call last):
> File "/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test", line 620, in
> <module>
> m = __import__(name, None, None, ["dummy"])
> File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> line 20, in <module>
> import proton_tests.codec
> File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
> 21, in <module>
> from . import common
> File "/home/aconway/proton/tests/python/proton_tests/common.py", line
> 133, in <module>
> if SASL.extended():
> AttributeError: type object 'SASL' has no attribute 'extended'
> ERROR: InvocationError: '/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test'
> py33 create: /home/aconway/proton/proton-c/bindings/python/.tox/py33
> ERROR: InterpreterNotFound: python3.3
> py34 inst-nodeps: /home/aconway/proton/proton
> -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> py34 runtests: PYTHONHASHSEED='147840795'
> py34 runtests: commands[0] | /home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test
> Traceback (most recent call last):
> File "/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test", line 620, in
> <module>
> m = __import__(name, None, None, ["dummy"])
> File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> line 20, in <module>
> import proton_tests.codec
> File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
> 21, in <module>
> from . import common
> File "/home/aconway/proton/tests/python/proton_tests/common.py", line
> 26, in <module>
> from proton import Connection, Transport, SASL, Endpoint, Delivery,
> SSL
> File "/usr/local/lib64/proton/bindings/python/proton/__init__.py",
> line 3733
> raise exc, val, tb
> ^
> SyntaxError: invalid syntax
> ERROR: InvocationError: '/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test'
> _______________________________________________ summary
> _______________________________________________
> ERROR: py26: InterpreterNotFound: python2.6
> ERROR: py27: commands failed
> ERROR: py33: InterpreterNotFound: python3.3
> ERROR: py34: commands failed
>
--
-K
Re: New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
Posted by aconway <ac...@redhat.com>.
On Fri, 2015-07-10 at 10:34 -0400, Ted Ross wrote:
> I had a similar error, not sure if it was exactly the same. I
> discovered that I was missing the python3-devel package. Once
> python3-devel was installed and I did a completely clean build, the
> problems went away.
>
I have that - are you fedora 21 or 22?
Re: New python tox tests failing on fedora 22, Python 2.7.10/3.4.2
Posted by Ted Ross <tr...@redhat.com>.
I had a similar error, not sure if it was exactly the same. I
discovered that I was missing the python3-devel package. Once
python3-devel was installed and I did a completely clean build, the
problems went away.
-Ted
On 07/10/2015 10:01 AM, aconway wrote:
> Anyone seeing errors like this? I think the ERROR: InterpreterNotFound
> should be a warning, it seems to be testing both 2.7 and 3.4 so not
> finding 2.6 and 3.3 doesn't seem like an ERROR.
>
> The "missing attribute" is defined as a @staticmethod so I don't
> understand that.
>
> The 3 argument raise is definitely gone in python 3 so I don't
> understand why its still there or what is the portable way to replace
> it.
>
> Cheers,
> Alan.
>
> 1/1 Test #3: python-tox-test ..................***Failed Error regular
> expression found in output. Regex=[ERROR:[ ]+py[0-9]*: commands failed]
> 28.49 sec
> GLOB sdist-make: /home/aconway/proton/proton-c/bindings/python/setup.py
> py26 create: /home/aconway/proton/proton-c/bindings/python/.tox/py26
> ERROR: InterpreterNotFound: python2.6
> py27 inst-nodeps: /home/aconway/proton/proton
> -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> py27 runtests: PYTHONHASHSEED='147840795'
> py27 runtests: commands[0] | /home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test
> Traceback (most recent call last):
> File "/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test", line 620, in
> <module>
> m = __import__(name, None, None, ["dummy"])
> File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> line 20, in <module>
> import proton_tests.codec
> File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
> 21, in <module>
> from . import common
> File "/home/aconway/proton/tests/python/proton_tests/common.py", line
> 133, in <module>
> if SASL.extended():
> AttributeError: type object 'SASL' has no attribute 'extended'
> ERROR: InvocationError: '/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test'
> py33 create: /home/aconway/proton/proton-c/bindings/python/.tox/py33
> ERROR: InterpreterNotFound: python3.3
> py34 inst-nodeps: /home/aconway/proton/proton
> -c/bindings/python/.tox/dist/python-qpid-proton-0.10.0.zip
> py34 runtests: PYTHONHASHSEED='147840795'
> py34 runtests: commands[0] | /home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test
> Traceback (most recent call last):
> File "/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test", line 620, in
> <module>
> m = __import__(name, None, None, ["dummy"])
> File "/home/aconway/proton/tests/python/proton_tests/__init__.py",
> line 20, in <module>
> import proton_tests.codec
> File "/home/aconway/proton/tests/python/proton_tests/codec.py", line
> 21, in <module>
> from . import common
> File "/home/aconway/proton/tests/python/proton_tests/common.py", line
> 26, in <module>
> from proton import Connection, Transport, SASL, Endpoint, Delivery,
> SSL
> File "/usr/local/lib64/proton/bindings/python/proton/__init__.py",
> line 3733
> raise exc, val, tb
> ^
> SyntaxError: invalid syntax
> ERROR: InvocationError: '/home/aconway/proton/proton
> -c/bindings/python/../../../tests/python/proton-test'
> _______________________________________________ summary
> _______________________________________________
> ERROR: py26: InterpreterNotFound: python2.6
> ERROR: py27: commands failed
> ERROR: py33: InterpreterNotFound: python3.3
> ERROR: py34: commands failed
>