lyyyuna / bilibili_danmu

B 站直播弹幕姬 Python 版
236 stars 47 forks source link

Syntax Error #1

Closed nicholascw closed 8 years ago

nicholascw commented 8 years ago

Error message:

_Traceback (most recent call last): File "./main.py", line 2, in from bilibiliClient import bilibiliClient File "/home/nicholas/bilibilidanmu/bilibiliClient.py", line 26 async def connectServer(self): ^ SyntaxError: invalid syntax

Using Kali Linux 2.0 with Python 3.5.1 together with pip 8.1.1

lyyyuna commented 8 years ago

Hi, @wck963 As 'async' is the keyword of Python 3.5, it should not raise syntax error. Can you double confirm that you have used the right version of Python?

nicholascw commented 8 years ago

It is okay now, I formerly used a 3.4 python and got a syntax error. So I chose to update to 3.5.1.....but it was still wrong... after I restarted my computer this morning it works

lyyyuna commented 8 years ago

@wck963 :)