[tor-dev] Installing obfsproxy from wheezy-backports

irregulator at riseup.net irregulator at riseup.net
Mon May 12 16:44:31 UTC 2014

Hello there,

tl;dr obfsproxy from wheezy-backports raises exception about not finding
Twisted although Twisted-core is installed.

I want to install obfsproxy from wheezy-backports on a wheezy machine.

The package currently in wheezy-backports [1] depends on : python (>=
2.7), python (<< 2.8), python-pkg-resources, python-crypto,
python-twisted-core (>= 13.2)

After installation i get:

$ obfsproxy
Traceback (most recent call last):
  File "/usr/bin/obfsproxy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707,
in <module>
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Twisted

obfsproxy explicitly requires twisted:

$ cat /usr/lib/python2.7/dist-packages/obfsproxy-0.2.7.egg-info/requires.txt

pyptlib >= 0.0.5

But in /usr/lib/python2.7/dist-packages/ there is only:


Meaning obfsproxy doesn't seem to find Twisted, cause there is no
Twisted*.egg-info in dist-packages/ directory.

Interestingly obfsproxy wheezy package from deb.torproject.org [2]
depends on : python (>= 2.7), python (<< 2.8), python-pkg-resources,
python-crypto, python-twisted, python-pyptlib (>= 0.0.4), python-yaml
(The same goes for obfsproxy in debian testing.)

Notice it's 'python-twisted' and not 'python-twisted-core'. So the
package from deb.torproject ends up installing a Twisted*.egg-info in
/dist-packages and obfsproxy does not complain.

So i'm wondering, is this a bug? Should i file a debian bug for the
debian package in wheezy-backports? Does obfsproxy need all of twisted
dependencies or 'python-twisted-core' suffices? If the latter how may we
fix the original exception?


[1]: https://packages.debian.org/wheezy-backports/obfsproxy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20140512/11491d3f/attachment.sig>

More information about the tor-dev mailing list