Bug 1261297 - python-migrate not working with python-six
python-migrate not working with python-six
Status: NEW
Product: Fedora EPEL
Classification: Fedora
Component: python-migrate (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Pádraig Brady
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-09-09 03:09 EDT by Brano Zarnovican
Modified: 2017-07-03 20:55 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Brano Zarnovican 2015-09-09 03:09:14 EDT
Description of problem:
Python's 'migrate' module (from EPEL) does not even import on CentOS 7.x due to version compatibility issue with module 'six'.

Version-Release number of selected component (if applicable):
# rpm -q centos-release python-migrate python-six

How reproducible:
100% consistent

Steps to Reproduce:
1. yum install epel-release -y
2. yum install python-migrate -y
3. python -m migrate

Actual results:
  File "/usr/lib/python2.7/site-packages/migrate/__init__.py", line 11, in <module>
    from migrate.changeset import *
  File "/usr/lib/python2.7/site-packages/migrate/changeset/__init__.py", line 22, in <module>
    from migrate.changeset.schema import *
  File "/usr/lib/python2.7/site-packages/migrate/changeset/schema.py", line 202, in <module>
    class ColumnDelta(six.with_metaclass(MyMeta, DictMixin, sqlalchemy.schema.SchemaItem)):
TypeError: with_metaclass() takes at most 2 arguments (3 given)

Expected results:
Module to be imported without errors.

Additional info:
python-six 1.3 is quite ancient. The change in 'with_metaclass' was introduced in https://bitbucket.org/gutworth/six/commits/84d5c9e48c953889563c5ed6ca2a3c04deb60d05. Version 1.4 containing this change was release in Sep 2013.
Comment 1 Alan Pevec 2017-07-03 20:55:29 EDT
python-six 1.3 is base RHEL7 and unlikely to get updated, python-migrate should be retired from EPEL7

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