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

learn more… | top users | synonyms

0
votes
0answers
4 views

Serving a Python Page with Windows / Apache / Mod_WSGI?

I'm trying to setup python / apache / WSGI on windows. I have the following installed, all 32-bit and vc9: Apache 2.4 Python 2.7.9 Mod_WSGI.so in the modules folder. http://localhost/ Displays ...
0
votes
1answer
22 views

Should I choose language node or python to automate AWS? [on hold]

I have been exploring on automating AWS services and which language is preferable to start with? Nodejs or python?. My question: Is it better to start with node or python?
0
votes
2answers
9 views

openldap TLS error -8179:Peer's Certificate issuer is not recognized

tl;dr Does this error mean that I need to find my company's ldap server's public certificate and install it, or that my company's ldap server needs to install my public cert? If the former, how can I ...
0
votes
1answer
5 views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] ...
0
votes
1answer
31 views

Cannot upgrade Python

I just recently tried using Let's Encrypt to generate free SSL certs for a small website I'm running on a personal server. When I ran the letsencrypt-auto tool everything seemed to work, although a ...
0
votes
0answers
8 views

building a cluster using dispy on aws

I'm trying to use dispy to distribute work to ec2 instances. I've followed: http://stackoverflow.com/questions/33557194/using-dispy-with-port-forwarding-via-ssh-tunnel ...
1
vote
1answer
15 views

Switching library paths in python virtualenv dynamically

There are two versions of Python that can be installed on RHEL 6.7, as many obviously know. Yum needs 2.6, and other programs for example Graphite need 2.7 After digging into it, I see that even when ...
0
votes
0answers
13 views

puppet Error 400 could not find class

I am new to puppet but keep getting an error I cannot get passed. Any help would be much appreciated!! Puppet version: 3.8.1 Redhat version: 6.6 I want to install Python version 3.3 (default ...
0
votes
0answers
92 views
+50

Mysql listens to wrong port on restart

I'm working on a 'local' PHP project. It's a PHP app running in a Debian VM intended for use on the user's own PC. I have a couple of python scripts running as root services from /etc/init.d which ...
0
votes
0answers
29 views

How do I deploy a Python 3 Flask application on my Ubuntu VPS?

I know it really feels like this has been answered over and over, but I cannot seem to get a straight answer for this. I have developed a fairly simple Flask application in Python 3 - it is all in ...
0
votes
0answers
11 views

Using a py file as an API endpoint on a hosted server

Hello all geniuses out there! I am not sure if this is the right place to post this question, but here goes nothing! I am writing to you all for a bit of help and clarity involving how to set up an ...
0
votes
0answers
15 views

How do I configure the listener binding address for python 2.7 smtplib running in a windows environment?

I am setting up an application called openemm which uses the python 2.7 smtplib to handle smtp transactions. My outgoing mail works fine but smtplib is not responding to incoming requests on port 25 ...
0
votes
0answers
27 views

Gunicorn Flask Deployment with Supervisord doesn't find command on boot

I am deploying a Flask application with Gunicorn, Nginx and Supervisord. Here is my config file for the application: [program:apwd-flask] command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn ...
0
votes
0answers
6 views

Transfer speed over network faster than from the server itself Ubuntu 14.04 [migrated]

I have a home server low powered 800mhz 2 cpu running Ubuntu 14.04 LTS. I have attached a 5TB external hard drive USB 3.0 and I get average 30MB+/s read speed using hdparm -t --direct. My issue is ...
0
votes
1answer
27 views

Can't access python glass server from virtualbox on localhost

I have Virtualbox container with FreeBSD installed where Aquarium with Glass server are running on port 9080, it is accessible from within the container. Container network is configured to use ...
1
vote
0answers
20 views

How do I specify multiple logfiles for a jail in fail2ban?

Heyo, I'm using Ubuntu 15.10 and fail2ban 0.9.3. Apache is set up with a bunch of Apache virtualhosts. I have my Apache2 logfiles located in subdirectories, one per localhost, e.g. ...
0
votes
1answer
93 views

Configure basic python 3.5, flask, uwsgi, nginx app

Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112) The code for all the configuration files and basic app are in a github repo. github repo nginx ...
1
vote
1answer
58 views

