bashdb: Can I examine the data flowing through a pipe?

I'm trying to debug a bash script that involves a command of the form: VAR=$(cmd1|cmd2|cmd3) I can debug it in bashdb, using the s command, which does something like this: bashdb(2): s 2: ...

multiple processes via socketpair hang sometimes

I am trying to implement something that will give me a solution for: | --> cmd3 --> cmd4 --> cmd2-->| | --> cmd5 --> cmd6 --> and so on... This is multiple executions of processes...

porting CPP defines to python

I have a program (written in C/C++) that behaves as a socket server. I'd like to write the client in python. The packets exchanged over the TCP socket follow a "home-made" protocol (simple) using...

How to run multiple commands in one process using Popen?

I want to open a process and run two commands in the same process. I have : cmd1 = 'source /usr/local/../..' cmd2 = 'ls -l' final = Popen(cmd2, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT,...

Run custom task when call `pip install`

I want to make my python package "pip installable". The problem is that the package has shell script that must be sourced in the user's init shell script (e.g. .bashrc). But after the...

ORA-12545: Connect failed because target host or object does not exist - No error on System.Data.OracleClient

Can't believe I am having to ask this question, but I cannot for the life of me connect to an Oracle 11g database. The following works while using System.Data.OracleClient - but obviously this is...

Get Values for text box from a Excel cell in C#

I need to get loaded data from excel to textboxes. I know how to get it viewed in GridView, but I need to get a specific cell value to be captured to a text box. Example: TextBox FirstName should...

Why is my insert command not changing the database?

im performing an insert sql command in c# program using oledb methods as the code down will show. the action is performed and it even shows me a message I've put there to indicate if it worked or...

How to use setuptools to install in a custom directory?

I have a Python package that I need to install in the /usr/lib/python2.7/dist-packages or any other specific directory for that matter. Whenever I run the setup.py script it gives the following...

Timeout expired. The timeout period elapsed prior to completion of the operation on Azure sql

I need to create one sql database on windows azure on the global.asax application start event, however I got this error: Timeout expired. The timeout period elapsed prior to completion of the...

Grouping argparse subparser arguments

I have a script that has multiple commands, with each command taking it's own set of required and/or optional arguments, by using add_subparser. =->test.py -h usage: test.py [-h] <command>...

ImportError: No module named pandas

I am trying to write code in Python to fetch Twitter data, and I am not getting an error for twython. But I am getting an error for Pandas. I have installed Pandas using pip install pandas. But I...

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev...

Running shell commands sequentially in one shell with subprocess

I am having difficulties running a series of sequential commands using the subprocess module, i need to do this so a python program can call in an installation of a cv virtualenv and then run...

pipe both, stdout and stderr in the fish shell

I know this has been an issue for a while and I found a lot of discussion about it, however I didn't get which would be finally a way to get it done: pipe both, stdout and stderr. In bash, this...

Why can't I call pip with --target and --editable?

I'm using cd MyPackage pip install --target deploy_directory . to prepare packages for deployment on Google App Engine, but for testing under dev_appserver.py, I would like to install the...

Converting Empty String to NULL Double

I have spent much of the day trying to find an answer for this one. I figured it would be easy but nothing is specific to what I am trying to do. So I hope someone can help. I am bringing values...

Possible to do multiple nested commands in Click 6

I am going to write something very basic so as to explain what I'm looking to make happen. I have written some code to do some interesting WordPress administration. The program will create...

Prompt_Tookit with similar functions to CMD2

I am developing a program that is going to use Prompt_Toolkit. I am revising my current code which is using CMD2. The issue I run into CMD2 is printing to the screen by multiple threads. If I am...

Pip Pythonnet option --single-version-externally-managed not recognized

Trying to install pythonnet 2.4.0 on Ubuntu 18.04 Bionic on Windows WSL, I get following error. Mono version installed is 5.20.1.34 and Python 3.6 ---------------------------------------- Failed...

cargo +nightly error : no such subcommand

While executing : cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force in Ubuntu 18.04, is throwing error: no such subcommand: +nightly My system has following nightly...

django-heroku is not installing

Collecting django-heroku Using cached django_heroku-0.3.1-py2.py3-none-any.whl (6.2 kB) Requirement already satisfied: django in /home/aksh/dadu/lib/python3.8/site-packages (from django-heroku)...

ERROR: Failed building wheel for psycopg2 (Ubuntu 20.04 + Python 3.8.5 + venv)

Greetings wisdom from Stackoverflow! I'm having issues building wheel for psycopg2 thru pip install -r requirements.txt. I'm on ubuntu 20.04 + python 3.8.5 + venv. This is my...

How to execute multiple command in command line with Python 3.x

Thanks, everyone. I am writing a script to execute multiple command in command line. It is one part of my whole script. I have checked many answers, but none of them solved my problem. Some of...

How to fix error during pythonnet installation

When I try to use following command: pip install pythonnet I see error that you can see below: Collecting pythonnet Using cached pythonnet-2.5.2.tar.gz (1.9 MB) Requirement already satisfied:...

Python AWS Lambda Error "libgomp.so.1: cannot open shared object file: No such file or directory" from AWS EFS file system mounted on Ubuntu

I have an AWS lambda function connected to an AWS EFS mounted on a EC2 instance of Ubunutu 18. I am getting this error below when importing a LightGBM model i believe. { "errorMessage":...

run scripts sequentially which are watching for changes

I have a package.json file like below with scripts tag. { "name": "name", "version": "1.0.1", "license": "MIT", "scripts": { "cmd1": "cd packages/apis/ && yarn start", "cmd2": "cd...

Python 3 `venv` and the `wheel` package

Starting with python3.8, I noticed that the wheel package seems to be required to pip install packages without errors (at least they look like errors, but behave like warnings). Note: in all of my...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...

Hey every one am using ffmpeg-kit in react native I want help to understand some point. My 2nd question is that can we us remote url in ffmpeg command

Actually I am using ffmpeg-kit in react native project for multiple purpose like merge two in horizontal, trim, getting audio from video etc. so 1st I am creating local path then pass it to ffmpeg...