Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iotlabcli version to <=3.2.1 #59

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tryuan99
Copy link

iotlabcli drops support for Python 2 starting with version 3.3.0.

This change was tested by running openv-server --help nd openv-client --help on the commandline and making sure that these two commands run successfully.
Otherwise, the f-strings would have been incompatible with Python 2:

% openv-server --fw-path ~/Documents/openwsn-fw
Traceback (most recent call last):
  File "/Users/titan/opt/anaconda3/envs/openvisualizer/bin/openv-server", line 5, in <module>
    from openvisualizer.__main__ import main
  File "/Users/titan/opt/anaconda3/envs/openvisualizer/lib/python2.7/site-packages/openvisualizer/__main__.py", line 1, in <module>
    from openvisualizer.main import main
  File "/Users/titan/opt/anaconda3/envs/openvisualizer/lib/python2.7/site-packages/openvisualizer/main.py", line 28, in <module>
    from iotlabcli.parser import common
  File "/Users/titan/opt/anaconda3/envs/openvisualizer/lib/python2.7/site-packages/iotlabcli/__init__.py", line 24, in <module>
    from iotlabcli.auth import get_user_credentials
  File "/Users/titan/opt/anaconda3/envs/openvisualizer/lib/python2.7/site-packages/iotlabcli/auth.py", line 68
    pass_file.write(f'{username}:{enc_password}')
                                               ^
SyntaxError: invalid syntax

iotlabcli drops support for Python 2 starting with version 3.3.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant