MXWXZ / sjtu-automata

上海交通大学抢课脚本(2020临时版本更新)
GNU General Public License v3.0
153 stars 40 forks source link

如果所选课程与已选课程时间冲突,python会崩溃 #14

Closed shxuy closed 3 years ago

shxuy commented 3 years ago

OS: macOS Catalina 10.15.7 Python: 3.8.2

报错信息(已抹去无关的个人隐私): [Info] Login successful! [Info] Starting thread... [Info] Task running! Input "s" to view status. [(我想选的课程ID)] Time conflict! Stopped.

[Info] All task finished! Fatal Python error: could not acquire lock for <_io.BufferedReader name=''> at interpreter shutdown, possibly due to daemon threads Python runtime state: finalizing (tstate=0x7f9166c0a8a0)

Thread 0x0000700008c49000 (most recent call first): File "/Users/(我的用户名)/IdeaProjects/sjtu-automata/sjtu_automata/autoelect.py", line 121 in get_input File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 870 in run File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932 in _bootstrap_inner File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x000000010c53adc0 (most recent call first):

不管反正这是个无伤大雅的小问题,崩了就崩了吧 :D
shxuy commented 3 years ago

抱歉,刚才的报错是由于我在PyCharm里跑代码引发的。如果用macOS命令行,就没有上述问题。