2012-08-02 1 views
0

임을 설정하지, 나는HMAC_KEY는 <a href="http://packages.python.org/Pyro4/intro.html#simple-example" rel="nofollow">example from pyro docs</a> 노력 경고

이의 피하는 방법
[email protected]:~/py/pyro$ python greeting.py 
/usr/local/lib/python2.7/dist-packages/Pyro4-4.14-py2.7.egg/Pyro4/core.py:155: UserWarning: HMAC_KEY not set, protocol data may not be secure 
    warnings.warn("HMAC_KEY not set, protocol data may not be secure") 
Ready. Object uri = PYRO:[email protected]:48766 

를 얻을? (이 예제에도 불구하고 작동)

또한 pyro의 데몬 프로세스를 분리하는 방법은 무엇입니까?

그리고 - example with name server 나던 작업 :

[email protected]:~/py/pyro$ python name_server.py 
/usr/local/lib/python2.7/dist-packages/Pyro4-4.14-py2.7.egg/Pyro4/core.py:155: UserWarning: HMAC_KEY not set, protocol data may not be secure 
    warnings.warn("HMAC_KEY not set, protocol data may not be secure") 
Traceback (most recent call last): 
    File "name_server.py", line 11, in <module> 
    ns=Pyro4.locateNS()     # find the name server 
    File "/usr/local/lib/python2.7/dist-packages/Pyro4-4.14-py2.7.egg/Pyro4/naming.py", line 323, in locateNS 
    raise Pyro4.errors.NamingError("Failed to locate the nameserver") 
Pyro4.errors.NamingError: Failed to locate the nameserver 

답변

2

가해야 명시된 = 'the_same_string_for_server_and_client은'... 어딘가 파이 - 문서에 (잃어버린) Pyro4.config.HMAC_KEY 수

관련 문제