logica icon indicating copy to clipboard operation
logica copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'bq'

Open ryptozee opened this issue 4 years ago • 3 comments

Whenever example command logica primes.l run Prime is executed, error is produced: FileNotFoundError: [Errno 2] No such file or directory: 'bq'

It happens in docker container ubuntu:latest with python3.8.5 installed

Please see the log output:

root@d0094b59f905:/home# logica primes.l run Prime
Traceback (most recent call last):
  File "/usr/local/bin/logica", line 8, in <module>
    sys.exit(run_main())
  File "/usr/local/lib/python3.8/dist-packages/logica/logica.py", line 184, in run_main
    main(sys.argv)
  File "/usr/local/lib/python3.8/dist-packages/logica/logica.py", line 157, in main
    p = subprocess.Popen(['bq', 'query',
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'bq'

ryptozee avatar Apr 14 '21 17:04 ryptozee

As Prerequisites section states we need to install Google Cloud SDK to execute on BigQuery.

I agree that on-boarding should be made easier. Keeping the issue open, as we need to try to do more things automatically.

EvgSkv avatar Apr 14 '21 21:04 EvgSkv