Om-Thorat / Term-Spotify

Spotify controls in the terminal, A demo app.
MIT License
12 stars 0 forks source link

Only shows for a split second, then closes. #2

Closed qrwtey closed 8 months ago

qrwtey commented 11 months ago

After moving the repo to a folder and installing the dependencies, I started Spotify with the PlayBackApi from the marketplace installed and then ran app.py The window flashes for a split second and then closes on itself. I just barely notice the SpotiUi elements. I also tried to place PlayBackApi in the spicetify extension folder, it didn't work either. Any ideas?

Om-Thorat commented 11 months ago

Oh that's weird!

Can you check the console for Spotify with devtools? You can do that by spicetify enable-devtools and then ctrl+shift+i send me a screenshot 👀 also try opening app.py while the console is open and tell me if you see any logs!

qrwtey commented 11 months ago

To the left: my attempts to install. Connection refused and no connection at localhost:443. To the right: A new thing I tried is to make app.py wait for input so I can catch these errors (but maybe those two errors are from waiting on input). I don't know python so I don't know if I should run scripts with python from the right-click "open with..." drop-down menu. image

qrwtey commented 11 months ago

localhost works fine when I'm making live servers for web dev stuff with VS Code Windows 10 64bit Python 3.10, 3.11

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> pip install -r requirements.txt
Requirement already satisfied: flask in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r requirements.txt (line 1)) (2.3.2)
Requirement already satisfied: textual in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from -r requirements.txt (line 2)) (0.30.0)
Requirement already satisfied: Werkzeug>=2.3.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from flask->-r requirements.txt (line 1)) (2.3.6)
Requirement already satisfied: Jinja2>=3.1.2 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from flask->-r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: itsdangerous>=2.1.2 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from flask->-r requirements.txt (line 1)) (2.1.2)
Requirement already satisfied: click>=8.1.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from flask->-r requirements.txt (line 1)) (8.1.6)
Requirement already satisfied: blinker>=1.6.2 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from flask->-r requirements.txt (line 1)) (1.6.2)
Requirement already satisfied: importlib-metadata>=4.11.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual->-r requirements.txt (line 2)) (6.8.0)
Requirement already satisfied: markdown-it-py[linkify,plugins]>=2.1.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual->-r requirements.txt (line 2)) (3.0.0)
Requirement already satisfied: rich>=13.3.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual->-r requirements.txt (line 2)) (13.4.2)
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual->-r requirements.txt (line 2)) (4.7.1)
Requirement already satisfied: colorama in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from click>=8.1.3->flask->-r requirements.txt (line 1)) (0.4.6)
Requirement already satisfied: zipp>=0.5 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from importlib-metadata>=4.11.3->textual->-r requirements.txt (line 2)) (3.16.2)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from Jinja2>=3.1.2->flask->-r requirements.txt (line 1)) (2.1.3)
Requirement already satisfied: mdurl~=0.1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual->-r requirements.txt (line 2)) (0.1.2)
Requirement already satisfied: linkify-it-py<3,>=1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual->-r requirements.txt (line 2)) (2.0.2)
Requirement already satisfied: mdit-py-plugins in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual->-r requirements.txt (line 2)) (0.4.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from rich>=13.3.3->textual->-r requirements.txt (line 2)) (2.15.1)
Requirement already satisfied: uc-micro-py in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify,plugins]>=2.1.0->textual->-r requirements.txt (line 2)) (1.0.2)
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>
Om-Thorat commented 11 months ago

To the left: my attempts to install. Connection refused and no connection at localhost:443. To the right: A new thing I tried is to make app.py wait for input so I can catch these errors (but maybe those two errors are from waiting on input). I don't know python so I don't know if I should run scripts with python from the right-click "open with..." drop-down menu.

Your extension seems to be working fine it keeps on looking for localhost:443 connection on a websocket it gives an error until you start the app which is the host and connects to it on localhost:443.

Can you remove your edits to the python scripts and instead try running them from your powershell by python3 app.py or py app.py,

Thank you!

qrwtey commented 11 months ago

removed my input('Wait') edit and ran with powershell:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> py app.py
Traceback (most recent call last):
  File "C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\app.py", line 2, in <module>
    from textual.reactive import reactive
ModuleNotFoundError: No module named 'textual'
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> python3 app.py
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\app.py:17 in update_song
│
│   14 │   │   self.set_interval(1 / 60, self.update_song)
│   15 │
│   16 │   def update_song(self):
│ ❱ 17 │   │   self.song = pl.getdata()
│   18 │
│   19 │   def watch_song(self):
│   20 │   │   self.update(f"Now Playing {self.song}")
│
│ ╭──────────── locals ────────────╮
│ │ self = nowplaying(id='status') │
│ ╰────────────────────────────────╯
│
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\api.py:38 in getdata
│
│   35 │
│   36 │   def getdata(self):
│   37 │   │   self.proc.stdin.write("getdata\n")
│ ❱ 38 │   │   self.proc.stdin.flush()
│   39 │   │   return self.proc.stdout.readline()
│   40
│   41 if __name__ == "__main__":
│
│ ╭───────────────────── locals ─────────────────────╮
│ │ self = <api.Player object at 0x000001C9EA29FC10> │
│ ╰──────────────────────────────────────────────────╯
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
OSError: [Errno 22] Invalid argument

