[tor-bugs] #19787 [Obfuscation/BridgeDB]: ImportError: No module named Bridges, no BridgeSplitter class
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Jul 31 14:03:44 UTC 2016
#19787: ImportError: No module named Bridges, no BridgeSplitter class
----------------------------------+----------------------
Reporter: mikefrompluto | Owner: isis
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Obfuscation/BridgeDB | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------------+----------------------
Comment (by isis):
The `BridgeSplitter` class is defined at line 399 in the
`bridgedb.Bridges` module (not the `bridgedb.bridges` module).
{{{
(bdb)∃!isisⒶwintermute:(master $=)~/code/torproject/bridgedb ∴ ag 'class
BridgeSplitter' bridgedb
bridgedb/Bridges.py
399:class BridgeSplitter(object):
}}}
I realise that can be confusing, however this is because the old code in
BridgeDB (all of which will likely eventually be deprecated) was in
modules with capitalised module names, while newer code is in modules with
lowercase names.
The PyPI package is out of date, because we always install from git and
install the dependencies through a package manager. You could try:
{{{
sudo apt-get install build-essential openssl sqlite3 python-dev \
python-setuptools build-essential openssl sqlite3 python-dev python-
setuptools
git clone https://git.torproject.org/bridgedb.git
pip install -r requirements.txt -r .test.requirements.txt
make
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19787#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list