Category : linux

I am trying to a script run.sh using python subprocess The script creates a csv file and a state.json file This is the script(works fine when i run it from terminal) : #!/bin/bash export GOOGLE_APPLICATION_CREDENTIALS="/home/anti/Documents/bq_s3/BQ/bin/client_secret.json" /home/anti/Documents/bq_s3/BQ/bin/tap-bigquery -c /home/anti/Documents/bq_s3/BQ/bin/tap_config.json –catalog /home/anti/Documents/bq_s3/BQ/bin/catalog.json –start_datetime ‘2013-01-01T00:00:00Z’ –end_datetime ‘2013-01-02T00:00:00Z’ | /home/anti/Documents/bq_s3/targetcsv/targetcsv/bin/target-csv –config /home/anti/Documents/bq_s3/targetcsv/targetcsv/bin/target_config.json > /home/anti/Documents/bq_s3/state.json But when i try to ..

Read more

I’m trying to get the following script to run successfull on crontab but it won’t work. */3 * * * * /usr/bin/python3 /var/www/secret_directory/main.py > /home/USER/grabber.log I tried to just run the command in SSH and it worked: /usr/bin/python3 /var/www/secret_directory/main.py If it works the outputs should look like this: 100%|██████████████████████████████████████████████████████████████████████████████| 61/61 [00:16<00:00, 3.62it/s] 100%|██████████████████████████████████████████████████████████████████████████| 1696/1696 [01:09<00:00, ..

Read more

What does it mean I install some python package by pip in Linux Mint, installed here: /home/user/.local/lib/python3.6/site-packages [email protected]:~/.local/lib/python3.6/site-packages$ pip3 show selenium Name: selenium Version: 3.141.0 Summary: Python bindings for Selenium Home-page: https://github.com/SeleniumHQ/selenium/ Author: UNKNOWN Author-email: UNKNOWN License: Apache 2.0 **Location: /home/user/.local/lib/python3.6/site-packages** But in Intellij Idea project interpretter cannot recognize this package: In Project Structure I ..

Read more

I am trying to install ipython notebook on Linux. System specs are as follows: Red Hat Enterprise Linux Server. PRODUCT VERSION 7.5 Anaconda (Dec 30 2018) with python 3.6 has already been installed. To install ipython notebook, i was doing the following: $ pip install ipython and $ pip install jupyterlab and $ conda install ..

Read more