2015-04-22 50 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

無論誰發生這種情況的注意事項:在窗口上使用「\」而不是「/」。 –