NOTE: 1 of 2 errors shown. Run with --dev to see all errors.
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>
Om-Thorat commented 11 months ago

weirdly it seems like you don't have the modules installed, try running pip install textual

qrwtey commented 11 months ago
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> pip install textual
Requirement already satisfied: textual in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (0.30.0)
Requirement already satisfied: importlib-metadata>=4.11.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (6.8.0)
Requirement already satisfied: markdown-it-py[linkify,plugins]>=2.1.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (3.0.0)
Requirement already satisfied: rich>=13.3.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (13.4.2)
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (4.7.1)
Requirement already satisfied: zipp>=0.5 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from importlib-metadata>=4.11.3->textual) (3.16.2)
Requirement already satisfied: mdurl~=0.1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (0.1.2)
Requirement already satisfied: mdit-py-plugins in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (0.4.0)
Requirement already satisfied: linkify-it-py<3,>=1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (2.0.2)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from rich>=13.3.3->textual) (2.15.1)
Requirement already satisfied: uc-micro-py in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify,plugins]>=2.1.0->textual) (1.0.2)
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> pip uninstall textual
Found existing installation: textual 0.30.0
Uninstalling textual-0.30.0:
  Would remove:
    c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\textual-0.30.0.dist-info\*
    c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\textual\*
Proceed (Y/n)? Y
  Successfully uninstalled textual-0.30.0

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> pip install textual
Collecting textual
  Obtaining dependency information for textual from https://files.pythonhosted.org/packages/a9/a3/c39654e9fa0b8d3e34c7b7fe0dd97bfeae14dbf930cf960afdfdb2c4a1bb/textual-0.30.0-py3-none-any.whl.metadata
  Downloading textual-0.30.0-py3-none-any.whl.metadata (5.5 kB)
Requirement already satisfied: importlib-metadata>=4.11.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (6.8.0)
Requirement already satisfied: markdown-it-py[linkify,plugins]>=2.1.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (3.0.0)
Requirement already satisfied: rich>=13.3.3 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (13.4.2)
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from textual) (4.7.1)
Requirement already satisfied: zipp>=0.5 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from importlib-metadata>=4.11.3->textual) (3.16.2)
Requirement already satisfied: mdurl~=0.1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (0.1.2)
Requirement already satisfied: linkify-it-py<3,>=1 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (2.0.2)
Requirement already satisfied: mdit-py-plugins in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from markdown-it-py[linkify,plugins]>=2.1.0->textual) (0.4.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from rich>=13.3.3->textual) (2.15.1)
Requirement already satisfied: uc-micro-py in c:\users\name\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from linkify-it-py<3,>=1->markdown-it-py[linkify,plugins]>=2.1.0->textual) (1.0.2)
Using cached textual-0.30.0-py3-none-any.whl (395 kB)
Installing collected packages: textual
Successfully installed textual-0.30.0
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>

image

with "py app.py" it still says "no module named textual", and with "python3 app.py" the same 2 errors still appear in the console when running "python3 app.py"

The only thing I could find about this issue is here: https://github.com/Textualize/textual/issues/71#issuecomment-910082252 That was in 2021, textual should be compatible with Windows by now but are you running something different than Windows? maybe I need to install it differently.

Om-Thorat commented 11 months ago

nope i am running windows 11, This is crazy what are the errors with python3 app.py ?

do you have a discord? You can contact me on there for more fluid conversations if you wish!

qrwtey commented 11 months ago
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> python3 app.py
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\app.py:17 in update_song
│
│   14 │   │   self.set_interval(1 / 60, self.update_song)
│   15 │
│   16 │   def update_song(self):
│ ❱ 17 │   │   self.song = pl.getdata()
│   18 │
│   19 │   def watch_song(self):
│   20 │   │   self.update(f"Now Playing {self.song}")
│
│ ╭──────────── locals ────────────╮
│ │ self = nowplaying(id='status') │
│ ╰────────────────────────────────╯
│
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\api.py:38 in getdata
│
│   35 │
│   36 │   def getdata(self):
│   37 │   │   self.proc.stdin.write("getdata\n")
│ ❱ 38 │   │   self.proc.stdin.flush()
│   39 │   │   return self.proc.stdout.readline()
│   40
│   41 if __name__ == "__main__":
│
│ ╭───────────────────── locals ─────────────────────╮
│ │ self = <api.Player object at 0x000001777B29FC10> │
│ ╰──────────────────────────────────────────────────╯
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
OSError: [Errno 22] Invalid argument

NOTE: 1 of 3 errors shown. Run with --dev to see all errors.
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>

