3096 / genshin_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: __init__() got an unexpected keyword argument

Technicolor781 opened this issue · comments

Hello,I ran into this error when I press tab 1 in game,and I've tried out on both my two laptops but both the same error reported,it would be nice if you can help me out the problem

PS C:\Windows\system32> cd C:\Users\MECHREVO\Desktop\genshin_scripts-main
PS C:\Users\MECHREVO\Desktop\genshin_scripts-main> pip install pynput mido
Collecting pynput
Downloading pynput-1.7.3-py2.py3-none-any.whl (99 kB)
|████████████████████████████████| 99 kB 223 kB/s
Collecting mido
Downloading mido-1.2.9-py2.py3-none-any.whl (52 kB)
|████████████████████████████████| 52 kB 990 kB/s
Collecting six
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, pynput, mido
Successfully installed mido-1.2.9 pynput-1.7.3 six-1.15.0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'C:\Users\MECHREVO\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
PS C:\Users\MECHREVO\Desktop\genshin_scripts-main> python midi.py

Lyre Midi Player
Copyright (C) 2021  3096

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see <http://www.gnu.org/licenses/>.

1 - everglow.mid
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
file not found: put the path to your midi file here
loaded 1 songs from config!
loading everglow.mid
auto root found root at 40 with 2064/2122 (0.9726672950047125)
start playing
Task exception was never retrieved
future: <Task finished name='Task-1' coro=<LyrePlayer.play() done, defined at C:\Users\MECHREVO\Desktop\genshin_scripts-main\midi.py:167> exception=TypeError("init() got an unexpected keyword argument 'type'")>
Traceback (most recent call last):
File "C:\Users\MECHREVO\Desktop\genshin_scripts-main\midi.py", line 192, in play
for msg in mid:
File "C:\Users\MECHREVO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mido\midifiles\midifiles.py", line 376, in iter
for msg in merge_tracks(self.tracks):
File "C:\Users\MECHREVO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mido\midifiles\tracks.py", line 104, in merge_tracks
messages.extend(_to_abstime(track))
File "C:\Users\MECHREVO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mido\midifiles\tracks.py", line 62, in _to_abstime
yield msg.copy(time=now)
File "C:\Users\MECHREVO\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mido\midifiles\meta.py", line 507, in copy
return self.class(**attrs)
TypeError: init() got an unexpected keyword argument 'type'