Bug 1261297 - python-migrate not working with python-six
Summary: python-migrate not working with python-six
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-migrate
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Pádraig Brady
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-09 07:09 UTC by Brano Zarnovican
Modified: 2017-07-04 00:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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