(I don't know how to use --dev) edit: there are three errors now? Let me reboot the computer...

qrwtey commented 11 months ago
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> python3 app.py
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\app.py:17 in update_song
│
│   14 │   │   self.set_interval(1 / 60, self.update_song)
│   15 │
│   16 │   def update_song(self):
│ ❱ 17 │   │   self.song = pl.getdata()
│   18 │
│   19 │   def watch_song(self):
│   20 │   │   self.update(f"Now Playing {self.song}")
│
│ ╭──────────── locals ────────────╮
│ │ self = nowplaying(id='status') │
│ ╰────────────────────────────────╯
│
│ C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\api.py:38 in getdata
│
│   35 │
│   36 │   def getdata(self):
│   37 │   │   self.proc.stdin.write("getdata\n")
│ ❱ 38 │   │   self.proc.stdin.flush()
│   39 │   │   return self.proc.stdout.readline()
│   40
│   41 if __name__ == "__main__":
│
│ ╭───────────────────── locals ─────────────────────╮
│ │ self = <api.Player object at 0x000001D6C569FC10> │
│ ╰──────────────────────────────────────────────────╯
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
OSError: [Errno 22] Invalid argument

NOTE: 1 of 2 errors shown. Run with --dev to see all errors.
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>
Om-Thorat commented 11 months ago

okay sorry you have to do this but let's get to the bottom of this can you try running the server.py instead?

qrwtey commented 11 months ago
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> run server.py
run : The term 'run' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ run server.py
+ ~~~
    + CategoryInfo          : ObjectNotFound: (run:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>
Om-Thorat commented 11 months ago

no no no i meant run as in py server.py or python3 server.py sorry 😅

qrwtey commented 11 months ago

My bad:

PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> python3 server.py
Traceback (most recent call last):
  File "C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify\server.py", line 2, in <module>
    from flask_socketio import SocketIO
ModuleNotFoundError: No module named 'flask_socketio'
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify>
Om-Thorat commented 11 months ago

it is weird all of these were in the requirements which you have installed but anyway try pip install flask_socketio

qrwtey commented 11 months ago
PS C:\Users\name\Documents\Program Files\GitHub\Misc\Term-Spotify> python3 server.py
WebSocket transport not available. Install simple-websocket for improved performance.
 * Serving Flask app 'server'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:443
Press CTRL+C to quit
Om-Thorat commented 11 months ago

and do you have spotify open with a song playing?

qrwtey commented 11 months ago

ah, now I have spotify open:

Press CTRL+C to quit
The WebSocket transport is not available, you must install a WebSocket server that is compatible with your async mode to enable it. See the documentation for details. (further occurrences of this error will be logged with level INFO)
127.0.0.1 - - [29/Jul/2023 18:47:51] "GET /socket.io/?EIO=4&transport=polling&t=OcYZ9mw HTTP/1.1" 200 -
127.0.0.1 - - [29/Jul/2023 18:47:51] "POST /socket.io/?EIO=4&transport=polling&t=OcYZ9nz&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -
127.0.0.1 - - [29/Jul/2023 18:47:51] "GET /socket.io/?EIO=4&transport=polling&t=OcYZ9nz.0&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -
Bob Wins This Episode
127.0.0.1 - - [29/Jul/2023 18:47:51] "POST /socket.io/?EIO=4&transport=polling&t=OcYZ9oP.0&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -
Om-Thorat commented 11 months ago

image

expected behaviour it print the song that is playing currently, you can also type in commands like PlayPause, and it should pause the song.

image

Om-Thorat commented 11 months ago

ah, now I have spotify open:

Press CTRL+C to quit
The WebSocket transport is not available, you must install a WebSocket server that is compatible with your async mode to enable it. See the documentation for details. (further occurrences of this error will be logged with level INFO)
127.0.0.1 - - [29/Jul/2023 18:47:51] "GET /socket.io/?EIO=4&transport=polling&t=OcYZ9mw HTTP/1.1" 200 -
127.0.0.1 - - [29/Jul/2023 18:47:51] "POST /socket.io/?EIO=4&transport=polling&t=OcYZ9nz&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -
127.0.0.1 - - [29/Jul/2023 18:47:51] "GET /socket.io/?EIO=4&transport=polling&t=OcYZ9nz.0&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -
Bob Wins This Episode
127.0.0.1 - - [29/Jul/2023 18:47:51] "POST /socket.io/?EIO=4&transport=polling&t=OcYZ9oP.0&sid=RXSNfQmY6D_oVgRKAAAA HTTP/1.1" 200 -

WELL that's working it's weird you are getting logs the script is defined to not log anything but that's working you can try python3 app.py now i guess

qrwtey commented 11 months ago

That's pretty cool! - The same 2 or 3 errors using python3 app.py. Thanks for the help so far, though the reason I was interested was because I was curious when I found it in the spicetify marketplace. So it doesn't really matter if I get it working at all. But if you need someone to test this again I'm up for it 🙂 Gotta go, have a nice weekend.

Om-Thorat commented 11 months ago

(oops sorry)

Thanks for having this amount of patience truly 😅. I'll let you know if i can replicate your problem with someone else.

Om-Thorat commented 8 months ago

Cannot repro, Closing for now.