#🔒 Environment variables are gone... with the app also
349 messages · Page 1 of 1 (latest)
@zenith geyser
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
expand.
Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
Explain what you expect to happen and what actually happens.
is this python related?
#python-discussion message this is not python related
Lol bruh
awawawaa
alright
yes
didn't he just say it's not?
one thing at the time
can you run py -0
two ones lemme yes
after the rename, what did you do
i changed the val in the registry and relogged in
-V:3.13 * Python 3.13 (64-bit)
-V:3.12 Python 3.12 (64-bit)
and it was the correct id, like i talked about?
yes?
explain how you did it so i know
lemme find my screenshot or nvm
i navigated to the path
found ProfileImagePath
found the one with the old path
and renamed the old val to the new one
thats it
then i just relogged back in
what is the current user folder name
Uzivatel
and share a screenshot of the registry change
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\<User SID>\
its gonan take a while to naviagte the-
nvm
heres the path changed
im a competent child
open your terminal
done
the new black powershell
scoop straship and firacode are all gone
write: echo $env:PATH
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
lets make it more readable, hold on
!e
s =
"""
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
"""
print(s.replace(";"), "\n")
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | """
003 | ^^^
004 | SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 274-275: truncated \UXXXXXXXX escape
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
!e
s =
r"""
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
"""
print(s.replace(";"), "\n")
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 5, in <module>
003 | print(s.replace(";"), "\n")
004 | ^^^^^^^^^^^^^^
005 | TypeError: replace expected at least 2 arguments, got 1
!e
s =
"""
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
"""
print(s.replace(";", "\n")
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 2
002 | """
003 | ^^^
004 | SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 274-275: truncated \UXXXXXXXX escape
!e
s =
r"""
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
"""
print(s.replace(";", "\n")
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 5
002 | print(s.replace(";", "\n")
003 | ^
004 | SyntaxError: '(' was never closed
!e
s =
r"""
C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Tesseract-OCR;C:\Program Files\Git\cmd;C:\Program Files\dotnet;C:\Program Files\PowerShell\7;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\scoop\shims;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python312;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Python\Python313;C:\Users\Uživatel.cargo\bin;C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin;C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin;C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe;C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts;C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code;C:\Users\Uzivatel.dotnet\tools
"""
print(s.replace(";", "\n"))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 |
002 | C:\Program Files\PowerShell\7
003 | C:\Windows\system32
004 | C:\Windows
005 | C:\Windows\System32\Wbem
006 | C:\Windows\System32\WindowsPowerShell\v1.0\
007 | C:\Windows\System32\OpenSSH\
008 | C:\Program Files\Tesseract-OCR
009 | C:\Program Files\Git\cmd
010 | C:\Program Files\dotnet\
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/SPJTBJHPMXVS3NNRHP7QPDGFCU
YEEEEPEEEPPEPE
C:\Program Files\PowerShell\7
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\Program Files\Tesseract-OCR
C:\Program Files\Git\cmd
C:\Program Files\dotnet\
C:\Program Files\PowerShell\7\
C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\Scripts\
C:\Users\Uzivatel\AppData\Local\Programs\Python\Python312\
C:\Users\Uživatel\scoop\shims
C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\Scripts\
C:\Users\Uživatel\AppData\Local\Programs\Python\Python312\
C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\Scripts\
C:\Users\Uživatel\AppData\Local\Programs\Python\Python313\
C:\Users\Uživatel\.cargo\bin
C:\Users\Uzivatel\AppData\Local\Microsoft\WindowsApps
C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code\bin
C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code Insiders\bin
C:\Users\Uživatel\AppData\Local\Programs\Julia-1.10.3\bin
C:\Program Files (x86)\Steam\steamapps\common\Geometry Dash\GeometryDash.exe
C:\Users\Uživatel\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts
C:\Users\Uživatel\AppData\Local\Programs\Microsoft VS Code
C:\Users\Uzivatel\.dotnet\tools
MS python?
5 tries
ahh.. windows 10... ill share where
open system settings
i found the button
ahh.. i found a shortcut
im in the var env
.bm
ive worked with this a thousand times before
there are two groups of environments
you hav eto change the user one, as the system varibles does not use your username
make sense?
yes
they are marked as User variable for %n
man ive done this a couple times but ok
inside user variables, there are siggle elements, and groups of elements
you have to go into every one and see if they have your old username
fixing the ž
yes thats one
PATH is also one, but it has many
let me share two examples, just so we are 100% things are beeing done correctly
example of a single change... doubleclick and change the username
group of variables..
you have to find and change everyone, and remember to press ok so you get changes folloowed by apply on the system properties window
ok i changed everything back to the new user
theres no apply button for me, just ok but it works
look at this as well
this is my system variables
ahhh man
notice that i have my user there, now thats wrong, but you see google did not care
so you must check that as well
ok lemme see if stuff starts to work
and restart computer
ofc ofc
when your done
ok done
now one last (?) thing, how do i download scoop or lemme chekc if it
its not on path
i already got scoop :P
hmm
ahhaah lol
scoop does not work?
i redownloaded it
yea
starship runs ?
kinda?
PS C:\Users\Uzivatel> starship
Shim: Could not determine if target is a GUI app. Assuming console.
Shim: Could not create process with command '"C:\Users\U
same thing with bat
S:
now reset all
but we didnt scoop it
scoop list
for module in scoop.list():
module.reset()
yes... you can write this as a shell loop, but explaining that takes far longer then you just doing that for the 3-4 scoop installs
this is my list, and only the first page 😄
as you might imagine, i use a shell for loop to reset my scoop installs
background so beatiful
let me know when all has been reset
alr done
go to settings and selcte another and back to the firecode one
theres no fira fonts to choose from
yes
you'll want the nerd fira fonts.
why?
and who the hell asked you meanie~
starship requires them.
stop this
ah, well. good luck then.
@jagged ore is beeing helpful
:(
its not your place to lash out to people @zenith geyser
sorry
it's literally a pre-requisite.
i cant stop being mean waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
i messed this up yesterday
so i broke his computer
and then i went to play PoE the whole evening
amazing moderator
im just fixing it back!
would recommend
i installed starship on a parallels wins VM last night so it's pretty fresh for me
PoE?
and i have a different way to handle starship and fonts then other people @jagged ore
i use scoop
and scoop broke
scoop is nice, but choco is better imo
scoop icecream AND NOW CHOCO?????
i find that scoop works so well on windows PATH issues so i like it more
all flavors 😄
vanilla????
choco does the same thing iirc, but anyways, offtrack
Path of Excile
@zenith geyser did you run this?
yes i reinstalled it and font works
great! restart the terminal, show screenshot
lets test a thing
he is very knowledgable, and you must remember that people are only trying to use their free time to help you
like you
notice free time, we do this because we want to
yesterday you spent over an hour and a half
navigate there
and write this
git clone [email protected]:eivl/endpoint_filter.git
it is one of my projects
its very small
and once git clone is done, do cd endpoint_filter to go into that folder
and you will see starship changing your terminal
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
3:
im sorry krrt
i should behave
looks like you're using ssh based login
ermm.. i gave you the wrong link
git clone https://github.com/eivl/endpoint_filter.git
🤯
ah, or eivl's project is private
nah.. i just copied my ssh link instead
done
its open source
are humans open src?
some are
rookie mistake 😄
i dont like how bare cd changes back to home, because i cant see the dir on the cmd
this is one of the reasons i've been relying on the gh cli more and more
you can see the dir
gh repo clone KRRT7/my-best-repo less room for error
you mean full dir?
is it important?
for me it is
pwd shows you it
whole point of directories and the terminal
lets fix that
now put that in front of my cursor
starship uses a toml file to handle configuarions
we have to make that file, tell windows where it is, and add your wanted changes to it
sounds good?
ok
mkdir -p ~/.config && touch ~/.config/starship.toml
run this command
cd ~/.config
and then this
ls to see your file
isn't he on wins?
in which dir?
that's gonna fail
im on windows
im sure it will work
alr exists
works
now uhhhhh
now ls to see the file
i see the file
is it 0 in size or does it has some size?
alright.. lets populate it with a standard config
# C:\Users\Uzivatel\scoop\apps\scoop\current\bin\scoop.ps1
$path = Join-Path $PSScriptRoot "..\apps\scoop\current\bin\scoop.ps1"
if ($MyInvocation.ExpectingInput) { $input | & $path @args } else { & $path @args }
exit $LASTEXITCODE
this is inside
is this starship.toml?
i did not say scoop anywhere
touch starship.toml
run this from the .config folder please
starship preset nerd-font-symbols -o starship.toml
run this
@jagged ore do you know the preset for starship SHOW PATH HERE ?
start .\ changes my life forever
no, i had to use a custom path for starship yesterday due to similar issues
ill have to edit my own and test a few things @zenith geyser
you should stop getting ahead of yourself and doing random things, it'll only cause problems.
opening file explorer in cwd is pretty useful imo
just touching start hopefully wont blow up anything
code . is also useful
same this but vs code
@narrow dagger looks like i used the STARSHIP_CONFIG env variable and just manually set the path, in my case, C:\Users\krrt7\Documents\starship_config.toml with the jetpack preset within the toml
yeah kinda
mine looks like this
from starship.toml
find directory
[directory]
read_only = " "
truncation_length = 8
truncation_symbol = '…/'
~ means your home folder
i know
try this a bit would you? there are some limitations to what starship can do in powershell you see
mmmm
it just has a bunch of
chars for languages
[directory]
read_only = " "
found it
ok
yeah, thats the one
i pasted it in
here is the config for starship
it has a lot of options
here is the default format for the prompt
this as an example
its when i add a format line that looks like this
that might be close to what you like
cool
yeah i know, starship is amazing
you all are amazing
have a great weekend @zenith geyser let me know if you want help with anything else! 😄
u2
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
