Questions tagged [python]

Python is a dynamically and strongly typed programming language that encourages readability.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

apache mod_wsgi error, randomly: Unable to connect to WSGI daemon process

Recently, our server shut down out of nowhere, this what Apache logs show up: [wsgi:error] [pid 8837:tid 140646648096512] (2)No such file or directory: [client] mod_wsgi (pid=8837): Unable to connect ...
Jose Luis Arrioja's user avatar
0 votes
2 answers
36 views

ansible - couldn't resolve module/action 'amazon.aws.s3_object' / The module amazon.aws.s3_object was not found in configured module paths

Per requirements, I did installed all the required packages, however amazon.aws.s3_object is one of those things: couldn't be resolved/found was not found in configured module paths step(s), I used ...
alexus's user avatar
  • 13k
0 votes
0 answers
39 views

SSH port forwarding using python

I have a VPS that serves as my VPN server, and I want to use this VPS as a VPN using forwarding for my laptop which uses windows as OS. Is it possible to do so without using software like PuTTY, ...
mostafa ahmadi's user avatar
0 votes
0 answers
58 views

What does python's [Errno 32] Broken pipe mean when using UDP?

I have a python process running in the Docker container, which has the following code: family = socket.getaddrinfo(host, DEFAULT_PORT_UDP)[0][0] with socket.socket(family, socket.SOCK_DGRAM) as s: ...
dmab's user avatar
  • 1
0 votes
0 answers
17 views

Does google colaboratory save code in local computer when using local runtime

When running python code from google colab into local computer (local runtime), does the code is saved in the local computer or not ?
rocket's user avatar
  • 1
-1 votes
1 answer
35 views

Does ssh save the code in the remote computer?

When running python code using ssh on remote computer by a sudo user, does it save the code in the remote computer ? does the root user can see actual python code? ssh user@remotehost < python /...
rocket's user avatar
  • 1
0 votes
0 answers
62 views

botocore.exceptions.ClientError: An error occurred (InvalidToken) when calling the ListObjectsV2 operation

I have an mlflow server that is hosted on aws, that uses s3 in the background for storage. I am trying to run a lambda-function that runs a python script which accesses the mlflow server, loads a ...
ptushev's user avatar
0 votes
0 answers
8 views

Unable to get poller added to view interface details using SNMPv3 on Solarwinds

I am unable to get the poller added to view interface details using SNMPv3 on Solarwinds. I am using the following pollers: 'N.Status.ICMP.Native': True, 'N.Status.SNMP.Native': False, 'N.ResponseTime....
xis10z's user avatar
  • 101
0 votes
0 answers
35 views

Runging own Telgram bot based on PTB 13x and local Telegram bot API behind nginx

Try to use local Telegram bot API to take benefits of larger files for my bot serving and helping users in supergroup with files as described here Build stack with Telegram Bot API, nginx as reverse ...
Topper's user avatar
  • 101
-1 votes
1 answer
105 views

How to find device names on local network?

Currently I'm trying to write a Python script to scan through my local network, and list all of the active IP addresses, and their corresponding MAC address and device name. Also all of the devices ...
fancyshark's user avatar
1 vote
1 answer
153 views

Simple PHP calling Python script - Call not working

I've got a simple localhost website with a php page that has some buttons on it that call python scripts. I can run it locally and the output works so standalone the scrip is fine. The issue is with ...
eezetee's user avatar
  • 11
0 votes
0 answers
36 views

Running Tests in a Kubernetes cluster

We have code that deploys new kubernetes clusters with core infrastructure services like cert-manager, external-dns, load balancer controllers etc in a cloud environment. We provision these with the ...
sebastianwth's user avatar
0 votes
1 answer
42 views

How to automatically activate a python environment when 'source' command does not work?

I set up an python environment in path \pyenv\1st\ by cd / mkdir pyenv python3 -m venv /pyenv/1st The official method to activate this environment is to type this command manually: . /pyenv/1st/bin/...
George Y's user avatar
  • 434
1 vote
1 answer
96 views

Ansible to a Cisco Router :: Password Message Messing Up the Connection?

When I manually SSH from my Ansible server to a Cisco router, I see this on the command line: me@ubuntu01:~/ansible$ me@ubuntu01:~/ansible$ ssh user01@10.10.10.101 Password: ####################### ...
Pete's user avatar
  • 131
0 votes
0 answers
60 views

how to get rid off raise at python3-ldap3

Using: ubuntu22.04 python3-ldap3-2.8.1-1 Code: conn = Connection(server, user=user, password=password, auto_bind=AUTO_BIND_TLS_BEFORE_BIND, raise_exceptions=False) conn.start_tls() if not ...
Paulo Ricardo Bruck's user avatar
0 votes
0 answers
33 views

Sending simulated key presses to a specific process using python script in linux

On my Linux system I have opened a Telnet session. On the other tab I am running a Python script and giving commands to the Telnet session using mkfifo file redirection. But I am not able to simulate ...
Anubhav Rai's user avatar
0 votes
1 answer
210 views

When running a python script as a service, I get module not found

