Twisted warning after ampoule installation

Bug #710597 reported by Flavio Grossi on 2011-01-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Since i installed ampoule i receive a warning when importing twisted.

This is always reproducible by issuing:
$ python
>>> import twisted
>>> import pkg_resources
/usr/bin/ipython:1: UserWarning: Module twisted was already imported from /usr/lib64/python2.7/site-packages/twisted/__init__.pyc, but /usr/lib/python2.7/site-packages/ampoule-0.2.1-py2.7.egg is being added to sys.path

if i erase ampoule the warning disappears.

I think this is due to ampoule uncorrectly stating that he owns the twisted package:
$ cat /usr/lib/python2.7/site-packages/ampoule-0.2.1-py2.7.egg/EGG-INFO/top_level.txt

It also may be the same as this (see msg230):

I'm using the latest version from trunk, on fedora 14 with python-setuptools 0.6.14 (the Distribute fork) an python 2.7.
Ampoule is installed using "python install".

A solution (which if i'm not wrong is what they're doing with nevow) could be to declare the twisted ampoule plugin as package data in

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers