python3-stevedore from vivid-proposed fixes this issue

root@stevedore:~# dpkg -l python-stevedore python3-stevedore
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-==============================================
ii  python-stevedore     1.3.0-0ubuntu1. all             manage dynamic plugins 
for Python applications
ii  python3-stevedore    1.3.0-0ubuntu1. all             manage dynamic plugins 
for Python applications
root@stevedore:~# python3 -c "import stevedore; print(stevedore.__file__)"
/usr/lib/python3/dist-packages/stevedore/__init__.py
root@stevedore:~# python -c "import stevedore; print(stevedore.__file__)"
/usr/lib/python2.7/dist-packages/stevedore/__init__.pyc
root@stevedore:~# python3 test.py 
a = A
b = B
long = word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word 
root@stevedore:~# python test.py 
a = A
b = B
long = word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word word word word word word word word word word word word word word word 
word word 
root@stevedore:~# cat test.py 
# stevedore/example/load_as_driver.py
from __future__ import print_function

import argparse

from stevedore import driver


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument(
        'format',
        nargs='?',
        default='simple',
        help='the output format',
    )
    parser.add_argument(
        '--width',
        default=60,
        type=int,
        help='maximum output width for text',
    )
    parsed_args = parser.parse_args()

    data = {
        'a': 'A',
        'b': 'B',
        'long': 'word ' * 80,
    }

    mgr = driver.DriverManager(
        namespace='stevedore.example.formatter',
        name=parsed_args.format,
        invoke_on_load=True,
        invoke_args=(parsed_args.width,),
    )
    for chunk in mgr.driver.format(data):
        print(chunk, end='')


** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1461753

Title:
  python3-stevedore doesn't have stevedore modules for python3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/stevedore/+bug/1461753/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to