+ 1
Please, help me with this code 😥 [Solved]
Hello Coders, I'm having a problem. I passed this code to Python 3.x and it won't work, please help me fix it! It is a multy_file, please take a look. and download them at the same folder. https://code.sololearn.com/c2EeM64ikk0J/#py Error is rasing in the first file: File ".\PyHero.py", line 681, in <module> menu.main_loop() File ".\PyHero.py", line 573, in main_loop self.handle_events() File ".\PyHero.py", line 655, in handle_events game = GameMain('topgun(easy).chart') File ".\PyHero.py", line 338, in __init__ song.load_chart()
8 odpowiedzi
+ 6
This is a very common issue in python scripts written in version 2.
I suggest using this command line tool "2to3" to help change your old python scripts to run with python3 interpreter.
This documentation is very helpful
https://docs.python.org/2/library/2to3.html
+ 4
⚡🔥 😎 Baby Hater 🔥⚡
Here's some for Linux machines.
https://stackoverflow.com/questions/31228927/how-to-use-install-JUMP_LINK__&&__python__&&__JUMP_LINK-2to3
+ 2
⚡🔥 😎 Baby Hater 🔥⚡ In sololearn modules like pygame,pyttsx3 dont work as it doesnt support installing libraries.
Run this in pydroid3 app by installing libraries required for it.
There is no error in your program
Hope it helped
0
Varun N
Just... It don't helps.
Try it in pydroid
0
I mean app named pydroid 3
0
⚡🔥 😎 Baby Hater 🔥⚡ here is the link
https://play.google.com/store/apps/details?id=ru.iiec.pydroid3
and for installing libraries use this app it stores libraries in it ,you have to install and use it.
0
Morpheus
Do you know how to install it?
I can't find any information
0
Morpheus
The problem was that I don't have an xbox controller 😄
Thanks you and god bless you.