Closed ChessNineeee closed 3 years ago
Did you run NFD in the background?
On Tue, Dec 22, 2020 at 09:09 ChessNineeee notifications@github.com wrote:
I've installed python-ndn through source code. However when I ran the example programs, it said that sock file '/run/nfd.sock' was not found while running stream_socket.py. Here 're the logs: Traceback (most recent call last): File "consumer.py", line 58, in app.run_forever(after_start=main()) File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 293, in run_forever File "/usr/python/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete return future.result() File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 249, in main_loop File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/transport/stream_socket.py", line 84, in open File "/usr/python/lib/python3.6/asyncio/streams.py", line 128, in open_unix_connection lambda: protocol, path, **kwds) File "/usr/python/lib/python3.6/asyncio/unix_events.py", line 236, in create_unix_connection yield from self.sock_connect(sock, path) File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 451, in sock_connect return (yield from fut) File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 456, in _sock_connect sock.connect(address) FileNotFoundError: [Errno 2] No such file or directory
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/named-data/python-ndn/issues/21, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMVK47PDF5SESBFPEGPIT3SWCSCBANCNFSM4VFV3QUA .
Did you run NFD in the background? … On Tue, Dec 22, 2020 at 09:09 ChessNineeee @.*> wrote: I've installed python-ndn through source code. However when I ran the example programs, it said that sock file '/run/nfd.sock' was not found while running stream_socket.py. Here 're the logs: Traceback (most recent call last): File "consumer.py", line 58, in app.run_forever(after_start=main()) File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 293, in run_forever File "/usr/python/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete return future.result() File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 249, in main_loop File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/transport/stream_socket.py", line 84, in open File "/usr/python/lib/python3.6/asyncio/streams.py", line 128, in open_unix_connection lambda: protocol, path, kwds) File "/usr/python/lib/python3.6/asyncio/unix_events.py", line 236, in create_unix_connection yield from self.sock_connect(sock, path) File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 451, in sock_connect return (yield from fut) File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 456, in _sock_connect sock.connect(address) FileNotFoundError: [Errno 2] No such file or directory — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#21>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMVK47PDF5SESBFPEGPIT3SWCSCBANCNFSM4VFV3QUA .
Thanks! I forgot to restart nfd-service after rebooting. It works now.
I've installed python-ndn through source code. However when I ran the example programs, it said that sock file '/run/nfd.sock' was not found while running stream_socket.py. Here 're the logs: Traceback (most recent call last): File "consumer.py", line 58, in
app.run_forever(after_start=main())
File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 293, in run_forever
File "/usr/python/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
return future.result()
File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/app.py", line 249, in main_loop
File "/usr/python/lib/python3.6/site-packages/python_ndn-0.3a1-py3.6.egg/ndn/transport/stream_socket.py", line 84, in open
File "/usr/python/lib/python3.6/asyncio/streams.py", line 128, in open_unix_connection
lambda: protocol, path, **kwds)
File "/usr/python/lib/python3.6/asyncio/unix_events.py", line 236, in create_unix_connection
yield from self.sock_connect(sock, path)
File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 451, in sock_connect
return (yield from fut)
File "/usr/python/lib/python3.6/asyncio/selector_events.py", line 456, in _sock_connect
sock.connect(address)
FileNotFoundError: [Errno 2] No such file or directory