Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.86k stars 450 forks source link

Error while opening version settings #8139

Closed egbertbouman closed 2 months ago

egbertbouman commented 2 months ago

I got this while opening the version settings. Apparently task_manager isn't actually a TaskManager:

Traceback (most recent call last):
  File "C:\Users\Egbert\Desktop\Git\tribler\src\tribler\core\restapi\rest_manager.py", line 106, in error_middleware
    response = await handler(request)
  File "C:\Users\Egbert\Desktop\Git\tribler\src\tribler\core\restapi\rest_manager.py", line 161, in required_components_middleware
    return await handler(request)
  File "C:\Python39\lib\site-packages\aiohttp\web_middlewares.py", line 114, in impl
    return await handler(request)
  File "C:\Users\Egbert\Desktop\Git\tribler\src\tribler\core\versioning\restapi\versioning_endpoint.py", line 137, in is_upgrading
    return RESTResponse({"running": request.context[0].task_manager.get_task("Upgrade") is not None})
AttributeError: 'VersioningComponent' object has no attribute 'get_task'
qstokkink commented 2 months ago

Is your IPv8 submodule up to date?

qstokkink commented 2 months ago

And/or are you importing ipv8 from your site packages?

The latest release of IPv8 does not have TaskManager.get_task().

egbertbouman commented 2 months ago

You're right, my bad. The submodule was updated and I didn't have IPv8 in site-packages, but somehow I still ended up using an old version :face_with_head_bandage: