Questions tagged [python]

Python is a dynamic and strongly typed programming language designed to emphasize usability.

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
161 views

How to speed up environment loading on network drive?

Background: I have about 15 AWS EC2 instances running Windows. They each have local drives and share a single network drive. Each needs to be able to run certain in-development python tools from ...
user avatar
  • 21
1 vote
0 answers
39 views

Ansible : 'NetworkManagementClient' object has no attribute 'private_endpoints'

I try to deploy a private endpoint for a storage account with Ansible. I am using azure.azcollection.azure_rm_privateendpoint. My playbook code is as below: - name: Create PE hosts: localhost ...
user avatar
  • 111
1 vote
0 answers
45 views

How to execute a "hello redis" sample python script on a container from the host?

How do I execute this "Hello Redis!!!" sample from the host? root@mordor:~# root@mordor:~# docker container ls CONTAINER ID IMAGE COMMAND CREATED ...
user avatar
1 vote
0 answers
324 views

Connection refused when CURLing to docker container from within Jenkins pipeline

I have a situation with a CI Pipeline I'm trying to implement using Jenkins and Docker . Inside my pipeline I want to: download a python uwsgi web app, build it in a docker container, run it, then ...
user avatar
0 votes
1 answer
9 views

Vscode/pytest gives me an error when importing

I asked this question on the regular stackoverflow but i think you guys will be much more competent about this topic. My guess is that is some sort of python setup issue. When I write an import line ...
user avatar
0 votes
0 answers
22 views

Should I build an API for my data ingestion/processing pipeline? (previously only backend, now building frontend)

I've built a fairly comprehensive data pipeline project. What it does: ingests data from different sources processes data, e.g. to calculate individual-level scores regarding a specific topic sends ...
user avatar
  • 101
0 votes
0 answers
9 views

k8s job specification doesnt work

I have a pod definition file: apiVersion: v1 kind: Pod metadata: name: redis-master namespace: sandbox labels: app: redis spec: containers: - name: master image: redis ...
user avatar
0 votes
0 answers
84 views

WORKDIR not working for docker in windows

I have a main.py file and a Dockerfile. The main.py file downloads and saves some .txt files. So, it is very necessary for me to specify the working directory. I am working in a Windows machine. The ...
user avatar
0 votes
0 answers
37 views

How do we use napalm library with ttp module at the same time?

How can i parse the data after getting it with napalm ? First I was using "get_network_driver". I want to use TTP pars method under interface. Library from napalm import get_network_driver ...
user avatar
0 votes
0 answers
219 views

python `subprocess.run()` returning unexpected empty stdout in gitlab-ci

I'm attempting to have my python blackbox test suite run through gitlab-ci. When running the test through pipenv run pytest on my personal machine everything executes correctly, but when running on ...
user avatar
  • 1
0 votes
0 answers
296 views

Cant access gitlab ci variables from inside python script building with maven

I have a python project which I build using maven. In my .gitlab-ci.yaml file I set some global variables. variables: MAVEN_BASE_CLI_OPTS: "" MAVEN_CLI_OPTS: ${MAVEN_BASE_CLI_OPTS} ...
user avatar
0 votes
0 answers
893 views

how to execute a python script in jenkins pipeline as a stage and use the output of python script to declare further stages in pipeline as next stage

I have written a python script which provides me a output like this as a dictionary, test.py: {'job-name': 'Test1', 'action': 'a', 'targetname': 'x'} {'job-name': 'Test2', 'action': 'b', 'targetname': ...
user avatar
0 votes
0 answers
416 views

Ansible in venv: how to pip install globally on localhost?

Ansible is installed and is running in a virtual environment: (env) ansible-playbook -vvvv -i localhost playbook.yml I'm trying to install a Python package globally, but it either installs in venv ...
user avatar
0 votes
0 answers
6 views

GCP Service Account Credentials Refresh

Is it possible to refresh or recreate a new set of Credentials Key json file via from google.oauth2 import service_account Library i.e programmatically via python libs. I am trying to refresh this ...
user avatar
0 votes
0 answers
14 views

How to test/validate a custom build of Python

I have various docker images that I build that include stages that download the Python source, build and install it in the images. When the builds run, I see occasional error or warning messages that ...
user avatar
0 votes
0 answers
225 views

Set Environment variables or pass parameters to script when using AWS Boto3 send_command

I would like to pass details from my build pipeline down to my powershell script. Is this possible? This is a snippet of what I am trying to do (incomplete so don't worry about how I handle the ...
user avatar
0 votes
0 answers
258 views

Pass values from a python script to another Jenkins execution

I'm new to Jenkins and my main programming lenguage is Python, therefore, I want to use Python the more I can to make every step. My doubt right now is how to pass an argument from an execution to ...
user avatar