You are not logged in.

#1 2020-10-29 16:38:55

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

tribler fails to start

==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Tribler-v7.4.4.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   643  100   643    0     0   1224      0 --:--:-- --:--:-- --:--:--  1222
100 3106k  100 3106k    0     0  1125k      0  0:00:02  0:00:02 --:--:-- 2483k
==> Validating source files with sha512sums...
    Tribler-v7.4.4.tar.xz ... Passed
==> Extracting sources...
  -> Extracting Tribler-v7.4.4.tar.xz with bsdtar
==> Starting prepare()...
sed: can't read src/tribler/tribler-core/tribler_core/version.py: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...
[admin@workstation tribler]$ makepkg -sri
==> Making package: tribler 7.4.4-4 (Thu Oct 29 18:33:10 2020)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Tribler-v7.4.4.tar.xz
==> Validating source files with sha512sums...
    Tribler-v7.4.4.tar.xz ... Passed
==> Extracting sources...
  -> Extracting Tribler-v7.4.4.tar.xz with bsdtar
==> Starting prepare()...
sed: can't read src/tribler/tribler-core/tribler_core/version.py: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

Last edited by RedArcher (2021-01-07 05:22:12)

Offline

#2 2020-10-29 17:32:20

metak
Member
Registered: 2009-09-27
Posts: 192

Re: tribler fails to start

Change this in PKGBUILD

src/tribler/tribler-core/tribler_core/version.py

to

Tribler/Core/version.py

Offline

#3 2020-10-29 18:02:57

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

Thanks Bro!

Offline

#4 2020-12-07 19:00:19

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

Tribler does not work. I guess, it is due to recent extensive Python updates of ArchLinux. Can anyone relate?

Offline

#5 2020-12-07 19:08:45

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,068

Re: tribler fails to start

Did you rebuild and reinstall tribler after the Python update?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2020-12-07 20:08:07

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

Yes (assuming I did it correctly)

Offline

#7 2020-12-07 22:42:25

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,863

Re: tribler fails to start

RedArcher wrote:

Tribler does not work. I guess, it is due to recent extensive Python updates of ArchLinux. Can anyone relate?

In between your first sentence and your second sentence is blank whitespace. You were *supposed* to actually describe your problem there.

Currently, there's nothing to relate to. Please try again with more details.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2021-01-02 19:16:03

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

The following error appears on Arch Linux, and, I guess, on Manjaro Linux, too.

Traceback (most recent call last):
  File "/opt/Tribler/tribler-gui/tribler_gui/tribler_request_manager.py", line 120, in <lambda>
    request.reply.finished.connect(lambda: request.on_finished(request))
  File "/opt/Tribler/tribler-gui/tribler_gui/tribler_request_manager.py", line 198, in on_finished
    json_result = json.loads(bytes(data), encoding='latin_1')
  File "/opt/Tribler/tribler-core/tribler_core/utilities/json_util.py", line 112, in loads
    return json.loads(s, *args, **kwargs)
  File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
    return cls(**kw).decode(s)
TypeError: __init__() got an unexpected keyword argument 'encoding'

Edit: Please ignore this post, for the time being, as I didn't update my current installation (version 7.4.4) to 7.6.1 yet.

I've made the update.
It appears that it's a problem on the software side. Here's the error:

Traceback (most recent call last):
  File "/opt/Tribler/tribler-gui/tribler_gui/event_request_manager.py", line 130, in <lambda>
    self.reply.error.connect(lambda error: self.on_error(error, reschedule_on_err=reschedule_on_err))
  File "/opt/Tribler/tribler-gui/tribler_gui/event_request_manager.py", line 70, in on_error
    raise CoreConnectTimeoutError("Could not connect with the Tribler Core within 60 seconds")
