Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twisted warning after ampoule installation #18

Closed
moshez opened this issue Dec 14, 2017 · 1 comment
Closed

Twisted warning after ampoule installation #18

moshez opened this issue Dec 14, 2017 · 1 comment

Comments

@moshez
Copy link
Contributor

moshez commented Dec 14, 2017

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
#!/usr/bin/python

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
ampoule
twisted

It also may be the same as this (see msg230):
http://bugs.python.org/setuptools/issue36

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 setup.py 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 setup.py.

@moshez
Copy link
Contributor Author

moshez commented Dec 18, 2017

Does not reproduce with

attrs==17.3.0
Automat==0.6.0
constantly==15.1.0
hyperlink==17.3.1
incremental==17.5.0
six==1.11.0
Twisted==17.9.0
zope.interface==4.4.3

and current HEAD (9232ffa)

@moshez moshez closed this as completed Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant