Giter Club home page Giter Club logo

danmacu's People

Contributors

7sdream avatar belm avatar bytemain avatar eswzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

belm eswzy gincharl

danmacu's Issues

报错

如下

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装起折腾了半天也能用上了。唯一的问题是它只会显示人气和进入房间的人,发弹幕反而看不到,不知道是哪里出了错。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.