I have a small script that uses flask to listen to API requests and forwards them to Home Assistant and InfluxDB. It currently has a dummy name, "script.py" and is placed in /usr/local/bin. ...
Tomaz Leopold's user avatar
0 votes
0 answers
59 views

Ubuntu 20.04 Server spamassassin/spamd "internal error, python traceback seen in response." No additional info. How to debug and fix?

On Ubuntu server 20.04, I am running spammassassin/spamd, postfix/dovecot. In my mail logs at /var/log/mail.log I am getting a spamd internal error, python traceback seen in response error as shown ...
DanRan's user avatar
  • 93
0 votes
1 answer
338 views

poetry command not found after installing it on jenkins

I'm using Jenkins to build a python package using poetry, here is the stage command to install poetry on the Jenkinsfile stage('poetry'){ steps { sh 'curl -sSL https://install.python-poetry.org |...
veey's user avatar
  • 1
0 votes
0 answers
134 views

I have tried to install the anaconda software but it keep giving me a directory error .It says directory not empty .How do I fix this

have tried to install the anaconda software but it keep giving me a directory error .It says directory not empty .How do so fix this
Tsholofetso Tsele's user avatar
0 votes
1 answer
32 views

Why python-journald-rsyslog seems to batch/dely log write?

I intend to log a python script output. Here what it looks like : arm@stackoverflow > cat test.py #!/usr/bin/python from time import sleep while True: print("Hello") sleep(...
moutonjr's user avatar
  • 498
0 votes
0 answers
19 views

AWS Elastic Inference not working after waking up from hibernation

I babysit a Python daemon in an EC2 instance watching incoming jobs and running PyTorch inferences on them in Elastic Inference. When there are no jobs, I hibernate the instance. When there are jobs, ...
Greendrake's user avatar
  • 1,361
0 votes
0 answers
35 views

How to send unicast to IOS devices

We have a Python and also a NodeJS codes that send mDNS responses in a network. These mDNS responses are sent to specific IP addresses (NOT to the MDNS IP address - 224.0.0.251). For eg. if the IP ...
Avis's user avatar
  • 1
0 votes
2 answers
234 views

NGINX crashed and weird logs on access.log

When I came back home just now, I was checking my webserver if it was still running and I noticed that my NGINX server was not running anymore. I tried to restart my NGINX a few times by running the ...
Miksterdam's user avatar
0 votes
1 answer
145 views

Ubuntu has wrong versions of packages can't upgrade python

I've just upgraded my Ubuntu from focal(20.04) to jammy(22.04), and now my python is broken. which causes a lot of headache all over, like Apt wont update and some applications won't start. libpython3....
Nijboer IT's user avatar
0 votes
1 answer
1k views

error ModuleNotFoundError: No module named 'lsb_release' when trying to run lsb_release -a

Seeing the following output when trying to run lsb_release on Debian: (venv) vm-1671541226:/$ lsb_release -a Traceback (most recent call last): File "/usr/bin/lsb_release", line 25, in <...
opike's user avatar
  • 133
0 votes
0 answers
196 views

Use more CPU cores using code in PyTorch that also uses GPU

I'm trying to successfully run code in PyTorch that uses DataLoader. It is possible to configure the DataLoader to load data using several processes (which speeds up data loading a lot), via the use ...
Marco's user avatar
  • 1
0 votes
0 answers
110 views

Can't get PyGObject running in my alpine docker image

I can't get the Python:Alpine Docker image to install all my required PIP libraries. Unfortunately installing PyGObject is failing all the time and I can't get it running. Building wheel for ...
David's user avatar
  • 159
0 votes
0 answers
33 views

Is there way to monitor all aws iam users activity and send email alert using python lambda?

I have tried send alert notification for AWS IAM all users activity from lambda python, however its not working, please share any other way to work and find below cloudwatch event patter and lambda ...
bala murugan's user avatar
0 votes
0 answers
95 views

how to activate venv (python) on server production

I created a app based on Vuejs (frontend) and Node.js/Express (backend), both have domains and they are online on web. Inside the backend, I have some files scripts written in Python which I also had ...
João Denari's user avatar
0 votes
0 answers
98 views

obfsproxy running on centos 7

I am using CentOS 7 os. I installed python3.6 on this machine. pip3 is latest version 21. After that i installed obfsproxy like this : To use obfsproxy you will need Python (>= 2.7) and pip. pip3 ...
SMQS Manager's user avatar
0 votes
0 answers
12 views

Ouath2 Consent screen fails in gcloud without providing verification option at the command prompt

I am a newbe & trying to run the Python quickstart sample script from gcloud CLI. The script is here https://developers.google.com/classroom/quickstart/python. I have the scope set and Oauth2 ...
Tony Johnson's user avatar
1 vote
0 answers
263 views

A process just won't die

For context: I have been playing with stable diffusion on my home server lately, but because my GPU is pretty old, the process often crashes and hangs when I try to go too far. Usually, I'd just kill ...
Julien Ripet's user avatar
0 votes
0 answers
99 views

