Code Monkey home page Code Monkey logo

Comments (3)

iomz avatar iomz commented on June 9, 2024

For example,

  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/client.py", line 229, in record
    await self.stop()
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 505, in stop
    await self.vibrate(VibrationType.SHORT)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 544, in vibrate
    await self.m.vibrate(self._client, vibration_type)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 213, in vibrate
    await self.command(client, Vibrate(vibration_type))
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 146, in command
    await client.write_gatt_char(Handle.COMMAND.value, cmd.data, True)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/__init__.py", line 659, in write_gatt_char
    await self._backend.write_gatt_char(char_specifier, data, response)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/client.py", line 325, in write_gatt_char
    characteristic = self.services.get_characteristic(char_specifier)
AttributeError: 'NoneType' object has no attribute 'get_characteristic'

from dl-myo.

iomz avatar iomz commented on June 9, 2024

Looks like this happens when self.stop() and to vibrate...

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/__init__.py", line 369, in entrypoint
    asyncio.run(args.command(args))
  File "/Users/iomz/.asdf/installs/python/3.10.11/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Users/iomz/.asdf/installs/python/3.10.11/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/command.py", line 86, in calibrate
    await cls.record(args)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/command.py", line 103, in record
    await rc.record(args)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/client.py", line 261, in record
    await self.stop()
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 505, in stop
    await self.vibrate(VibrationType.SHORT)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 545, in vibrate
    await self.m.vibrate(self._client, vibration_type)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 213, in vibrate
    await self.command(client, Vibrate(vibration_type))
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 146, in command
    await client.write_gatt_char(Handle.COMMAND.value, cmd.data, True)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/__init__.py", line 659, in write_gatt_char
    await self._backend.write_gatt_char(char_specifier, data, response)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/client.py", line 325, in write_gatt_char
    characteristic = self.services.get_characteristic(char_specifier)
AttributeError: 'NoneType' object has no attribute 'get_characteristic'

from dl-myo.

iomz avatar iomz commented on June 9, 2024

Observed a different case, but still vibrate

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/__init__.py", line 369, in entrypoint
    asyncio.run(args.command(args))
  File "/Users/iomz/.asdf/installs/python/3.10.11/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Users/iomz/.asdf/installs/python/3.10.11/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/command.py", line 86, in calibrate
    await cls.record(args)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/command.py", line 103, in record
    await rc.record(args)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/client.py", line 248, in record
    await start_countdown(
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/src/myoktros/client.py", line 358, in start_countdown
    await vibrate(VibrationType.SHORT)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 548, in vibrate
    await self.m.vibrate(self._client, vibration_type)
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 213, in vibrate
    await self.command(client, Vibrate(vibration_type))
  File "/Users/iomz/ghq/github.com/iomz/dl-myo/myo/core.py", line 146, in command
    await client.write_gatt_char(Handle.COMMAND.value, cmd.data, True)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/__init__.py", line 659, in write_gatt_char
    await self._backend.write_gatt_char(char_specifier, data, response)
  File "/Users/iomz/ghq/github.com/Interactions-HSG/MyoKTROS/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/client.py", line 325, in write_gatt_char
    characteristic = self.services.get_characteristic(char_specifier)
AttributeError: 'NoneType' object has no attribute 'get_characteristic'

from dl-myo.

Related Issues (8)

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.