PPP icon indicating copy to clipboard operation
PPP copied to clipboard

Traceback (most recent call last): error.

Open Goldmaster opened this issue 3 years ago • 0 comments

Description

Getting this error when I try to run the script.

image

I have been able to follow everything through. such as running pip install requests, and editing the environment variables. but has made no difference.

pip version

22.0.3

Python version

3

OS

windows 11

How to Reproduce

install python 3 from windows store. download the latest zip from releases and extract. shift and right-click to open PowerShell here. type cmd type pip install requests

Click Start, search for "environment variables". Click "edit environment variables". If the top box (user variables) has one named "Path", click on it, click "Edit". A new window pops up. Click "New" and paste in "'C:\Users\USERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts". or whatever location the warning says.

In command prompt type pip install --upgrade pip just to be sure.

type python3 PPP.py and follow through as normal until the end, when you get this error.

Output

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#                     _____  _____  _____                         #
#                    |  __ \|  __ \|  __ \                        #
#                    | |__) | |__) | |__) |                       #
#                    |  ___/|  ___/|  ___/                        #
#                    | |    | |    | |                            #
#                    |_|    |_|    |_|  v3.0.6                    #
#                                                                 #
#              --- PPP Copyright (C) 2020 XDGFX ---               #
#                                                                 #
#  This program comes with ABSOLUTELY NO WARRANTY.                #
#  This is free software, and you are welcome to redistribute it  #
#  under certain conditions                                       #
#                                                                 #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #


Running PPP at 2022-02-10-15-40-15

Attempting to load existing variables...

INFO: Couldn't find existing variables... proceeding with initial setup

It looks like you haven't run this script before!
The setup process is now starting...

If you believe this is an error, please check variables.json is present, and accessible by PPP.

------

It looks like your PPP machine uses Windows paths

------

First things first... what is your Plex server URL, as seen by PPP? It must include port, in the form '192.198.1.10:32400'
Please enter your server URL: LOCALIP:32400

------

Next we need your Plex Token. You can find this by following these instructions: https://bit.ly/2p7RtOu
Please enter your Plex Token: TOKEN HERE

------

Would you like to check SSL certificates? If unsure press enter for default
Validate SSL certificate? - enabled by default (y / n):

------

Requesting playlists from Plex...
URL: http://LOCALIP:32400/playlists/?X-Plex-Token=***********
Request was successful.

------

Found 13 playlists.

------


------

Fetching sample playlist(s) to determine prepend...
Requesting playlist data from Plex...
URL: http://LOCALIP:32400/playlists/26398/items?X-Plex-Token=***********
Request was successful.

------

Found playlist: Anjunabeats/Anjunadeep.
Found 4 songs.
It looks like your Plex machine uses UNIX paths
Requesting playlist data from Plex...
URL: http://LOCALIP:32400/playlists/26396/items?X-Plex-Token=***********
Request was successful.

------

Found playlist: Black Lacquer: A Remix Project
Found 24 songs.
Plex playlists are not in PPP directory format!
Attempting to convert Plex directories to PPP machine format
Calculated Plex Prepend: \media\audio\music

------

Now we need the location of your local playlists, as seen by PPP
There is no need to escape spaces or special characters.
Please enter your local playlists directory: C:\Users\USERNAME\Downloads\Newfolder

------

Traceback (most recent call last):
  File "C:\Users\USERNAME\Downloads\PPP-3.0.6\PPP.py", line 485, in <module>
    v = setupVariables()
  File "C:\Users\USERNAME\Downloads\PPP-3.0.6\PPP.py", line 241, in setupVariables
    os.path.join(root, file), 'r', encoding='utf8').read().splitlines()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 668: invalid continuation byte

Goldmaster avatar Feb 11 '22 10:02 Goldmaster