Tidal App discussion

can you provide some longs ?
the standard question.
i get the jolla page only on exceptions.
so getting the jolla page means somethings got fucked.

I only ever get the Jolla page. That’s with an install from chum:testing.

I understand, maybe if you start it from cmdline we will see something like missing dependencies or some error

i install the app from chum or locally built but my phone is not pristine (package wise)

Here is the log. I started the application and tried to log in.

[defaultuser@Fairphone4 ~]$ /usr/bin/sailfish-qml harbour-tidalplayer
[D] unknown:0 - Using Wayland-EGL
[D] unknown:0 - Got library name: “/usr/lib64/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so”
[W] unknown:90 - file:///usr/share/harbour-tidalplayer/qml/pages/FirstPage.qml:90:9: QML SlideshowView: Cannot anchor to an item that isn’t a parent or sibling.
[D] isTokenValid:53 - -1
[D] checkAndLogin:43 - old token invalid
[D] loginIn:462 -
[W] unknown:0 - QQmlContext: Cannot set context object on invalid context.
[W] unknown:0 - QQmlComponent: Cannot create a component in an invalid context
[W] unknown:0 - QQmlContext: Cannot set context object on invalid context.
[W] unknown:0 - QQmlComponent: Cannot create a component in an invalid context
[W] unknown:0 - QQmlContext: Cannot set context object on invalid context.
[W] unknown:0 - QQmlComponent: Cannot create a component in an invalid context
[D] :126 - Playlistmanager module imported successfully
[D] :132 - Starting playlist manager
[D] generateList:390 - Playlist changed from main.qml
[D] generateList:220 - Generate current database
[D] getSize:158 - Playlist size: 0
[D] generateList:222 - current size 0
[D] expression for onListChanged:403 - update playlist
[D] expression for onListChanged:405 - update current playlist
[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "/usr/share/harbour-tidalplayer/qml/tidal.py", line 8, in \n import tidalapi\n\n File "/usr/share/harbour-tidalplayer/python/tidalapi/init.py", line 6, in \n from .artist import Artist, Role # noqa: F401\n\n File "/usr/share/harbour-tidalplayer/python/tidalapi/artist.py", line 28, in \n from typing_extensions import NoReturn\n\n File "/usr/share/harbour-tidalplayer/python/typing_extensions.py", line 490, in \n class _SpecialGenericAlias(typing._SpecialGenericAlias, _root=True):\n\nAttributeError: module ‘typing’ has no attribute ‘_SpecialGenericAlias’\n”
[W] unknown:0 - Unhandled PyOtherSide error: Cannot import module: tidal (Traceback (most recent call last):

File “/usr/share/harbour-tidalplayer/qml/tidal.py”, line 8, in
import tidalapi

File “/usr/share/harbour-tidalplayer/python/tidalapi/init.py”, line 6, in
from .artist import Artist, Role # noqa: F401

File “/usr/share/harbour-tidalplayer/python/tidalapi/artist.py”, line 28, in
from typing_extensions import NoReturn

File “/usr/share/harbour-tidalplayer/python/typing_extensions.py”, line 490, in
class _SpecialGenericAlias(typing._SpecialGenericAlias, _root=True):

AttributeError: module ‘typing’ has no attribute ‘_SpecialGenericAlias’
)
[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”
[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.initialize’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined
)
[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”
[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.login’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined
)
[D] :418 - Tidal module imported successfully
[D] onTriggered:19 - 0
[D] loadCurrentPlaylistState:164 - Loading current playlist [object Object]
[D] loadCurrentPlaylistState:165 - Loading current playlist undefined
[D] loadCurrentPlaylistState:166 - Loading current playlist undefined
[W] unknown:101 - file:///usr/share/harbour-tidalplayer/qml/pages/Settings.qml:101: Error: Cannot assign [undefined] to QString
greHome from GRE_HOME:/usr/bin
libxul.so is not found, in /usr/bin/libxul.so
Created LOG for EmbedLiteTrace
[D] getOAuth:456 - Request new login
[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”
[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.initialize’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined
)
[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”
[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.request_oauth’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined
)
Created LOG for EmbedLite
Created LOG for EmbedPrefs
Created LOG for EmbedLiteLayerManager
=============== Preparing offscreen rendering context ===============

Thank you.

i think conrad had the same issue, i think we did replace one file and done
i will check tomorrow


exactly the same issue

Update: now i remember the reason: poetaster did package main branch of python-tidal while i did use 0.83 release version.
I am not sure if he did an update since, think not.

What you can do is: download the package, unzip it and then replace on the phone.
If this is manageable for you i can give you the details. It would definately help us to get the build in obs right.

python tidal: Release v0.8.3 ¡ EbbLabs/python-tidal ¡ GitHub

download the tar.gz, unpack it and copy the .py files to phone.
i usualy do conect phone as media then copy the folder with py files into e.g. downloads directory of phone.
then connect to phone with ssh and as root copy the files to /usr/share …tidalapi

this should solve the current problem of yours.
lets see if this is the only one :slight_smile:

I copied the python files to phone, but it still goes to Jolla’s page.

[D] :418 - Tidal module imported successfully

[D] onTriggered:19 - 0

[D] loadCurrentPlaylistState:164 - Loading current playlist [object Object]

[D] loadCurrentPlaylistState:165 - Loading current playlist undefined

[D] loadCurrentPlaylistState:166 - Loading current playlist undefined

[W] unknown:101 - file:///usr/share/harbour-tidalplayer/qml/pages/Settings.qml:101: Error: Cannot assign [undefined] to QString

greHome from GRE_HOME:/usr/bin

libxul.so is not found, in /usr/bin/libxul.so

Created LOG for EmbedLiteTrace

[D] getOAuth:456 - Request new login

[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”

[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.initialize’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined

)

[D] unknown:0 - “PyOtherSide error: Traceback (most recent call last):\n\n File "", line 1, in \n\nNameError: name ‘tidal’ is not defined\n”

[W] unknown:0 - Unhandled PyOtherSide error: Function not found: ‘tidal.Tidaler.request_oauth’ (Traceback (most recent call last):

File “”, line 1, in

NameError: name ‘tidal’ is not defined

)

Created LOG for EmbedLite

Created LOG for EmbedPrefs

Created LOG for EmbedLiteLayerManager

=============== Preparing offscreen rendering context ===============

I copied the whole tidal-player from C2 to FP4 and now it is working. :slight_smile:

how did you install it on c2 ? via the link to rpm package or via chum ?
i fear the chum / obs installation is still broken.

I installed it from rpm to C2. Back then it was not in chum.

1 Like

@poetaster i did take latest from main and built it locally. it runs fine.
can you try to update obs now please ?
thanks !

I did go the the static 0.83 release.

1 Like

Main from my repo? I had updated all the libraries to the static versions you indicated. dateutls and tidalapi are no longer submodules but just directories.

Edit. I just pulled the most recent from conrad and I get the same issue as renTTu. And the login screen goes to jolla.

EDIT: If I try to import typing_extensions on the cli on the phone I get the error:

AttributeError: module ‘typing’ has no attribute ‘_SpecialGenericAlias’

Immediately. So, maybe this is also an issue with the version. If you have a working version, please let me know which one.

Using the latest code, if I try to import tidalapi in a python repl on the phone I get
ModuleNotFoundError: No module named ‘dateutil.parser’

There seem to be a number of issues. You need to fix the issues in one of the repos. I’ve downgraded typing extensions which now seems to load so I’m going to push that change.

There are a metric ton of errors in the current state. I have no idea how you think this app ‘works’ or for what extent. Beside not even being to log in, i’m going through python errors one by one and it’s a mess.

Some things are problems with python 3.8 but downgrading leads to one thing working but another being missing. I managed to get ride of some errors by hand editing tidalapi (which was using typing extensions when the built in types are already there) and frankly, this is too much work.

You need to backup everything to a version that works without throwing new errors on every iteration.

I won’t package this until it:

  1. let’s me login
  2. loads tidal api on boo.