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

Command line building in mcux.py fails on Linux due to wrong usage of subprocess.Popen #172

Open
stefanct opened this issue Feb 22, 2024 · 1 comment
Assignees

Comments

@stefanct
Copy link

stefanct commented Feb 22, 2024

Passing a string w/o setting shell=True to Popen results in Python trying to execute a file named something like /cmd arg1 arg2 which is not what you want:

p = subprocess.Popen(command)

This results for example in FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/scripts/kconfig/menuconfig.py /.../examples/evkmimxrt1020/demo_apps/hello_world/armgcc/../../../../../core/Kconfig' when running make menuconfig in the hello world example (for the rt1020).

This should be changed to either splitting the string into its components, e.g., via shlex.split(command) or by adding shell=True.

@mcuxsusan
Copy link
Contributor

Thanks for reporting the issue! I will check and provide you feedback later.

@mcuxsusan mcuxsusan self-assigned this Feb 23, 2024
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

No branches or pull requests

2 participants