Character set in title/artist #224
Owner
```
File "/home/kae/mm/app/playlists.py", line 418, in <lambda>
414 lambda: self._import_from_audacity(model_row_number),
415 )
416 else:
417 self._add_context_menu(
--> 418 "Open in Audacity", lambda: self._open_in_audacity(model_row_number)
419 )
..................................................
self._import_from_audacity = <method 'PlaylistTab._import_from_audacity' of <playlists.Pl
aylistTab object at 0x7f164c50c940> playlists.py:619>
model_row_number = 15
self._add_context_menu = <method 'PlaylistTab._add_context_menu' of <playlists.Playli
stTab object at 0x7f164c50c940> playlists.py:309>
self._open_in_audacity = <method 'PlaylistTab._open_in_audacity' of <playlists.Playli
stTab object at 0x7f164c50c940> playlists.py:675>
..................................................
File "/home/kae/mm/app/playlists.py", line 690, in _open_in_audacity
675 def _open_in_audacity(self, row_number: int) -> None:
(...)
686 return
687
688 escaped_path = path.replace('"', '\\"')
689 cmd = f'Import2: Filename="{escaped_path}"'
--> 690 status = self._audactity_command(cmd)
691 if status:
..................................................
self = <playlists.PlaylistTab object at 0x7f164c50c940>
row_number = 15
escaped_path = '/home/kae/music/Singles/Honey, Honey - ABBA (Björn, Benny,
Agnetha & Frida).mp3'
cmd = 'Import2: Filename="/home/kae/music/Singles/Honey, Honey - A
BBA (Björn, Benny, Agnetha & Frida).mp3"'
self._audactity_command = <method 'PlaylistTab._audactity_command' of <playlists.Playl
istTab object at 0x7f164c50c940> playlists.py:347>
..................................................
File "/home/kae/mm/app/playlists.py", line 367, in _audactity_command
347 def _audactity_command(self, cmd: str) -> bool:
(...)
363 if not self.musicmuster.audacity_client:
364 log.error("Unable to access Audacity client")
365 return False
366
--> 367 self.musicmuster.audacity_client.write(cmd, timer=True)
368
..................................................
self = <playlists.PlaylistTab object at 0x7f164c50c940>
cmd = 'Import2: Filename="/home/kae/music/Singles/Honey, Honey - A
BBA (Björn, Benny, Agnetha & Frida).mp3"'
self.musicmuster.audacity_client = <pipeclient.PipeClient object at 0x7f164c48ff90>
log.error = <method 'Logger.error' of <Logger musicmuster (DEBUG)> __ini
t__.py:1508>
self.musicmuster.audacity_client.write = <method 'PipeClient.write' of <pipeclient.PipeClient object
at 0x7f164c48ff90> pipeclient.py:171>
..................................................
File "/home/kae/mm/app/pipeclient.py", line 187, in write
171 def write(self, command, timer=False) -> None:
(...)
183 write("GetInfo: Type=Labels", timer=True):
184
185 """
186 self.timer = timer
--> 187 self._write_pipe.write(command + EOL)
188 # Check that read pipe is alive
..................................................
self = <pipeclient.PipeClient object at 0x7f164c48ff90>
command = 'Import2: Filename="/home/kae/music/Singles/Honey, Honey - A
BBA (Björn, Benny, Agnetha & Frida).mp3"'
timer = True
self.timer = True
EOL = '\n'
..................................................
---- (full traceback above) ----
File "/home/kae/mm/app/playlists.py", line 418, in <lambda>
"Open in Audacity", lambda: self._open_in_audacity(model_row_number)
File "/home/kae/mm/app/playlists.py", line 690, in _open_in_audacity
status = self._audactity_command(cmd)
File "/home/kae/mm/app/playlists.py", line 367, in _audactity_command
self.musicmuster.audacity_client.write(cmd, timer=True)
File "/home/kae/mm/app/pipeclient.py", line 187, in write
self._write_pipe.write(command + EOL)
UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 66: ordinal not in range(128)
```
bug
label
Error due to character set opening Audacity #227
Fix opening Audacity with non-ASCII file path
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?