Coder Social home page Coder Social logo

Comments (5)

marcelveldt avatar marcelveldt commented on September 15, 2024 1

1.0.26 is a very old version which I don't support anymore. Please update to the latest version. Easiest is by installing my repo.

from plugin.audio.spotify.

marcelveldt avatar marcelveldt commented on September 15, 2024

This specific error should be fixed in version 1.0.20

Make sure to read about the workaround for Pi users

from plugin.audio.spotify.

markg85 avatar markg85 commented on September 15, 2024

Hi,

I'm trying to run this plugin on kodi 17 and am using version 1.0.25. I'm getting the very same error Vando reported.
Just to be complete, the error i get:

14:10:44.020 T:139901185058560   ERROR: 127.0.0.1 - - [05/Mar/2017 14:10:44] "QUIT / HTTP/1.1" 200 -
14:10:44.350 T:139901668951808   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'spotipy.oauth2.SpotifyOauthError'>
                                            Error Contents: Bad Request
                                            Traceback (most recent call last):
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 59, in prompt_for_user_token
                                                token_info = sp_oauth.get_access_token(code)
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/oauth2.py", line 213, in get_access_token
                                                raise SpotifyOauthError(response.reason)
                                            SpotifyOauthError: Bad Request
                                            -->End of Python script error report<--

I havent tried the 1.0.26 version yet.

Edit.
Tried with 1.0.26 as well now. The error seems to be slightly different, but still an error.

14:22:38.041 T:139676670228224   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'Dialog'
                                            Traceback (most recent call last):
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/home/mark/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 69, in prompt_for_user_token
                                                if xbmc.Dialog().yesno("No webbrowser detected", "The webbrowser could not be auto detected. Do you have one installed ?"):
                                            AttributeError: 'module' object has no attribute 'Dialog'
                                            -->End of Python script error report<--

from plugin.audio.spotify.

mcortinas avatar mcortinas commented on September 15, 2024

I've installed in OSMC and the 1.0.26 las has the same error

09:50:04.421 T:1677718272   ERROR: GetDirectory - Error getting
09:50:04.479 T:1341121280   ERROR: Previous line repeats 3 times.
09:50:04.479 T:1341121280  NOTICE: Spotify --> Checking remembered_user ..
09:50:04.986 T:1694495488 WARNING: CSkinInfo: failed to load skin settings
09:50:10.315 T:1284985600  NOTICE: Spotify --> logged in: 0
09:50:14.828 T:1341121280  NOTICE: Spotify --> starting proxy at port 8090
09:50:14.829 T:1341121280  NOTICE: Spotify --> Setting callback ..
09:50:14.830 T:1341121280  NOTICE: Spotify --> Obtaining user token ..
09:50:14.831 T:1341121280  NOTICE: Spotify --> Encoding header ..
09:50:14.982 T:1466098432   ERROR: warning:couldn't read token from cache
09:50:14.996 T:1466098432  NOTICE: Spotify --> WebService - start helper webservice on port 52308
09:50:16.176 T:1466098432   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'Dialog'
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/home/osmc/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 69, in prompt_for_user_token
                                                if xbmc.Dialog().yesno("No webbrowser detected", "The webbrowser could not be auto detected. Do you have one installed ?"):
                                            AttributeError: 'module' object has no attribute 'Dialog'
                                            -->End of Python script error report<--

from plugin.audio.spotify.

mcortinas avatar mcortinas commented on September 15, 2024

Great job! thank you @marcelveldt it is work fine!

from plugin.audio.spotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.