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

0
votes
0answers
22 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) ---ssh--...
0
votes
0answers
12 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
46 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
8 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
20 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
10 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
29 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
96 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 ...
0
votes
1answer
235 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
49 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
26 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
26 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 ...
0
votes
1answer
100 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
107 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 = ['a','b','c','d','...
0
votes
0answers
25 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
22 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
75 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 CMAKE_BUILD_TYPE=...
0
votes
1answer
36 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
16 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
17 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
50 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
12 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
153 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
29 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 c:\...
1
vote
0answers
39 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
51 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 ...
1
vote
0answers
15 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
41 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
55 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
29 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
109 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 '{...
0
votes
0answers
89 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
31 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
21 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
8 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
96 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
99 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
34 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
45 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
121 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
38 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
16 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
30 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 ...
0
votes
0answers
17 views

Does Elastic Beanstalk inherits global packages when it creates a virtualenv?

Deploying python application on Elastic Beanstalk. EB creates a virtualenv during the deploy. I want to know if this virtual env inherits globally installed packages for the root user?
0
votes
0answers
137 views

Chrome Native Messaging “Native host has exited.” on python 3rd party package import

I'm working on a Chrome Extension that uses the native messaging feature to communicate with a Python script. As part of the Python script, I need to watch the file system, so I am pulling in watchdog ...
0
votes
1answer
487 views

Yum repo with python 2.6 on Centos7

I need to run Nodejs 4 on a CentOS 7 machine. I have a limited internet access on this machine and basically can only hit Yum repositories (I can add new ones). Since Nodejs 4 is not available even in ...
0
votes
1answer
194 views

cannot execute binary file python on mac local machine

version --python shows that I have version 2.7.10 installed on my mac, it's located in /System/Library/Frameworks/Python.framework/Versions/2.7 trying to execute python from terminal raised the error: ...
0
votes
0answers
12 views

How do I change all objects within a S3 bucket to reduced redundancy?

I'd like to know if there is a bucket wide (not per object) way of doing this. Bash, s3cmd, python any possible way would work for me. Thank you!
1
vote
0answers
33 views

Apache Server Running Django Project showing only “Index of /” and the names of project files instead of running the site

When I navigate to the site, it only shows 'Index Of /' and then the files I have inserted in my htdocs. I've looked at a lot of people with this same error but haven't found a solution yet. I'm using ...
0
votes
2answers
109 views

Problems with Autossh: running from cron vs terminal

I'm trying to setup a reliable reverse tunnel between a server to several client boxes. I'm using autossh to re-establish connections if they drop or go stale but I'm having some problems. THE SERVER:...