One: [one-cmds] one-build behavior when no virtual env

Created on 18 Jan 2021  路  5Comments  路  Source: Samsung/ONE

I built and installed compiler 1e68ce70. It gave me one-build binary.

I didn't prepare venv yet, and ran one-build and it hang:
(Note <<< sth is my comment, not actual log)

$ ./one-build

Error: Virtual environment not found. Please run 'one-prepare-venv' command.
<<< hang here... command not returned

First I thought it was hang. But it turns out that it was waiting for my 'click'!

$ ./one-build

Error: Virtual environment not found. Please run 'one-prepare-venv' command.
<<< I clicked some place!
import-im6.q16: not authorized `argparse' @ error/constitute.c/WriteImage/1037.
<<< I clicked some place!
import-im6.q16: not authorized `configparser' @ error/constitute.c/WriteImage/1037.
<<< I clicked some place!
import-im6.q16: not authorized `os' @ error/constitute.c/WriteImage/1037.
<<< I clicked some place!
import-im6.q16: not authorized `subprocess' @ error/constitute.c/WriteImage/1037.
<<< I clicked some place!
import-im6.q16: not authorized `sys' @ error/constitute.c/WriteImage/1037.
<<< I clicked some place!
import-im6.q16: not authorized `_utils' @ error/constitute.c/WriteImage/1037.
build/install/bin/one-build: line 30: syntax error near unexpected token `('
build/install/bin/one-build: line 30: `def _get_parser():'
<<< Then it finally gave me a command prompt

$ echo $?
2

Not sure this is expected behavior

Of course it worked okay when I prepared venv before.

typissue

Most helpful comment

I found the reason :(
exit command wasn't in the code.
I will create PR..!

All 5 comments

This issue is reproduced in my environment too :(

@mhs4670go , can you take a look at this?

I found the reason :(
exit command wasn't in the code.
I will create PR..!

This issue is resolved by #5737, close!

Thanks

$ build/install/bin/one-build
Error: Virtual environment not found. Please run 'one-prepare-venv' command.

$ echo $?
255
Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucenticus picture lucenticus  路  3Comments

periannath picture periannath  路  3Comments

wateret picture wateret  路  4Comments

seanshpark picture seanshpark  路  3Comments

periannath picture periannath  路  3Comments