Questions tagged [python]

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

1743 questions
0
votes
3 answers

Making Python scripts more user friendly?

I have a bunch of python scripts I've put together that cut down on busy work, but I'd like to be able to share them in an easier-to-use format for others to be used internally. The scripts aren't accessing anything local, just open API's across a…
Michael Morisy
  • 148
  • 1
  • 1
  • 6
0
votes
2 answers

Writing your own Makefile for OpenBSD ports

I have an OpenBSD box running Python 2.6. I want to install py-setuptools, but that package is built against 2.5. I was curious as to what the Makefile for py-setuptools looks like, to see if it mentioned anything about Python 2.5 as a…
The_dude_man
0
votes
2 answers

How do I set up my own proxy server?

This website (abc.com) slowed access from our original IP address. How do I implement my own proxy server to hide my IP while browsing abc.com? Do I need special hardware/software combo to achieve this? If I can generate about 5 proxies and…
NJTechGuy
0
votes
3 answers

Apache: Use Specific Applicaion for CGI scripts

I have two servers, one in production and one for development. The production server is Solaris, dev is FreeBSD. Because of this, python is installed in different directories. I'm using Python right now for making CGI scripts, and needing to…
RandomInsano
  • 451
  • 1
  • 5
  • 19
0
votes
1 answer

Apache2 Modpython : IOError: Write failed, client closed connection

This is the error : [Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] mod_python (pid=9528, interpreter='realpage.com', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error [Mon Mar 01 12:19:50 2010] [error]…
llazzaro
  • 421
  • 4
  • 16
0
votes
0 answers

Hosting dynamic Flask website using AWS ElasticBeanstalk

I have been trying to host a dynamic Flask website which includes Machine Learning on AWS ElasticBeanstalk. The success message "Environment has succesfully launched" is displayed. However, in the "environment overview" section the health status is…
0
votes
0 answers

Hosting private conda channel

I recently joined a start up and have been tasked with setting up package management for our internal python libraries. We work in the biotech and ml space, and a lot of the packages we use are index on conda channels. The current setup we have…
0
votes
1 answer

GCP Secret Manager Access "Invalid Grant" error 503 with Python 3.11

really losing it here. I wrote a simple piece of code just to be able to access secrets, and every time I run it it simply throws the following error: google.api_core.exceptions.RetryError: Deadline of 60.0s exceeded while calling target function,…
0
votes
0 answers

Not able to execute shell commands in ansible control node

Need your suggestion pls. The below one is ansible file which calls an python file in the control node(localhost) and process an excel file which is also present in control node based on hostnames. There is no issue in processing the excel and now I…
user984993
  • 23
  • 3
0
votes
1 answer

Using Ubuntu 22.04 in EC2 via CloudFormation, why does cfn-hup never trigger?

Amazon's documentation includes extensive examples of using cfn-hup to automate updates of instances provisioned via CloudFormation. For one of many examples, see…
Nye
  • 239
  • 1
  • 5
0
votes
2 answers

Installing Nose into my home directory (without sudo)?

Is it possible to install Nose (http://somethingaboutorange.com/mrl/projects/nose/0.11.1/) into a subdirectory of my home directory on a Linux machine? (I'm not on the sudoers list for that machine.) If so, how do I do that?
Daryl Spitzer
  • 2,996
  • 9
  • 33
  • 40
0
votes
1 answer

linux fail2ban not catching auth a specific fail with postfix

I had journalctl open and noticed an offender repeatedly hitting me with auth fails in postfix. I have a standard postfix-sasl filter on by default that, to my knowledge, is working well. It wasn't catching this one offender, of course my curiosity…
gstlouis
  • 119
  • 3
  • 12
0
votes
2 answers

Is there a way to force duplicity to use IPv4 instead of IPv6?

In the below command, example.com has both IPv4 and IPv6 addresses but SSH server listens only on the IPv4 address. Is there a way to request duplicity to use IPv4 only? duplicity --progress --ssh-options -oIdentityFile=./cloud.pem…
Halacs
  • 103
  • 4
0
votes
0 answers

Python can't find files that are shown in os.walk()

My problem in short is when I run os.walk() I get an accurate list of files, but when I try getting information about those files like their last modified date, file size or even just try open() with them, I get an error that the file cannot be…
sanigirl
  • 101
  • 1
0
votes
0 answers

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 to WSGI daemon process 'project' on…
1 2 3
99
100