Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback (most recent call last): error. #37

Open
Goldmaster opened this issue Feb 11, 2022 · 0 comments
Open

Traceback (most recent call last): error. #37

Goldmaster opened this issue Feb 11, 2022 · 0 comments

Comments

@Goldmaster
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant