so i wanted to run this program but there was no guide on how to use it and am new to python so i hope someone helps me how to use it lol
(btw this is the code)
https://github.com/techtribeyt/piano-tiles/blob/main/code.py
485 messages ยท Page 1 of 1 (latest)
so i wanted to run this program but there was no guide on how to use it and am new to python so i hope someone helps me how to use it lol
(btw this is the code)
https://github.com/techtribeyt/piano-tiles/blob/main/code.py
@proper sleet
Remember to:
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
when i run the program and press on start_button which is P it gives me the error
what did you name the file?
its named code.py well it was allready named that when i downloaded the code
here the video btw where i got the code from
https://www.youtube.com/watch?v=H-LeGwMQtEc&t
I program a Python bot that plays Piano Tiles and its skill shocks me! I tried this program on a piano tiles application as well as two websites, and it performed very well on all of them โก
Code Bullet made a similar video years ago, and I wanted to see if I had what it takes to match his godly skills. I built a Piano Tiles AI that can play bot...
@proper sleet Did you name your directory the same name as one of the modules the script uses?
wdym? (sorry if i dont know this am new to python)
That's the file name
yea
It's not a Python thing per se, it's more of a computer thing.
Do you know what a folder/directory is?
What is the name of the folder the script is in?
okay
u shouldnt be coding in the downloads folder
there are probably more files there
that are interfering with ur code
oh
yes
hmm
did u move it?
how did you install python? how did you install pyautogui?
pip install pyautogui
in python cmd
can you run py -0 in cmd
also
can u open command prompt in ur folder
and type
tree /a
and send the output
give me a min
this is going to take a while
this is so long D:
๐ญ this is too long
the heck?
What's too long?
Are you doing it from inside the folder you created?
oh
doesnt look like it from that last img
๐
oh
u didnt move the code file?
here
but it isnt shown in the img
let me try again
so i go to my folder that i saved my code.py
i right click and press on cmd
then i typed in tree /a
yes
now try running
๐
it stoped
error?
again same error :(
Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.
A full traceback could look like:
Traceback (most recent call last):
File "my_file.py", line 5, in <module>
add_three("6")
File "my_file.py", line 2, in add_three
a = num + 3
~~~~^~~
TypeError: can only concatenate str (not "int") to str
If the traceback is long, use our pastebin.
in ur terminal
Why are you running it in visual studio code?
I just thought you were trying to run the script from the terminal.
Maybe I misunderstood.
done
now run with that
okokok
vscode should have opened
the MS version of python
haha
is known to cause issues at time
o h
i'd uninstall that and reinstall from python.org
so unistall vsc?
avg ms experience
oh okokok
and download from
ooh
okokok
umm
where the unistall button?
i went on the ms store and there no unistall button
It's in add/remove programs
preferably
oki
DONE
now install the python from website
ok now it doing it
now i wait :)
and then after that test the program and see if it works
man python takes long :)
long to?
i think
pip install it
now do it again.
oki
that just closed my cmd
wait
lemmy try again
ok now it works
i just typed in python then exit() then pip install
thats super werid
How is that weird?
well you have to go to cmd then type in python
You ran the REPL, exited, then ran a command in t he prompt
then exit out of python
no you don't need to do that
oh
you just need to do pip install whatever
nobody told you to do python then exit() then pip install
you had to exit() because you were already in python - sockyeh just told you how to get out of there
oh
ok i downloaded
pip install pyautogui
pip install keyboard
pip install pywin32
do i need to restart my pc or i can run the code.py from there?
no need to restart
okok
oh
i need 2 more modules
give me a sec
ok now let me try
ah
am confused it still giving me error
what the hell
๐ญ
can you run py -0p in the terminal
ok
can u run pip install PyAutoGUI -U --force-reinstall
yea??
you installed python from the MS store?
again?
this is telling us that its running python from the ms store
HUH
i just unistalled it
:p
๐
restart your pc
that was quick
go to settings > apps > search for python
hmm
you'll want to uninstall the first one from that list
okokok
the one with the blue borders
@mellow flower
might be PAG not working fine in 3.12, since i venv'd and tried it out on 3.11
thats what i thought as well
was getting there lol
yes :)
cuz in 2 months am doing python coding lessons in my tafe :)
and if i got any errors cuz of some silly ms store bug
๐ญ
i would fail
OK ๐จ
try installing py 3.11 ๐
yes, my virus handle is @solid nacelle
i have personal info
oh wait...
^
^
python is cool
yis
but silly if idk what to download ๐ญ
40%
50%
man this is taking some time
#1216253745726226512 message <- well you said you uninstalled it here
but it turns out you didn't uninstall it
so that's why its taking so long
idk when i install a program like msi after buner it takes a while
dont worry it gets there
ok uh
๐
my pc crashed
dont worry back on to installing it
๐
okok its back where it was fewwww
hey can i just tell you somthing
(i have autism so i might have trouble understanding things)
hope you understand guys
almost there
:)
the setup is done
brb then we can get started again
3.11.x?
okay, run py -0
okok
okokok
done
cool, py -0
okok
run it?
oh
i got to select interpreter
okokok done
plz work ๐จ
AHHHHHH got to install all of the modules :3
ok
lets try this again
AH
ama reinstall pyautogui
what the hell?
i really have no clue, it works fine for me locally
for the sake of it, run where python
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
Could u show whats inside of the pycache folder
okokok
is it still not working?
do you have the piano window open?
bad code?
i think the rename probably fixed things
pdb seemed to also be importing code.py which cause a circular import, imo
now
for the big thing
how do i use the program ๐ญ
its not working when i press P
what do you mean not working?
am on a piano title game on the website
and when i press P nothing happens
like in this video
https://www.youtube.com/watch?v=H-LeGwMQtEc&t
he pressed space to get a window to open
I program a Python bot that plays Piano Tiles and its skill shocks me! I tried this program on a piano tiles application as well as two websites, and it performed very well on all of them โก
Code Bullet made a similar video years ago, and I wanted to see if I had what it takes to match his godly skills. I built a Piano Tiles AI that can play bot...
but when i pressed space on top and bottom a window dose not pop up :(
or if not space then p but i dont understand ๐ญ
oh
can you show me at less how to run it ๐ญ
first press p over top left corner of first square, then bottom right corner and wait
!d code
Source code: Lib/code.py
The code module provides facilities to implement read-eval-print loops in Python. Two classes and convenience functions are included which can be used to build applications which provide an interactive interpreter prompt.
this was the issue the entire time
oh
how long to wait?
no clue
oh okok
ama try it now
bruh
it didnt even click the notes ๐ญ
it did but could not ๐ญ
wow
like i said, not very good
sad
ยฏ_(ใ)_/ยฏ
cloning the repo and trying it locally instantly lit up the entire damn thing
told me right away the issue
note to self, dont name the file smth generic
hey wait
note to self, just clone the damn repo
woo
same
i really apreshiate it :)

You close it by typing !close on a blank line
!close
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.