UCLA-IRL / ndn-python-repo

An NDN Repo implementation in Python
Apache License 2.0
16 stars 13 forks source link

Various errors at shutdown #17

Closed Pesa closed 4 years ago

Pesa commented 4 years ago
^C[2020-02-18 20:24:06]INFO:Receiving Ctrl+C, shutdown
[2020-02-18 20:24:06]ERROR:Task exception was never retrieved
future: <Task finished coro=<concurrent_fetcher.<locals>._retry() done, defined at /home/davide/.local/lib/python3.7/site-packages/ndn_python_repo/concurrent_fetcher.py:32> exception=AttributeError("'NDNApp' object has no attribute 'get_original_packet_value'")>
Traceback (most recent call last):
  File "/home/davide/.local/lib/python3.7/site-packages/ndn_python_repo/concurrent_fetcher.py", line 58, in _retry
    data_bytes = app.get_original_packet_value(data_name)
AttributeError: 'NDNApp' object has no attribute 'get_original_packet_value'
[2020-02-18 20:24:06]ERROR:Task was destroyed but it is pending!
task: <Task pending coro=<WriteCommandHandle._process_insert() running at /home/davide/.local/lib/python3.7/site-packages/ndn_python_repo/handle/write_command_handle.py:77> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f7ccf9a6c10>()]>>
JonnyKong commented 4 years ago

This is due to API changes in python-ndn. I will coordinate with Xinyu to fix that.

zjkmxy commented 4 years ago

I have released a new version of python-ndn 0.2b2.

Pesa commented 4 years ago

With python-ndn 0.2b2, I don't see these errors anymore. Please declare a proper versioned dependency in setup.py

JonnyKong commented 4 years ago

Fixed with a9dfcdfa470b1e6f642388b7668f3f004e04d292 : updated dependency to python-ndn 0.2b2.