antifier icon indicating copy to clipboard operation
antifier copied to clipboard

Running in Ubuntu

Open drgdeveloper opened this issue 7 years ago • 2 comments

I have followed all of the install instructions for linux using wget -O - https://raw.githubusercontent.com/john-38787364/antifier/master/install.sh | sudo sh When I go to run the antifier I get: File "antifier.py", line 454 if debug:print "get ant stick" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(debug:print "get ant stick")? I am a python idiot have no idea where to go. Thanks for the help.

drgdeveloper avatar Nov 09 '17 20:11 drgdeveloper

I wanted to add that when I ran the install command this is what I got: After this operation, 175 MB of additional disk space will be used. Do you want to continue? [Y/n] Abort. sh: 2: pip: not found ########################################################################## This script has installed python-pip and pyserial. It has created the directory antifier and downloaded the required files. ########################################################################## Installation finished Dongle found If you have problems finding the dongle then ensure /dev/ttyUSB0 exists If /dev/ttyUSB0 does not exist then create /etc/udev/rules.d/garmin-ant2.rules and add: sh: 29: Syntax error: Unterminated quoted string

drgdeveloper avatar Nov 09 '17 20:11 drgdeveloper

Q1. I have myself and this is caused by your Linux dist is using python3 as default python version. It looks like it works just to take the 2to3 command and patch the python files. Update! It is not that simple to just run through a 2to3 conversion! Suggestions changed. I don't have insight to how much work it is to support python3, so I will not comment on that. Would however be good to have a note in the README about python3 support and possible solution. I know Arch is running python3 as default and would assume many other distros to do the same.

Update: Did not seem to be as easy as to just update the files with 2to3. I did not get it to work with the python2 command in arch, but I realized I had to install packages with pip2, then it looks like it might be working. Arch has a python2 command and if you change all commands and install all python2 references you'll likely be good. Similar for other dist

Q2. Have not seen it.

hsamuels0 avatar Nov 13 '17 13:11 hsamuels0