Skip to content

make helloworld fails #16

@lei-houjyu

Description

@lei-houjyu

Hi, I am doing some tests to check whether the installation is correct. While executing make helloworld in the tests folder, I got the following error, which reporting a syntax error in mfnclient.py. I have both Python 2.7.12 and Python 3.5.2 on the machine. I was wondering is there anything wrong in my environment or installation? Thanks very much!

$ make helloworld
cd helloworld; PYTHONPATH=../../mfn_sdk python3 -m unittest discover -v
test (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/howie/knix/tests/helloworld/test.py", line 20, in <module>
    from mfn_test_utils import MFNTest
  File "../mfn_test_utils.py", line 28, in <module>
    from mfn_sdk import MfnClient
  File "/home/howie/knix/mfn_sdk/mfn_sdk/__init__.py", line 21, in <module>
    from .mfnclient import MfnClient
  File "/home/howie/knix/mfn_sdk/mfn_sdk/mfnclient.py", line 151
    log.info(f"Connecting as {user} to {url}")
                                            ^
SyntaxError: invalid syntax


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
make: *** [helloworld] Error 1
$ python --version
Python 2.7.12
$ python3 --version
Python 3.5.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfinishedWhen a bug is fixed or a feature has been implemented

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions