2015-04-22 44 views
0

我试图遵循“与俄罗斯的爱情”教程(https://stem.torproject.org/tutorials/to_russia_with_love.html)不承认,但我收到此错误:TOR名干

[1mStarting Tor: 
[0m 
Traceback (most recent call last): 
    File "C:\Users\gatsu\My Documents\LiClipse Workspace\TorCommunicator\tutorialStart.py", line 52, in <module> 
    init_msg_handler = print_bootstrap_lines, 
    File "C:\Python34\lib\site-packages\stem\process.py", line 244, in launch_tor_with_config 
    return launch_tor(tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership) 
    File "C:\Python34\lib\site-packages\stem\process.py", line 83, in launch_tor 
    raise OSError("'%s' isn't available on your system. Maybe it's not in your PATH?" % tor_cmd) 
OSError: 'tor' isn't available on your system. Maybe it's not in your PATH? 

我缺少什么?我是否需要将某些东西导入到我的项目中或添加一些Tor PATH?我正在使用Windows 8.1。

回答

1

这意味着Stem不知道tor可执行文件所在的位置。您的PATH告诉应用程序,如Stem在哪里查找可执行文件,并且tor不在任何位置。

您有几个选项...

a。告诉Stem明确tor的位置...

stem.process.launch_tor_with_config(tor_cmd='C:\path\to\tor', ...) 

b。 Change your path to include tor

+0

无论谁发生这种情况的注意事项:在窗口上使用“\”而不是“/”。 –