Bug 785023 - Conflicting file/module name with python-twitter
Summary: Conflicting file/module name with python-twitter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rest-client
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 797795 (view as bug list)
Depends On: 785024
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-26 23:31 UTC by Toshio Ernie Kuratomi
Modified: 2012-03-16 21:16 UTC (History)
3 users (show)

Fixed In Version: python-rest-client-0.3-2gitf898f0.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-16 21:16:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Toshio Ernie Kuratomi 2012-01-26 23:31:30 UTC
Description of problem:

Both this package and python-twitter have a file /usr/lib/python2.7/site-packages/twitter.py  This doesn't work for two reasons: filesystem conflicts and python module naming conflicts.  You need to get the two upstreams to decide which one will own the twitter module and have the other one rename their module.

Failing to get the upstreams to agree we'd need to rename one of these locally in Fedora.

Version-Release number of selected component (if applicable):

python-rest-client-0.3-1.fc16.noarch.rpm


Additional info:

Also filed on the python-twitter package.

Comment 1 Matthias Runge 2012-01-27 07:43:07 UTC
bug reported upstream

http://code.google.com/p/python-rest-client/issues/detail?id=16

Comment 2 Tom "spot" Callaway 2012-02-10 16:48:58 UTC
Based on the fact that python-twitter has a reasonably active upstream and python-rest-client hasn't had a release since 2008 or touched any of its bugs ever, I think the best resolution here would be to patch python-rest-client to use a different name for twitter.py, possibly rc-twitter.py, or to move all of the code into a module directory.

Comment 3 Toshio Ernie Kuratomi 2012-02-10 17:48:31 UTC
s/rc-twitter.py/rc_twitter.py/

(as "import rc-twitter" is invalid syntax)

But having a module directory seems even better as there's a lot of other bare modules in rest client that are being placed in the toplevel.

Comment 4 Matthias Runge 2012-02-13 09:44:56 UTC
I agree with you. and will patch this during the week. I tend to move everything into module directory. 

I'm also aware of probably breaking some dependent package. Mail to fedora-devel will follow, when it's ready.

Comment 5 Matthias Runge 2012-02-27 11:21:22 UTC
*** Bug 797795 has been marked as a duplicate of this bug. ***

Comment 6 Matthias Runge 2012-03-09 22:55:37 UTC
repoquery --whatrequires python-rest-client
[empty set]

update built in rawhide.

Comment 7 Fedora Update System 2012-03-09 23:04:15 UTC
python-rest-client-0.3-2gitf898f0.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-rest-client-0.3-2gitf898f0.fc17

Comment 8 Fedora Update System 2012-03-10 01:23:04 UTC
Package python-rest-client-0.3-2gitf898f0.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-rest-client-0.3-2gitf898f0.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3508/python-rest-client-0.3-2gitf898f0.fc17
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-03-16 21:16:26 UTC
python-rest-client-0.3-2gitf898f0.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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