Giter Site home page Giter Site logo

Comments (6)

Tigge avatar Tigge commented on July 17, 2024

I recently removed the Python 2.7 support since it has reached end of life at the end of last year. Please try with Python 3.6 or above.

from antfs-cli.

L150 avatar L150 commented on July 17, 2024

Right, I should have tried Python 3 of course. The installation worked fine. Thx!

But now I get another message when I try to pair my 910xt.
Of course there is something I have missed, could you help me with this one as well?


Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

  • Using: <class 'ant.base.driver.USB2Driver'>
    Request basic information...
    Capabilities: array('B', [8, 3, 0, 186, 54, 0])
    Starting system...
    Key done...
    Searching...
    Exception in thread ant.base:
    Traceback (most recent call last):
    File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
    File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    File "/usr/local/lib/python3.8/dist-packages/ant/base/ant.py", line 180, in _worker
    and message.data[1] == 0x01
    AttributeError: 'Message' object has no attribute 'data'
    Traceback (most recent call last):
    File "/usr/local/lib/python3.8/dist-packages/antfs_cli-0.4-py3.8.egg/antfs_cli/program.py", line 384, in main
    g.start()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 223, in start
    self._main()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 150, in _main
    if self.on_link(beacon):
    File "/usr/local/lib/python3.8/dist-packages/antfs_cli-0.4-py3.8.egg/antfs_cli/program.py", line 167, in on_link
    self.link()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 383, in link
    self._send_command(LinkCommand(self._frequency, 4, self._serial_number))
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 199, in _send_command
    self._channel.send_acknowledged_data(data)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/channel.py", line 119, in send_acknowledged_data
    self.wait_for_event([Message.Code.EVENT_TRANSFER_TX_COMPLETED])
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/channel.py", line 50, in wait_for_event
    return wait_for_event(ok_codes, self._node._events, self._node._event_cond)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/filter.py", line 73, in wait_for_event
    return wait_for_message(match, process, queue, condition)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/filter.py", line 62, in wait_for_message
    raise AntException("Timed out while waiting for message")
    ant.easy.exception.AntException: Timed out while waiting for message
    Interrupted: Timed out while waiting for message

from antfs-cli.

Tigge avatar Tigge commented on July 17, 2024

I just merged a pull request to openant which might have fixed this. Could you try installing again? If not it should be possible to use openant commit ae9e7366fb78b2c39467e1a028b34cfb0c64ffd7.

from antfs-cli.

bluebaer7 avatar bluebaer7 commented on July 17, 2024

installed the update on pi3b+ and got follow error:

**

pi@pi:~/garmin/antfs-cli $ antfs-cli Traceback (most recent call last): File "/usr/local/bin/antfs-cli", line 11, in <module> load_entry_point('antfs-cli==0.4', 'console_scripts', 'antfs-cli')() File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 561, in load_entry_point File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2631, in load_entry_point File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2291, in load File "build/bdist.linux-armv7l/egg/pkg_resources/__init__.py", line 2297, in resolve File "/usr/local/lib/python2.7/dist-packages/antfs_cli-0.4-py2.7.egg/antfs_cli/program.py", line 181 print(" - Passkey:", end=" ") ^ SyntaxError: invalid syntax

**

from antfs-cli.

L150 avatar L150 commented on July 17, 2024

Hi, have reinstalled both Kali and Python3. Get this Timed Out message.
Looks like it finds the USB when running lsusb, but I'm thinking about a faulty Ant stick...?
Any opinions?
Perhaps using USB3 driver?

──(anon㉿kali)-[~]
└─$ antfs-cli --pair
Driver available: [<class 'ant.base.driver.USB2Driver'>, <class 'ant.base.driver.USB3Driver'>]

  • Using: <class 'ant.base.driver.USB2Driver'>
    Request basic information...
    Capabilities: array('B', [8, 3, 0, 186, 54, 0])
    Starting system...
    Key done...
    Searching...
    Exception in thread ant.base:
    Traceback (most recent call last):
    File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
    File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    File "/usr/local/lib/python3.8/dist-packages/ant/base/ant.py", line 180, in _worker
    and message.data[1] == 0x01
    AttributeError: 'Message' object has no attribute 'data'
    Traceback (most recent call last):
    File "/usr/local/lib/python3.8/dist-packages/antfs_cli-0.4-py3.8.egg/antfs_cli/program.py", line 384, in main
    g.start()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 223, in start
    self._main()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 150, in _main
    if self.on_link(beacon):
    File "/usr/local/lib/python3.8/dist-packages/antfs_cli-0.4-py3.8.egg/antfs_cli/program.py", line 167, in on_link
    self.link()
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 383, in link
    self._send_command(LinkCommand(self._frequency, 4, self._serial_number))
    File "/usr/local/lib/python3.8/dist-packages/ant/fs/manager.py", line 199, in _send_command
    self._channel.send_acknowledged_data(data)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/channel.py", line 119, in send_acknowledged_data
    self.wait_for_event([Message.Code.EVENT_TRANSFER_TX_COMPLETED])
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/channel.py", line 50, in wait_for_event
    return wait_for_event(ok_codes, self._node._events, self._node._event_cond)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/filter.py", line 73, in wait_for_event
    return wait_for_message(match, process, queue, condition)
    File "/usr/local/lib/python3.8/dist-packages/ant/easy/filter.py", line 62, in wait_for_message
    raise AntException("Timed out while waiting for message")
    ant.easy.exception.AntException: Timed out while waiting for message
    Interrupted: Timed out while waiting for message

┌──(anon㉿kali)-[~]
└─$

from antfs-cli.

Tigge avatar Tigge commented on July 17, 2024

@L150 There should be a new openant out with a fix for this

@bluebaer7 Looks like you are also running Python 2.7. It is now unsupported.

from antfs-cli.

Related Issues (20)

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.