7sdream / danmacu Goto Github PK
View Code? Open in Web Editor NEW自用 Bilibili 弹幕姬 for macOS
License: Do What The F*ck You Want To Public License
自用 Bilibili 弹幕姬 for macOS
License: Do What The F*ck You Want To Public License
如下
danmacu-master python -m danmacu.main 23679661
Danmaku page: http://127.0.0.1:7777/index.html
Press Command+C to stop...
人气 = 1
Traceback (most recent call last):
File "/Users/xhz/danmacu-master/danmacu/danmaku_client.py", line 41, in __worker
for packet in Packet.parse(message):
File "/Users/xhz/danmacu-master/danmacu/packet.py", line 55, in parse
packet = cls.parse_one(message, offset)
File "/Users/xhz/danmacu-master/danmacu/packet.py", line 44, in parse_one
tag) = struct.unpack_from(">ihhii", message, offset)
struct.error: unpack_from requires a buffer of at least 36 bytes for unpacking 16 bytes at offset 20 (actual buffer size is 35)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/xhz/opt/anaconda3/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/xhz/opt/anaconda3/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/xhz/danmacu-master/danmacu/main.py", line 53, in <module>
main()
File "/Users/xhz/danmacu-master/danmacu/main.py", line 49, in main
asyncio.get_event_loop().run_until_complete(asyncio.gather(*tasks))
File "/Users/xhz/opt/anaconda3/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/xhz/danmacu-master/danmacu/server.py", line 45, in start
await asyncio.gather(super().start(), self.listen())
File "/Users/xhz/danmacu-master/danmacu/danmaku_client.py", line 92, in start
await self.__worker(self._appkey, self._secret, self._room_id)
File "/Users/xhz/danmacu-master/danmacu/danmaku_client.py", line 89, in __worker
await ws.start(self)
File "/Users/xhz/danmacu-master/danmacu/danmaku_client.py", line 64, in start
await DanmakuWebsocketClient.__worker(client, self._room)
File "/Users/xhz/danmacu-master/danmacu/danmaku_client.py", line 61, in __worker
await client.on_error(e)
File "/Users/xhz/danmacu-master/danmacu/server.py", line 79, in on_error
print(error.message)
AttributeError: 'error' object has no attribute 'message'
首先感谢大佬写的这个代码,我一个0基础的菜鸟从0装起折腾了半天也能用上了。唯一的问题是它只会显示人气和进入房间的人,发弹幕反而看不到,不知道是哪里出了错。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.