adibalcan / pytor Goto Github PK
View Code? Open in Web Editor NEWPython module for http requests by tor network
License: GNU General Public License v2.0
Python module for http requests by tor network
License: GNU General Public License v2.0
Why does it rely on Privoxy? With SocksiPy and urllib should be all set right?
Like in: https://stem.torproject.org/tutorials/to_russia_with_love.html
Is this to get the password from the torrc file or to set the password?
Hi Adrian,
Thanks for making this package available. I'm trying to install it on an ec2 node using ubuntu 14.04 LTS. I'm getting the error in the title. Any idea how to fix it. My commands and output are:
ubuntu@ip-172-31-28-196:$ pip install git+git://github.com/adibalcan/PyTor.git@master$ sudo apt-get -y install git-core
Downloading/unpacking git+git://github.com/adibalcan/PyTor.git@master
Cloning git://github.com/adibalcan/PyTor.git (to master) to /tmp/pip-_SWCZw-build
Cleaning up...
Cannot find command 'git'
Storing debug log for failure in /home/ubuntu/.pip/pip.log
ubuntu@ip-172-31-28-196:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git git-man liberror-perl
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-bzr git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-core git-man liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 57 not upgraded.
Need to get 3,347 kB of archives.
After this operation, 21.6 MB of additional disk space will be used.
Get:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 k
B]
Get:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubunt
u0.1 [698 kB]
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main git amd64 1:1.9.1-1ubuntu0
.1 [2,627 kB]
Get:4 http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main git-core all 1:1.9.1-1ubun
tu0.1 [1,458 B]
Fetched 3,347 kB in 1s (2,650 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 57260 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.1_all.deb ...
Unpacking git-man (1:1.9.1-1ubuntu0.1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.1_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.1) ...
Selecting previously unselected package git-core.
Preparing to unpack .../git-core_1%3a1.9.1-1ubuntu0.1_all.deb ...
Unpacking git-core (1:1.9.1-1ubuntu0.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1ubuntu0.1) ...
Setting up git (1:1.9.1-1ubuntu0.1) ...
Setting up git-core (1:1.9.1-1ubuntu0.1) ...
ubuntu@ip-172-31-28-196:~$ pip install git+git://github.com/adibalcan/PyTor.git@master
Downloading/unpacking git+git://github.com/adibalcan/PyTor.git@master
Cloning git://github.com/adibalcan/PyTor.git (to master) to /tmp/pip-JKoRkP-build
Running setup.py (path:/tmp/pip-JKoRkP-build/setup.py) egg_info for package from git+git://github.
com/adibalcan/PyTor.git@master
Downloading/unpacking stem (from pytor==1.5)
Downloading stem-1.3.0.tar.bz2 (1.5MB): 1.5MB downloaded
Running setup.py (path:/tmp/pip_build_ubuntu/stem/setup.py) egg_info for package stem
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packag
es (from pytor==1.5)
Installing collected packages: stem, pytor
Running setup.py install for stem
changing mode of build/scripts-2.7/tor-prompt from 664 to 775
error: could not create '/usr/local/lib/python2.7/dist-packages/stem': Permission denied
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_
build_ubuntu/stem/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('
r\n', '\n'), file, 'exec'))" install --record /tmp/pip-MoV3kV-record/install-record.txt --single
-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/stem
copying stem/process.py -> build/lib.linux-x86_64-2.7/stem
copying stem/socket.py -> build/lib.linux-x86_64-2.7/stem
copying stem/prereq.py -> build/lib.linux-x86_64-2.7/stem
copying stem/version.py -> build/lib.linux-x86_64-2.7/stem
copying stem/init.py -> build/lib.linux-x86_64-2.7/stem
copying stem/connection.py -> build/lib.linux-x86_64-2.7/stem
copying stem/exit_policy.py -> build/lib.linux-x86_64-2.7/stem
copying stem/control.py -> build/lib.linux-x86_64-2.7/stem
creating build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/microdescriptor.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/router_status_entry.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/init.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/server_descriptor.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/reader.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/export.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/networkstatus.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/extrainfo_descriptor.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/tordnsel.py -> build/lib.linux-x86_64-2.7/stem/descriptor
copying stem/descriptor/remote.py -> build/lib.linux-x86_64-2.7/stem/descriptor
creating build/lib.linux-x86_64-2.7/stem/interpreter
copying stem/interpreter/init.py -> build/lib.linux-x86_64-2.7/stem/interpreter
copying stem/interpreter/help.py -> build/lib.linux-x86_64-2.7/stem/interpreter
copying stem/interpreter/arguments.py -> build/lib.linux-x86_64-2.7/stem/interpreter
copying stem/interpreter/commands.py -> build/lib.linux-x86_64-2.7/stem/interpreter
copying stem/interpreter/autocomplete.py -> build/lib.linux-x86_64-2.7/stem/interpreter
creating build/lib.linux-x86_64-2.7/stem/response
copying stem/response/authchallenge.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/init.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/mapaddress.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/events.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/getinfo.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/getconf.py -> build/lib.linux-x86_64-2.7/stem/response
copying stem/response/protocolinfo.py -> build/lib.linux-x86_64-2.7/stem/response
creating build/lib.linux-x86_64-2.7/stem/util
copying stem/util/str_tools.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/conf.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/proc.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/test_tools.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/ordereddict.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/init.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/system.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/lru_cache.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/connection.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/term.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/enum.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/tor_tools.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/util/log.py -> build/lib.linux-x86_64-2.7/stem/util
copying stem/interpreter/settings.cfg -> build/lib.linux-x86_64-2.7/stem/interpreter
running build_scripts
creating build/scripts-2.7
copying and adjusting tor-prompt -> build/scripts-2.7
changing mode of build/scripts-2.7/tor-prompt from 664 to 775
running install_lib
creating /usr/local/lib/python2.7/dist-packages/stem
error: could not create '/usr/local/lib/python2.7/dist-packages/stem': Permission denied
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_ubuntu/stem/setup.p
y';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'e
xec'))" install --record /tmp/pip-MoV3kV-record/install-record.txt --single-version-externally-manag
ed --compile failed with error code 1 in /tmp/pip_build_ubuntu/stem
Storing debug log for failure in /home/ubuntu/.pip/pip.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.