python-augeas, yum update error in CentOS7

I'm coming across this error below when I run: sudo yum update Downloading packages: No Presto metadata available for base python-augeas-0.5.0-2.el7.noarch.rpm | 25 kB 00:00 ...
0
votes
0answers
16 views

EC2 t2.micro instance becomes unresponsive to http queries

I am using ubuntu on EC2 instance. On top of that i am running a bottle framework. A python script is run in the background that serves for the http requests Then i start running the script using ...
-1
votes
1answer
30 views

Folder migration ideas

I've got to the point where it impossible to load a folder on the server because there are so many sub-folders within it, getting close to 100,000. I currently store user's images in a filing system ...
0
votes
2answers
39 views

Nginx configuration for long-running tasks

I have a web-based application that conducts some linguistic analysis of user-submitted texts. This is a rather memory-intensive task and typically takes an extended period of time (e.g., up to 3 ...
3
votes
1answer
52 views

Best practice for storing password for ssh

I have an Ubuntu server that runs certain scripts and should ssh into windows server to execute data. I am developing using python and using paramiko for ssh. Currently, the windows login ssh ...
0
votes
0answers
7 views

Flask Deployment - Security/clone

I've recently deployed a flask app with Gunicorn to a VPS. Within 4 days of deploying I found an exact copy of my flask app in France - assuming by the French domain. A few days later I had a worker ...
0
votes
1answer
9 views

appending ubuntu system path so i dont have to do sys.path in python

I am having an issue with my mod_wsgi on my apache2 server in Ubuntu. Python can't find imported modules unless i append the sys.path Every time i want to run a python script that imports classes ...
0
votes
1answer
95 views

Pip / boto problems - ImportError: No module named boto3

I want to get boto3 working in a python3 script. I can execute aws commands from the cli. After updating pip, it doesn't run with sudo rights unless I use the absolute path: /usr/local/bin/pip. ...
2
votes
1answer
107 views

How do I install mod_wsgi in Apache for python 3.5 on CentOS 7 if apxs2 is missing?

I am currently trying to install mod_wsgi 4.4.21 into Apache 2.4 for a Python 3.5 web server on CentOS 7. Under "Configuring The Source Code" in the Quick Installation Guide, it says this: On ...
1
vote
1answer
21 views

cannot access .log file in Ubuntu

pertinent parts of python script that creates/writes log files def kill(fullpath,typ): #add check to assure .recycle!!!! if any(check for check in requiredChecks if check in fullpath) and ...
0
votes
1answer
17 views

How to find total number of reserved instances under particular tag?

I am query AWS using boto ec2 in python. Firstly I find all reserved instances by get_all_reserved_instances then I am also able to find total count of each instance_type by instance_count. I am ...
1
vote
1answer
44 views

Getting different number of AWS instances depending on how I count

I am calculating my total number of reserved instance on the basis of instance_type and I'm storing this in a dictionary by instance_type as a key. Firstly, I'm finding my all reserved instances by ...
1
vote
0answers
33 views

Error installing cloud-init and cloud-utils package

I have a rhel 6.6 box with python 2.6 installed on it. I have configured epel repo. Now when i do a "yum install -y cloud-utils cloud-init parted git", it gives me the following error. --> ...
3
votes
1answer
58 views

Build Docker image with cache on build server?

We've got a Jenkins CI server that fetches our code from Git, builds it, makes a Docker image, and then ships it off to some production servers. Our project is primarily written in Python, so ...
1
vote
2answers
42 views

unable to run generated python (selenium) script from PHP

I have an Ubuntu machine for headless selenium tests. I generate a python script in /var/www/tmp/random123name.py via PHP and execute them. The script works when run from command line user, fails ...
0
votes
0answers
26 views

How do I get virtualenv (on Ubuntu 14) to install the current version of Python?

I upgraded the version of Python on my VPS to 2.7.9 from 2.7.6, so I now (correctly, I think) see this: $python Python 2.7.9 (default, Dec 19 2015, 23:39:34) [GCC 4.8.4] on linux2 Type "help", ...
0
votes
1answer
62 views

Installing letsencrypt fails when running python install scripts

I'm trying to install letsencrypt from source on a Debian 8. When running ./letsencrypt-auto --help --verbose the script stops at the following lines: ... Collecting funcsigs (from ...
1
vote
1answer
37 views

Can't connect to python server on LAN

So I have this python server which just returns the uppercase sentence which came as a input: from socket import * serverPort = 12000 serverSocket = socket(AF_INET, SOCK_DGRAM) ...
0
votes
0answers
24 views

Hardcoding proxy_set_header values inside myproject.conf (nginx reverse proxy)

I'm using nginx as reverse proxy with gunicorn for my Django app, and am essentially new to configuring webservers. My app has a postgres backend, and the machine hosting it has Ubuntu 14.04 lts ...
0
votes
1answer
42 views

'Invalid input syntax for type inet' db error in Django app with postgres when Gunicorn+Nginx(reverse proxy) installed

I have a Django app with postgres back-end where I'm configuring gunicorn to work behind nginx as reverse proxy. My machine runs Ubuntu 14.04. Everything seems to have worked, except I've run into a ...
0
votes
0answers
17 views

SMTP server for Python parser

I'm trying to get emails into a Python application. There is an exchange server that marks some emails with a BCC address for archive@somedomain.com. I do not control the Exchange server. The email ...
0
votes
0answers
9 views

ubuntu upstart script fails to load job

When I run: sudo start homepage homepage.conf looks like: description "uWSGI server instance configured to serve homepage" start on runlevel [2345] stop on runlevel [!2345] setuid user setgid ...
1
vote
1answer
283 views

After configuring nginx (reverse proxy) and gunicorn, env variables stop being detected (Django app on Ubuntu)

On an ubuntu machine hosting my Django app (with postgres backend), my env variables were prefectly detected when I fired up gunicorn as my sole webserver using the command gunicorn --bind ...
0
votes
0answers
182 views

nginx - open() failed (2: No such file or directory)

Our ubuntu server running nginx and uwsgi is causing lot's of open() failed (2: No such file or directory) errors by ngnix. Some web pages loading slowely or do not load completely. It seems to ...
0
votes
0answers
39 views

python SimpleHTTPServer not working on a apache2 server

I have a server on DigitalOcean where I have configured apache2 for hosting. I'm trying to host a directory temporarily using root@computer:~$ python -m SimpleHTTPServer 8001 Serving HTTP on 0.0.0.0 ...
0
votes
1answer
25 views

save output of a python script to a text file

how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should ...
1
vote
1answer
168 views

Google App Engine: This operation is not possible because no App Engine application was found for this project

I'm trying to help a friend deploy a simple python app in google app engine (the free account). It seems as if his project could be corrupt? The project is: Project ID sgvfr-riprunner When I ...
0
votes
0answers
64 views

Python TCP socket and syslog

I'm baffled as to why I can't get rsyslog to log data sent to it via TCP whenever I send the data with a Python script, but works perfectly fine if I send the same string via netcat Rsyslog is set up ...
2
votes
0answers
51 views

What is “python -c import pty;pty.spawn(”bash“) ” doing? [closed]

There's a process running on a server I'm using, and lots of people have access to. When I do top I see it taking up ~99% of the CPU. with ps aux I can see that the command in question is: ...
0
votes
1answer
37 views

How to install ncclient correctly on CentOS7?

I am able to install ncclient within a virtual environment on Ubuntu 14.04 server using python pip. Also need to install ncclient within virtual environment on CentOS7 Gnome Desktop platform. But I ...
0
votes
0answers
206 views

Deploy a VMware guest with Ansible

I try to deploy a VMWare guest via Ansible. Unfortunately ansible-playbook -i inventory.local vmware.yml PLAY [all] ******************************************************************** ...
0
votes
0answers
16 views

Bitdefender decrypter [duplicate]

I have my Hostmonster VPS infected with Linux ransomware. Luckily, Bitdefender has released a free tool for decrypting the files. I don't understand how I should execute this part: - Mount the ...
0
votes
2answers
185 views

Unzip from stdin to stdout - funzip, python

The goal is to read a zip file from stdin and uncompress to stdout. Funzip works and is the solution I am looking for, the zip contains a single file, unfortunately funzip fails when the compressed ...