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

Traceback error when 'mbed detect' on mercurial project #564

Closed
MarceloSalazar opened this issue Nov 16, 2017 · 6 comments
Closed

Traceback error when 'mbed detect' on mercurial project #564

MarceloSalazar opened this issue Nov 16, 2017 · 6 comments

Comments

@MarceloSalazar
Copy link
Contributor

MarceloSalazar commented Nov 16, 2017

Error when using mbed detect on mercurial repository.
Instructions to reproduce:

$ mbed import https://os.mbed.com/teams/mbed/code/mbed_blinky/
$ cd mbed_blinky
$ mbed detect
Traceback (most recent call last):
  File "/Users/.../mbed_blinky/.temp/tools/detect_targets.py", line 33, in <module>
    from tools.test_api import get_autodetected_MUTS_list
  File "/Users/.../mbed_blinky/.temp/tools/test_api.py", line 53, in <module>
    import tools.test_configs as TestConfig
ImportError: No module named test_configs
[mbed] ERROR: "/usr/bin/python" returned error code 1.
[mbed] ERROR: Command "/usr/bin/python -u /Users/.../mbed_blinky/.temp/tools/detect_targets.py" in "/Users/.../mbed_blinky"

mbedls works fine, so I assume the problem is in mbed detect

mbed-cli 1.2.2
python 2.7.14
OS X El Capitan

@theotherjimmy

@theotherjimmy
Copy link
Contributor

Thanks. I'll include test_configs in the Mbed OS 2 tools release I will be making to accompany the Mbed OS 5.6.5 release.

@MarceloSalazar
Copy link
Contributor Author

Interestingly, I'm also reproducing this on a Mbed OS 5 project.

@theotherjimmy
Copy link
Contributor

Do you have that traceback?

@MarceloSalazar
Copy link
Contributor Author

I take that back; my Mbed OS 5 project was being detected as OS 2, but now works ok.
The issue is still valid for a Mbed OS 2 project.

@screamerbg
Copy link
Contributor

@theotherjimmy Bump. This is related to mbed 2 SDK tools.

@screamerbg
Copy link
Contributor

Now fixed in mbed CLI 1.3 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants