Questions tagged [python]

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

1717 questions
0
votes
0 answers

increase value of trapper item in zabbix

I want to add an item in zabbix that can be increased value every time. I use trapper item in zabbix and send value by python, but I can't find a way to increase value of trapper item. if i want to explain better : =…
0
votes
0 answers

How to call dovecot lda command in python script?

I am trying to pipe incoming mail to python script iRedMail. Piping is done successfully. But the mails aren't shown in inbox as it show should. Someone told me to call dovecot lda command in the end of the script. But I don't know how to do it. I…
misscoder
  • 1
  • 1
0
votes
0 answers

Disabling IIS server error response for 5xx HTTP status codes

I am using Python Flask on IIS and part of my __init__.py file looks like the below def handle_error_404(error): """ 404 """ app.logger.error(error) flash(f'Server says: {error}', 'error') return…
pee2pee
  • 351
  • 1
  • 3
  • 11
0
votes
0 answers

Why jenkins showing me "ModuleNotFoundError: No module named 'yaml'"?

When I run my program through Jenkins, it is showing me that error. But when I run that same program in my computer, no error occurs. I do not understand why it is happening. If there is really a problem in importing the module, why I am not facing…
0
votes
0 answers

Windows Server 2019 Python Processes 'Pause'

I have a new Windows 2019 server to replace an aging 2013 server, all the python code is the same and nothing has change, it was a straight install of python from an installer, the same python version of 3.10.4 on the old and new server. All python…
llanato
  • 201
  • 2
  • 4
  • 11
0
votes
0 answers

Python library installed and working, but not found in jenkins

I am running a python script that uses the requests and de pymysql module, I had to install it manually from a tar.gz file in the server (because the server doesn't have access to the internet, and those packages are not available). I installed it,…
aldegalan
  • 33
  • 5
0
votes
0 answers

Benchmarking applications

I'm looking to benchmark server platforms (bare metal vs virtual machines) and calculate difference in performance + cost that comes while migrating certain workloads from bare metal to virtualised ones. I'm looking for a list of applications which…
helloworld
  • 21
  • 1
0
votes
1 answer

Python Flask on IIS: HttpPlatform Doesn't Load When Visiting Hostname

So my web.config currently looks like the following for production and the site works when I visit it
pee2pee
  • 351
  • 1
  • 3
  • 11
0
votes
1 answer

Use AWS SAM to Create AWS Lambda Layer for Python (Serverless Application Model)

I'm trying to use AWS SAM / Serverless application Model to deploy a combination of Python and native libraries to Lambda as a layer, for use from a Python Lambda function. I'd appreciate some help getting the build and deploy working. My initial…
Tim
  • 30,383
  • 6
  • 47
  • 77
0
votes
0 answers

USB Serial Communication With Docker

So I'm trying to create a docker container to run my python script that reads serial data from an RFID reader. The scripts are as follows: read0.py: import serial import time arduino = serial.Serial('/dev/ttyUSB0', 19200, timeout =…
0
votes
0 answers

How to show python console output to website using flask

This is the flask file from flask import Flask, redirect, render_template, request from subprocess import call app = Flask(__name__) @app.route('/') def mai(): return render_template('homepage.html') @app.route('/handle_data',…
Rahul
  • 3
  • 4
0
votes
0 answers

pycharm .run not showing i have been facing this issue for no matter what i do its not changing

File "C:\Users\Home\Desktop\calculator\calc.py", line 19, in calc.run AttributeError: 'Calculator' object has no attribute 'run' This is the problem i have been facing if __name__ == "__main__": calc = Calculator() …
0
votes
0 answers

Getting Errors while starting mod wsgi (Django app) via apache

Starting up a dockerised django application as a mod wsgi app via apache. Getting an endless stream of below errors. Errors: 2022-06-02 16:05:12.225137 [notice] [pid 10002] mpm_unix.c(436): [client AH00052: child pid 10992 exit signal Aborted…
0
votes
0 answers

Install pip3 on new Ubuntu Server 22.04 install (Raspberry Pi)

I have just installed Ubuntu Server 22.04 LTS on my RPi, and I cannot for the life of me get pip3 to install. (It should already be there, no?) Here's my /etc/os-releasse: PRETTY_NAME="Ubuntu 22.04…
0
votes
0 answers

Strip path prefix using AspNetCoreModuleV2 (or httpPlatformHandler) on IIS

As a company using IIS for deployment of several web sites and services, we somehow struggle to deploy a Python web service based on FastAPI, however this problem may not be limited to Python. We are trying to use either the httpPlatformHandler…
1 2 3
99
100