tribler_gui.event_request_manager.CoreConnectTimeoutError: Could not connect with the Tribler Core within 60 seconds
[PID:23400] 2021-01-02 22:09:54,859 - ERROR <session:249> Session.unhandled_error_observer(): Unhandled exception occurred! schema2parameters() missing 1 required keyword-only argument: 'location'
--LONG TEXT--
Traceback (most recent call last):
  File "/opt/Tribler/run_tribler.py", line 84, in start_tribler
    await session.start()
  File "/opt/Tribler/tribler-core/tribler_core/session.py", line 289, in start
    await self.api_manager.start()
  File "/opt/Tribler/tribler-core/tribler_core/restapi/rest_manager.py", line 102, in start
    await self.runner.setup()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_runner.py", line 275, in setup
    self._server = await self._make_server()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_runner.py", line 375, in _make_server
    await self._app.startup()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_app.py", line 416, in startup
    await self.on_startup.send(self)
  File "/usr/lib/python3.9/site-packages/aiohttp/signals.py", line 34, in send
    await receiver(*args, **kwargs)  # type: ignore
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 77, in doc_routes
    self._register(app_)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 117, in _register
    self._register_route(route, method, view)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 131, in _register_route
    self._update_paths(view.__apispec__, method, self.prefix + url_path)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 153, in _update_paths
    raw_parameters = self.plugin.converter.schema2parameters(
TypeError: schema2parameters() missing 1 required keyword-only argument: 'location'

--CONTEXT--
{'message': 'Task exception was never retrieved', 'exception': TypeError("schema2parameters() missing 1 required keyword-only argument: 'location'"), 'future': <Task finished name='Task-1' coro=<start_tribler_core.<locals>.start_tribler() done, defined at /opt/Tribler/run_tribler.py:53> exception=TypeError("schema2parameters() missing 1 required keyword-only argument: 'location'")>}

Last edited by RedArcher (2021-01-02 20:21:31)

Offline

#9 2021-01-05 14:45:28

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

FS#69090 - [pysolfc] ModuleNotFoundError: No module named 'validate'
https://bugs.archlinux.org/task/69090#comment195253

polyzen wrote:

Comment by Daniel M. Capella (polyzen) - Friday, 25 December 2020, 11:53 GMT
A large number of packages were unusable due to this change, I went ahead and included the shim thanks to loqs' suggestion.

blacktav, this will be fixed once you've updated your packages.

Offline

#10 2021-01-05 15:01:39

loqs
Member
Registered: 2014-03-06
Posts: 12,556

Re: tribler fails to start

What is the output of

pacman -Qi python-configobj

python-configobj 5.0.6.r110.g3e2f4cc-1 supplies the shim validate

Offline

#11 2021-01-06 07:18:13

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

$ pacman -Qi python-configobj
Name            : python-configobj
Version         : 5.0.6.r110.g3e2f4cc-1
Description     : Simple config file reader and writer
Architecture    : any
URL             : https://github.com/DiffSK/configobj
Licenses        : BSD
Groups          : None
Provides        : None
Depends On      : python-six
Optional Deps   : None
Required By     : tribler
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 339.94 KiB
Packager        : Daniel M. Capella <polyzen@archlinux.org>
Build Date      : Thu Dec 24 23:22:37 2020
Install Date    : Sat Dec 26 18:36:49 2020
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Offline

#12 2021-01-06 20:04:52

loqs
Member
Registered: 2014-03-06
Posts: 12,556

Re: tribler fails to start

Is this issue resolved?  What is the relevance of post #9?

Offline

#13 2021-01-07 05:22:37

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

loqs wrote:

Is this issue resolved?  What is the relevance of post #9?

Yes, it is still relevant.  The second part of post #9 is relevant.

Offline

#14 2021-01-07 09:12:50

loqs
Member
Registered: 2014-03-06
Posts: 12,556

Re: tribler fails to start

RedArcher wrote:
loqs wrote:

Is this issue resolved?  What is the relevance of post #9?

Yes, it is still relevant.  The second part of post #9 is relevant.

Post #9

RedArcher wrote:

FS#69090 - [pysolfc] ModuleNotFoundError: No module named 'validate'
https://bugs.archlinux.org/task/69090#comment195253

polyzen wrote:

Comment by Daniel M. Capella (polyzen) - Friday, 25 December 2020, 11:53 GMT
A large number of packages were unusable due to this change, I went ahead and included the shim thanks to loqs' suggestion.

blacktav, this will be fixed once you've updated your packages.

Post #10

loqs wrote:

What is the output of

pacman -Qi python-configobj

python-configobj 5.0.6.r110.g3e2f4cc-1 supplies the shim validate

You posted in #11 python-configobj 5.0.6.r110.g3e2f4cc-1 the version supplying the shim is installed.
You have not posted any output showing a failure to find the validate module.
So I still do not understand how post #9 is relevant or if you have any remaining issue with tribler.

Offline

#15 2021-01-07 21:13:29

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

True, there's no mention of the 'validate' module.
I just believe (yes, just a belief) that it has to do with a recent python update of Arch.

What do you think I should do?

Offline

#16 2021-01-07 21:26:19

loqs
Member
Registered: 2014-03-06
Posts: 12,556

Re: tribler fails to start

The traceback is still the same as the second of the two in post #8?
If so https://github.com/Tribler/tribler/issues/5814 / https://bugs.archlinux.org/task/68874

Last edited by loqs (2021-01-07 21:28:47)

Offline

#17 2021-01-08 07:14:14

RedArcher
Member
From: South Africa
Registered: 2009-09-03
Posts: 74

Re: tribler fails to start

Yes, it seems so.

Traceback (most recent call last):
  File "/opt/Tribler/tribler-gui/tribler_gui/event_request_manager.py", line 130, in <lambda>
    self.reply.error.connect(lambda error: self.on_error(error, reschedule_on_err=reschedule_on_err))
  File "/opt/Tribler/tribler-gui/tribler_gui/event_request_manager.py", line 70, in on_error
    raise CoreConnectTimeoutError("Could not connect with the Tribler Core within 60 seconds")
tribler_gui.event_request_manager.CoreConnectTimeoutError: Could not connect with the Tribler Core within 60 seconds
[PID:104993] 2021-01-08 09:12:34,178 - ERROR <session:249> Session.unhandled_error_observer(): Unhandled exception occurred! schema2parameters() missing 1 required keyword-only argument: 'location'
--LONG TEXT--
Traceback (most recent call last):
  File "/opt/Tribler/run_tribler.py", line 84, in start_tribler
    await session.start()
  File "/opt/Tribler/tribler-core/tribler_core/session.py", line 289, in start
    await self.api_manager.start()
  File "/opt/Tribler/tribler-core/tribler_core/restapi/rest_manager.py", line 102, in start
    await self.runner.setup()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_runner.py", line 275, in setup
    self._server = await self._make_server()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_runner.py", line 375, in _make_server
    await self._app.startup()
  File "/usr/lib/python3.9/site-packages/aiohttp/web_app.py", line 416, in startup
    await self.on_startup.send(self)
  File "/usr/lib/python3.9/site-packages/aiohttp/signals.py", line 34, in send
    await receiver(*args, **kwargs)  # type: ignore
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 77, in doc_routes
    self._register(app_)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 117, in _register
    self._register_route(route, method, view)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 131, in _register_route
    self._update_paths(view.__apispec__, method, self.prefix + url_path)
  File "/usr/lib/python3.9/site-packages/aiohttp_apispec/aiohttp_apispec.py", line 153, in _update_paths
    raw_parameters = self.plugin.converter.schema2parameters(
TypeError: schema2parameters() missing 1 required keyword-only argument: 'location'

--CONTEXT--
{'message': 'Task exception was never retrieved', 'exception': TypeError("schema2parameters() missing 1 required keyword-only argument: 'location'"), 'future': <Task finished name='Task-1' coro=<start_tribler_core.<locals>.start_tribler() done, defined at /opt/Tribler/run_tribler.py:53> exception=TypeError("schema2parameters() missing 1 required keyword-only argument: 'location'")>}

Offline

#18 2021-01-08 12:48:55

loqs
Member
Registered: 2014-03-06
Posts: 12,556

Re: tribler fails to start

If you build python-apispec 3.3.2-1 for python 3.9 does that work?

$ git clone git://git.archlinux.org/svntogit/community.git --single-branch --branch "packages/python-apispec"
$ cd community/trunk/
$ git checkout e8552ed8128b8da52c8b7a6e02297164efbe978 # 3.3.2-1
$ makepkg -rsi

Offline

Board footer

Powered by FluxBB