spaceskynet / danser-gui

A Gui Application made for DANSER.
MIT License
25 stars 0 forks source link

bug:AttributeError: 'NoneType' object has no attribute 'config' #4

Open Mddzlk686 opened 1 year ago

Mddzlk686 commented 1 year ago

2023-06-24 12:35:30,039:INFO:root:setLanguage:[GUI] Language changed to English, .qm file in: C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\langs\en-US\lang.qm 2023-06-24 12:35:32,982:INFO:root:setLanguage:[GUI] Language changed to English, .qm file in: C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\langs\en-US\lang.qm 2023-06-24 12:35:34,350:INFO:root:setLanguage:[GUI] Language changed to English, .qm file in: C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\langs\en-US\lang.qm 2023-06-24 12:35:35,574:INFO:root:setLanguage:[GUI] Language changed to 中文(简体), .qm file in: C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\langs\zh-CN\lang.qm 2023-06-24 12:35:47,036:INFO:root:songsDBUpdateEventStarted:[GUI] songsDBUpdateEvent Started 2023-06-24 12:35:47,037:INFO:root:songsDBUpdateEventFinished:[GUI] songsDBUpdateEvent Finished 2023-06-24 12:35:47,040:INFO:root:customInfo:[GUI][INFO] 首先请更新谱面数据库! 2023-06-24 12:35:47,584:INFO:root:read:[GUI][CONFIG] GUI Config is read from: E:\1\settings.toml 2023-06-24 12:35:47,584:WARNING:root:initDanserConfig:[GUI][CONFIG] Danser Config can't be found in: E:\1\settings\default.json 2023-06-24 12:35:47,671:INFO:root:init:[GUI] Current settings is updated to: {'General': {'OsuRootDir': 'C:\Program Files (x86)\osu', 'OsuSongsDir': 'C:\Program Files (x86)\osu\Songs', 'OsuSkinsDir': 'C:\Program Files (x86)\osu\Skins', 'DanserRootDir': 'E:\1', 'DanserMode': 'danser', 'IsRecord': False, 'SongsDBMode': 'osu!', 'OsuApi': '', 'Language': 'zh-CN'}, 'Graphics': {'Fullscreen': False, 'Width': 1280, 'Height': 720, 'VSync': False, 'MSAA': 0, 'FPSCap': 0, 'ShowFPS': True}, 'Knockout': {'Mode': 0, 'GraceEndTime': -10.0, 'ExcludeMods': '', 'HideMods': '', 'MaxPlayers': 50, 'BubbleMinimumCombo': 200, 'RevivePlayersAtEnd': False, 'LiveSort': True, 'SortBy': 'Score', 'HideOverlayOnBreaks': False, 'MinCursorSize': 0.5, 'MaxCursorSize': 2, 'AddDanser': False, 'DanserName': 'danser-gui', 'DateFormat': 0}, 'Recording': {'FrameWidth': 1920, 'FrameHeight': 1080, 'FPS': 120, 'Encoder': 'cpu', 'MotionBlur': False, 'OutputPath': 'Videos', 'OutputName': '{Player} - {Artist}[{Creator}] - {MapTitle}[{Difficulty}].mp4', 'LocalAudioOffset': 0, 'EncoderConfig': {'VideoCodec': 'libx264', 'EncoderOptions': '-crf 21 -g 450', 'Preset': 'faster', 'AudioCodec': 'aac', 'AudioOptions': '-b:a 192k'}}, 'Audio': {'GlobalVolume': 100, 'MusicVolume': 100, 'HitSoundVolume': 100}, 'Input': {'LeftKey': 'Z', 'RightKey': 'X', 'RestartKey': '`', 'SmokeKey': 'C', 'MouseButtonsDisabled': True}, 'Gameplay': {'PlayUsername': 'danser-gui', 'HitErrorMeter': {'Show': True, 'ShowUnstableRate': True}, 'Score': {'Show': True}, 'HpBar': {'Show': True}, 'ComboCounter': {'Show': True}, 'PPCounter': {'Show': True, 'UseLazerPP': False}, 'StrainGraph': {'Show': True}, 'KeyOverlay': {'Show': True}, 'ScoreBoard': {'Show': True, 'HideOthers': True, 'ShowAvatars': False, 'ModsOnly': False}, 'HitCounter': {'Show': True}, 'AimErrorMeter': {'Show': True}, 'Boundaries': {'Show': True}, 'Mods': {'Show': True, 'HideInReplays': False, 'FoldInReplays': False}, 'ResultsScreen': {'Show': True, 'Time': 5, 'UseLocalTimeZone': True}}, 'Skin': {'CurrentSkin': '', 'UseSkinColors': True, 'UseBeatmapColors': True, 'UseSkinCursor': True, 'UseSkinHitsounds': False}, 'Cursor': {'ScaleToCS': False, 'CursorRainbow': False, 'CursorTrailGlow': False, 'CursorSize': 1, 'CursorRipples': True, 'ForceLongTrail': False, 'LongTrailDensity': 0, 'LongTrailLength': 0}, 'Objects': {'DrawFollowPoints': True, 'DrawComboNumbers': True, 'ScaleToTheBeat': False, 'SliderMerge': False, 'Rainbow': False, 'FlashToTheBeat': False, 'UseHitCircleColor': True, 'SliderSnakingIn': True, 'SliderSnakingOut': True}, 'Playfield': {'SeizureWarning': False, 'LoadStoryboard': True, 'LoadVideo': True, 'IntroBGDim': 0, 'InGameBGDim': 80, 'BreakBGDim': 50, 'BGParallax': False, 'ShowDanserLogo': True, 'QuickStart': False, 'SkipIntro': False}} 2023-06-24 12:35:47,675:INFO:root:setLanguage:[GUI] Language changed to 中文(简体), *.qm file in: E:\1\langs\zh-CN\lang.qm 2023-06-24 12:35:48,669:INFO:root:write:[GUI][CONFIG] GUI Config is written to: E:\1\settings.toml 2023-06-24 12:35:48,669:INFO:root:syncGuiConfigWithMainWindow:[GUI] sync GuiConfig With MainWindow Done! 2023-06-24 12:36:12,848:INFO:root:write:[GUI][CONFIG] GUI Config is written to: E:\1\settings.toml 2023-06-24 12:36:12,848:INFO:root:syncGuiConfigWithMainWindow:[GUI] sync GuiConfig With MainWindow Done! 2023-06-24 12:36:13,489:INFO:root:write:[GUI][CONFIG] GUI Config is written to: E:\1\settings.toml 2023-06-24 12:36:13,489:INFO:root:syncGuiConfigWithMainWindow:[GUI] sync GuiConfig With MainWindow Done! 2023-06-24 12:36:14,514:INFO:root:write:[GUI][CONFIG] GUI Config is written to: E:\1\settings.toml 2023-06-24 12:36:14,514:INFO:root:syncGuiConfigWithMainWindow:[GUI] sync GuiConfig With MainWindow Done! 2023-06-24 12:36:15,145:INFO:root:customWarning:[GUI][WARNING] 无法找到 Danser 的设置文件,请确认 Danser 根目录是否正确并更新谱面数据库! 2023-06-24 12:36:17,095:INFO:root:danserModeSettingCheck:[GUI] Auto chosen osr file: C:\Program Files (x86)\osu\Replays\Mddzlh - Hige Driver - Miracle Sugite Yabai (feat. shully) [Easy] (2023-06-18) Osu.osr 2023-06-24 12:36:17,105:INFO:root:customError:[GUI][ERROR] 首先请更新谱面数据库! 2023-06-24 12:36:17,829:INFO:root:write:[GUI][CONFIG] GUI Config is written to: E:\1\settings.toml 2023-06-24 12:36:17,829:INFO:root:syncGuiConfigWithMainWindow:[GUI] sync GuiConfig With MainWindow Done! 2023-06-24 12:36:17,832:INFO:root:customError:[GUI][ERROR] Traceback (most recent call last): File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 154, in File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 598, in danserModeSettingCheck File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 252, in checkSongsDBIsExists File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 733, in songsDBUpdateEvent File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 524, in syncDanserConfigWithGuiConfig File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\utils\config.py", line 56, in sync AttributeError: 'NoneType' object has no attribute 'config'

2023-06-24 12:36:19,428:INFO:root:customError:[GUI][ERROR] Traceback (most recent call last): File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 154, in File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 598, in danserModeSettingCheck File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 252, in checkSongsDBIsExists File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 733, in songsDBUpdateEvent File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\ui\gui.py", line 524, in syncDanserConfigWithGuiConfig File "C:\Users\ADMINI~1\AppData\Local\Temp\ONEFIL~3\utils\config.py", line 56, in sync AttributeError: 'NoneType' object has no attribute 'config'