Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python and should be asked at [Stack Overflow](http://www.stackoverflow.com).

learn more… | top users | synonyms

1
vote
0answers
6 views

Snippets for PyCharm (specifically django templates)

I am in the process of moving from SublimeText to PyCharm for python development. One feature I loved in Sublime were the Djaneiro Django template snippets. In a template, I could just type include ...
0
votes
0answers
6 views

copy a pc file to VM env/linux

I have a file on Desktop 'Test1.py'. I want that file to run on saltmaster VM and am trying to copy that file through scp commands. I hit this command scp Test1.py ...
-1
votes
0answers
9 views

How do I submit data to a web form in python? [migrated]

I'm trying to automate the process of creating an account for something, lets call it X, but I cant figure out what to do. I saw this code somewhere, import urllib import urllib2 import webbrowser ...
0
votes
0answers
5 views

Setup SSH tunnel on windows machine using sshtunnel

I would like a local program to be able to ssh into a machine which is on a private network. The schematic should be like this: (external machine) ---ssh---> (external/internal facing server) ...
0
votes
0answers
6 views

Anaconda show error under cursor on current line

I would like to know if it is possible in Anaconda to show more information about the error on the current line. I have only found context menu > Anaconda > Show error list, but this shows all ...
0
votes
0answers
28 views

After declaring Panda3D's python as my interpreter, it unlinks all other libraries that I need

(I use Eclipse on mac but I can switch to any other tools that can solve this problem.) Since I need to use the library Panda3D, the way to setup Panda3D showed on its official website is to make the ...
0
votes
0answers
5 views

What kind of JIT uses PyPy

What kind of JIT compiler uses PyPy. The real one (whole code is translated at app start-up) or the economic one (only used parts are compiled)?
0
votes
0answers
12 views

Detect when 'New E-mail' or 'Send' button is clicked in outlook

I'm trying to write up a python script that could detect when a button ('New E-mail' or 'Send') is clicked in Microsoft Outlook - > and then do something if that is true. Is there any way that ...
0
votes
0answers
8 views

how to use python with nginx

I have nginx running under Windows. What I can't figure out is how to bind python interpreter to nginx. I guess it has something to do with nginx.conf. I'm going to use Django or other framework, I ...
0
votes
0answers
16 views

Creating a bash script or something to run through several directories

I had a quick question. I have the code below, which as you can see, I am loading in a file. Note that I am in the folder "Angle1" and that I am in the subfolder "1eV" The code works fine and does ...
2
votes
1answer
36 views

Python Script with .py Extension Data Recovery

I have deleted some of my python scripts about 3 months ago and now I want to recover them, I tried Data Rescue 4 which is told as the best data recovery software but it was unable to find .py ...
-1
votes
0answers
12 views

How to start with this [migrated]

Hi I want to excute the following command in python using for loop. I have written the following code but it is not working. x = 5 for i in x: if (x % 2) == 0: print (i, "is an even number") else: ...
0
votes
0answers
33 views

Python module path not found

On our Openstack installation somethin awfully went wrong. Now python does not work properly any more. The module path is not found: root@controller:/root# keystone token-get Traceback (most recent ...
0
votes
0answers
12 views

Recon-ng on Windows disables all modules

I was running Python 3.5 but got to know that recon-ng tool runs on Python 2.8 or below. Therefore I installed Python 2.7.11 also on my Windows 10 system. I installed the dependencies also mentioned ...
1
vote
1answer
18 views

Installing parallel-ssh on python2.7

I am trying to install parallel-ssh on python2.7. My use-case for using this is to make an ssh connection run in parallel and not let it block further execution of a python file. I used the following ...
1
vote
0answers
15 views

Installing Python Chromagnon for OSX Terminal to extract/restore Google Chrome tabs

I saw this suggestion posted here http://softwarerecs.stackexchange.com/questions/19500/tool-to-read-data-from-google-chrome-snss-files/19501?noredirect=1#comment46394_19501 but am not sure how to ...
1
vote
0answers
15 views

Running an ssh connection as a daemon

I am trying to monitor gerrit events through an ssh command. The command is as follows. ssh -p 29418 review.example.com gerrit stream-events I need to monitor various such gerrit instances running ...
0
votes
0answers
25 views

How do I use uncompyle6

I am new to Python. I have version 2.7.11 installed on my MacBook Pro, running Yosemite 10.10.5. I am trying to figure this out because I would like to decompile the scripts to the Native Instruments ...
0
votes
1answer
24 views

Python - TypeError: 'list' object is not callable [closed]

I'm trying to write a text file that has a list of rearranged alphabets so that each begins with a different character. The first letter is moved to the end, repeat. alphabet = ...
0
votes
0answers
14 views

What is the best way to create a friendly interface for postgresql database? [closed]

I've created a Posgresql database, and I'd like to create a web form to be easier and faster for inserting data in the database. I found out there are a lot of different alternatives, php, python, ...
0
votes
0answers
9 views

Fixing a Python installation in Ubuntu 15.04

In order to run a program that requires Python 3.5, I recently installed it from source using checkinstall: # download and extract the source # install dependencies cd Python-3.5.0 ./configure make ...
1
vote
1answer
11 views

Move Code PyCharm

I am currently re-structuring my Python Code using PyCharm. I am often in the situation that I have to "move" many lines of code due to the indentation mechanism of Python. Moving lines of code ...
0
votes
0answers
22 views

Compiling OpenCV from Source Excluding Features

I'm trying to install OpenCV 3.1.0 from source on OSX following this article. Long story short, I'm at the point of creating the make file using the following declarations: cmake -D ...
0
votes
1answer
29 views

Python application called under apache server is not the same as one run from command line

So I'm running dokuwiki under Apache on RHEL6 and working on a plugin that calls proc_open in a php script. My problem is that I'm trying to call an application that has been installed locally for ...
0
votes
1answer
13 views

Python logging output limited to ~65 lines

I am working on a simple python script on CentOS 7. There is an error, but I am trying to figure it out using the log. I have a logging class that has the following logging levels: Error Warn Degub ...
0
votes
0answers
10 views

Anaconda install core dumps when trying to unzip

I download this file: wget http://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh And run it per the instructions: bash Anaconda2-4.0.0-Linux-x86_64.sh And it core dumps trying to ...
0
votes
1answer
32 views

Sublime Text Editor 3 doesn't show traceback when running Python code

Yesterday I installed ST3 and installed some plugins, but I noticed that if Python has a syntax error then it shows an error. But when a statement has a non-syntax error, then it shows nothing. Like ...
0
votes
0answers
11 views

OSX-Launchd leaving processes open

I've written a script in Python that I call using launchd every night. The script uses a time delta to stop after a few hours. I'm finding that my plist file and script are working properly (launching ...
1
vote
1answer
137 views

How to pass nmap outout to a Python script

I have a list of server, and I want to nmap then pass to a Python parser (this) So normally I do this: nmap -sV -p- hostname -oN - | python nmaptocsv.py > hostname.txt Now I want to create a ...
-1
votes
1answer
25 views

Why do I have multiple python executables?

I am trying to add python to my PATH variable, but I'm not sure which one to add, or what the difference is. I have one in \appdata\local\programs\python\python35-32\python.exe and also one in ...
1
vote
0answers
20 views

Troubleshooting tips for SSH issue on proprietary software

I am having an issue establishing a channel with a piece of hardware that we purchased. I can SSH into the VXworks OS using both Putty (on Windows) and the Ubuntu's CLI, however, when I send commands ...
0
votes
2answers
37 views

Running a Python script that accesses a protected file when Windows starts

I have a Python script that adds some text to the hosts file which allows administrator access only. So, what I do is I first open cmd from the Start menu on Windows 7, and then right click and go to ...
0
votes
0answers
10 views

Why doesn't home-brew correctly configure my python installation?

I installed python 2.7.11 using home-brew on my OS X EI Captain. Note that EI Captain shipped with python 2.7.10 already. However, it seems like the install done by home-brew did't correctly configure ...
0
votes
1answer
28 views

Strange socket behaviour (one computer - my laptop - will accept a connection to my server, another - my PC - won't)

I wrote 2 programs in Python 2.7. One creates a host socket while the other one creates a client socket. Then they try to connect. I had my host program on my PC and put my client program on my phone ...
0
votes
0answers
34 views

How to direct (Python) error messages printed in a PowerShell console to a text file

Firstly, the errors I'm interested in redirecting are NOT PowerShell errors, but those generated by a Python script that is called within my PowerShell script. I have read multiple post on here (and ...
0
votes
0answers
13 views

how to switch from sudo mode to normal mode for system installation script in python

I want to automate installation of mongoDB,meteor etc in python on centOS and at some point I want to switch to normal user. tried several codes which are given below but none works,also I need proxy ...
3
votes
1answer
46 views

How to pipe AWK command output to Python as first argument

I have a plain text file input.txt which looks like: D000001 D000001 44 1975 D000001 D000408 1 1983 D000001 D000641 1 1977 D000001 D000900 27 1975 I process this file using simple AWK line: awk ...
1
vote
0answers
6 views

Python multiple variables on left side of assignment operator [migrated]

Could someone please explain the concept of having a comma delimited chain (probably not the correct terminology, but I didn't want to confuse it with list) of variable names on the left side of the ...
0
votes
0answers
35 views

No Plink output from python script

So here is the stack Rasberry Pi, has a python script python.py Hardware connected to pi, which runs my python Windows machine uses putty to kick off python script, via putty/plink to startup the ...
0
votes
2answers
30 views

How To Execute /bin Functions From The Python Terminal?

I'm actually running a python interpreter through a Linux bash terminal, and I'd like to be able to execute some of the bash commands in /bin through the python interpreter. How might I do this?
0
votes
1answer
16 views

Control A on Mac Terminal behaves unexpectedly while using python ipdb

When I'm using Python ipdb (and this only happens on one of my three macs), I type Ctrl-A to get to the beginning of the line (after running a few statements without issue). The cursor APPEARS to jump ...
0
votes
0answers
5 views

Virtual memory size same Python application on Centos 7 and RH 5.2

Is there a reason why the same python app and code consumes about 90MB of virtual memory size in Red Hat 5.2 32bits python 2.4 and abut 300MB in Centos 7 64 bits with python 2.7? Both app's versions ...
0
votes
0answers
44 views

pip install python ImportError HTTPSHandler

I just reinstalled python with homebrew and moved some things around in my etc/paths to load this version of python first. I also removed the python.framework from apple. I cant install pip packages, ...
2
votes
1answer
50 views

How do I get Docker to write into a local directory?

I'm trying to set up a wagtail (a django extension, http://wagtail.io/) site using Docker, and it seems to have worked, but as far as I can tell it has hidden the site away from me somewhere in the ...
1
vote
1answer
30 views

Mac Pro - $PATH messed up and “command not found” errors

I was installing opencv Python on my Macbook pro el capitan and in setting up the path messed up my .bashrc or path etc. I tried several of the suggestions on the SO and SU, to no luck, now i am ...
2
votes
1answer
43 views

Skype4Py line break

I try to use Skype4Py for Nagios notifications. I already can send messages from command-line. Now I try to insert line-break character (carriage return) into body of message. I use the following ...
0
votes
0answers
86 views

What is the difference in Windows CMD and PowerShell redirection and text Encoding?

Granted, this is not a great title, but to be honest I was unsure how to word the question without posting an essay as the question. This description should add some flesh. Problem: I have a Python ...
1
vote
0answers
25 views

A way to update gimp plugins on OSX all at once

I'm using GIMP 2.8.16 and py-slice.py keeps throwing errors for layered grouped psd files and its preventing me from exporting it to web. I am simply trying to send my sliced image to web with no ...
0
votes
0answers
8 views

my idle editor file might be corrupt because whenever i open it the document is blank

Ok so i finished a project saved it and closed it. Then I shut down my computer and later that day I opened it back up. I clicked 'edit with idle' and the document was just all blank. No code, no ...
0
votes
0answers
18 views

Creating Python profiles in Atom and assigning keyboard shortcuts

I'm using Atom-Script to run code from within the atom-editor. I've two versions of python installed, in the following folders: C:\Python27 C:\Python35-32 I would like to use the Atom-Script ...