+ 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()

14th Jul 2020, 1:21 PM
⚡🔥 😎 Baby Hater 🔥⚡
⚡🔥 😎 Baby Hater 🔥⚡ - avatar
8 Respuestas
+ 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
14th Jul 2020, 1:36 PM
Morpheus
Morpheus - avatar
+ 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
14th Jul 2020, 1:32 PM
Varun N
Varun N - avatar
0
Varun N Just... It don't helps. Try it in pydroid
14th Jul 2020, 1:33 PM
⚡🔥 😎 Baby Hater 🔥⚡
⚡🔥 😎 Baby Hater 🔥⚡ - avatar
0
I mean app named pydroid 3
14th Jul 2020, 1:34 PM
Varun N
Varun N - avatar
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.
14th Jul 2020, 1:34 PM
Varun N
Varun N - avatar
0
Morpheus Do you know how to install it? I can't find any information
14th Jul 2020, 3:00 PM
⚡🔥 😎 Baby Hater 🔥⚡
⚡🔥 😎 Baby Hater 🔥⚡ - avatar
0
Morpheus The problem was that I don't have an xbox controller 😄 Thanks you and god bless you.
14th Jul 2020, 3:50 PM
⚡🔥 😎 Baby Hater 🔥⚡
⚡🔥 😎 Baby Hater 🔥⚡ - avatar