MikeD 0 Posted February 13, 2017 Share Posted February 13, 2017 Hi! I can't figure out how to implement the switchbot by Mijago. I've followed the tutorial step by step and when logging in, it freezes at the loading bar, with the following error in syserr: 0213 14:14:20141 :: File "networkModule.py", line 231, in SetGamePhase 0213 14:14:20141 :: File "system.py", line 130, in __pack_import 0213 14:14:20141 :: File " 0213 14:14:20141 :: <string> 0213 14:14:20141 :: ", line 0213 14:14:20141 :: 2207 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: self.switchbot.Show() 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20141 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: 0213 14:14:20142 :: ^ 0213 14:14:20142 :: SyntaxError 0213 14:14:20142 :: : 0213 14:14:20142 :: invalid syntax 0213 14:14:20142 :: I've attached below the game.py, maybe I've done something wrong. http://pastebin.com/y7feB1Az Thanks for the help! Link to comment Share on other sites More sharing options...
Krekon 0 Posted February 13, 2017 Share Posted February 13, 2017 Check the line 2207 the syntax it's not good search for tab or spaces . Link to comment Share on other sites More sharing options...
MikeD 0 Posted February 13, 2017 Author Share Posted February 13, 2017 I've redone all the spaces and TABs and it still doesn't work. The error seems to be from the last line of the game.py, if I add a comment, it'll show the comment as a Syntax error. Link to comment Share on other sites More sharing options...
MikeD 0 Posted February 16, 2017 Author Share Posted February 16, 2017 UP? Link to comment Share on other sites More sharing options...
[007]DawisHU 278 Posted February 17, 2017 Share Posted February 17, 2017 Hello, ??? _shown == 1: ????? def __toggleSwitchbot(self): if self.switchbot.bot_shown == 1: self.switchbot.Hide() else: self.switchbot.Show() Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now