Bug 1261297

Summary: python-migrate not working with python-six
Product: [Fedora] Fedora EPEL Reporter: Brano Zarnovican <zarnovican>
Component: python-migrateAssignee: Pádraig Brady <p>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: apevec, apevec, p, pfrields, ricky
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brano Zarnovican 2015-09-09 07:09:14 UTC
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
centos-release-7-1.1503.el7.centos.2.8.x86_64
python-migrate-0.9.2-2.el7.noarch
python-six-1.3.0-4.el7.noarch


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-04 00:55:29 UTC
python-six 1.3 is base RHEL7 and unlikely to get updated, python-migrate should be retired from EPEL7