How does a vpn route all traffic through it's tunnel but allow it's own traffic to go over the internet

TL;DR I want all outgoing traffic from my system to be routed to a tun0 device, wrapped with DNS packets and then sent to the internet, but the DNS packets also gets routed back to tun0 device. ...
Yarden's user avatar
  • 101
0 votes
2 answers
151 views

Python Speech Recognition modules [closed]

I'm trying to build a speech to text and text to speech transcription app. I tried modules by Google and IBM, can you suggest any other modules that are available offline.
ecology klu's user avatar
0 votes
0 answers
349 views

python.exe - The FastCGI process exceeded configured activity timeout

I'm trying to host a Flask (Python) application on a Windows server, but it was giving me request timeout error, then I changed it to 300 seconds (5 minutes), and after that, it's giving me an ...
Ankit Tiwari's user avatar
1 vote
0 answers
170 views

How can I force ansible (or python for that matter) to use openssl at seclevel 0 in Ubuntu 22.04?

I have ansible installed in a host with Ubuntu 22.04, from which I try to connect to a host with Windows Server 2012 R2 using winrm. The problem is that I get a connection error. After chasing the ...
eciii's user avatar
  • 141
0 votes
1 answer
542 views

Getting an iperf "connect failed: connection refused" error on ubuntu when running multiple threads

I have 3 computers hooked up to a local network. I have written a python script to open a dedicated iperf server and an iperf client on separate threads. I want every computer to connect to the other ...
Tyler Durden's user avatar
0 votes
0 answers
69 views

How can I write an Nginx rewrite from the IIS URL rewrite?

I have set up React + Flask app on windows IIS it is working fine. Now I want to use Nginx instead of IIS. I have created URL Rewrite in IIS from fronted to backend waitress server API calls. . What ...
Pradip Waghela's user avatar
1 vote
1 answer
161 views

I can make my Docker Python HTTPD listen to the external ip but not from outside docker. Why?

I am not sure if this is relevant, but I am on one of the Oracle Compute instances, and I am using an Ubuntu 22.04 instance. I have opened the right ports so that the server is accessible to the ...
Rahul Gopinath's user avatar
1 vote
0 answers
109 views

AWS EC2 - Difference between adding interface via Bota3 vs adding via web interface

Apologies for dupes, I assume this is not novel, but I can't get the phrasing right to get an answer. I have a lambda python script provided by AWS from this example (python script reproduced below to ...
stupac8908's user avatar
0 votes
0 answers
244 views

Login to google chrome profile in a docker container

I am using selenium standalone chrome image to run selenium automation scripts on a docker container. All the websites I am trying to automate have the option to sign in using google. But in order to ...
musical_ant's user avatar
2 votes
3 answers
5k views

Ansible: "You need to install 'jmespath' prior to running json_query filter", but it is installed

I am using Ansible on top of Python3 and Enterprise Linux 8 (Rocky Linux 8). When I try to use json_query, I am getting the following error: fatal: [ansible]: FAILED! => {"msg": "You ...
norinori's user avatar
1 vote
0 answers
79 views

NGINX Buffer parameters causing issues with Python requests library

'm having problems uploading files through the Python requests library when I activate the parameters below in my NGINX proxy (where the connection goes) proxy_buffering off; proxy_request_buffering ...
caiofreitasx's user avatar
0 votes
0 answers
110 views

Scapy packets are not being recognized

I am manually sending MDNS response packets from the server using SCAPY to the mobile (Both in same network) when it looks for a chrome cast (The cast device is in another network). The packet is been ...
Avis's user avatar
  • 1
0 votes
0 answers
39 views

Python setup tools getting dependency error with deb package, how to fix that?

Below is the install_requires part of setup.py of setuptools. Created rpm using this command. When I ran the deb file on another ubuntu 20 machine, got below error. But don't know why it is ...
user2331760's user avatar
1 vote
0 answers
156 views

How to open communication PYTHON socket with a SERVER SOCKET on AWS EC2 to a CLIENT SOCKET on my local pc?

Sorry my english is not good I want to established connexion from my client socket on my local pc to a host server socket on AWS EC2 instance. I'm trying to follow suggestions from here and code from ...
Citoyen x14's user avatar
1 vote
0 answers
40 views

Is there a vSphere vSAN SDK API option to set VMKernal Advanced Setting

I am writing a script to automate shutting down a vSAN cluster (yes I know 7.03 know has a button), based on this knowledge base article. I am at the part where it wants us to call a script on each ...
user1209640's user avatar
0 votes
0 answers
42 views

How to make changes to Flask api without interrupting live traffic

I have a backend hosted at api.example.com using Flask. I would like to be able to make changes to this api without interrupting live traffic. I'm thinking of ways to accomplish this but without using ...
Stavros Nicolaou's user avatar
1 vote
1 answer
412 views

How to install apt dependencies from setup tools?

I am trying to create deb package from python setup tools. To do that, I tried adding install_requires as in this link But it seems, this is for pip modules, not apt packages. How or where to set ...
user2331760's user avatar

1
2 3 4 5
35