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
1answer
16 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
47 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
34 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
13 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
41 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
148 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
28 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
24 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
43 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
34 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
45 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
20 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
66 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
61 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
19 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
6 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
72 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
72 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
33 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
101 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
33 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
11 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
20 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
15 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
96 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
264 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
117 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
22 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
82 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:...
0
votes
0answers
35 views

Write to terminal in Tkinter GUI

I am trying to show the changes in the command line in real time in my Tkinter GUI, I managed to create the GUI and integrate the terminal into it, but I cant bind the buttons with the terminal, my ...
1
vote
1answer
15 views

Trying to get pip onto UnixWare

I have an installation of UnixWare 7.1.4 for which I'd like to add (python's) pip. I know that get-pip.py is at https://bootstrap.pypa.io/get-pip.py My problem is that the only tools I have to get ...
1
vote
0answers
21 views

How to convert a file format from tar.gz to tar.bz2 using the windows console?

I have some python packages in tar.gz format that I need to convert to tar.bz2. Is there a way to do that in the windows console? thanks!
1
vote
0answers
12 views

Deploying web.py project to Bluehost, WSGIServer: missing FastCGI error

I'm trying to deploy a very simple web.py app to my Bluehost website using these instructions. Here's my main python file: #!/usr/bin/python import web from web import form import whitelistchecker ...
0
votes
0answers
39 views

Securely configure tor without browser

Hey i am using tor socks proxy antorher program. (ex. python requests) I'm start tor.exe with command line. I had a .bat file like this. "C:\Users\xxxxx\Tor Browser\Browser\TorBrowser\Tor\tor.exe" -f ...
0
votes
1answer
36 views

Run a Script 5 Minutes after startup

I'm doing a project in home automation and it contains a temperature sensor i.e DSB1820 and a gas sensor MQ2 coupled with an MCP3008 ADC. Using RPI2 with Jessie. now, the script which contains 2 ...
0
votes
0answers
41 views

How to install packages in remote server without super user

Here's the thing: I have access to a remote server (ssh) to carry out a project of mine. (It has better specs.) I don't have super user privileges on this system (obviously!). Hence, I can't do any ...
0
votes
0answers
16 views

Creating a self-contained installation file for pymssql for CentOS

I'm trying to deploy a Python application on a machine that due to system and organisation requirements can't have gcc installed on it, so I need to create a self-contained installation file for ...
0
votes
0answers
175 views

No connection could be made because the target machine actively refused it

On Windows machine, I start a server on port 62325 $ netsh firewall show state shows: Ports currently open on all network interfaces: Port Protocol Version Program -------------------------------...
0
votes
1answer
35 views

Pymatbridge win32 error (trying to install matlab_kernel in Python)

My goal is to install matlab_kernel on my anaconda so that I can run Jupyter with matlab kernel on my smaller laptop. However, there is a problem, when I run pip install matlab_kernel I get an error ...
0
votes
0answers
2 views

Adding new aliases to pygmentize

Quite often there's a single format but with different extensions… e.g. XML can be .xml, .xmi, .graphml, and million others. Unfortunately pygmentize guesses the appropriate lexer by the file ...
0
votes
0answers
30 views

Apache serving files as plain text

Yesterday I received my Raspbarri PI 3, which I ordered to experiment around. It's up and running with Ubuntu MATE, and connected to the network. Now I've got a few little Django projects (1.9) which ...
0
votes
0answers
24 views

Configuring askbot with apache

I am new to Askbot and Apache. Am getting the following error when I start my Apache: [Tue Mar 15 10:25:42.367470 2016] [:info] [pid 6748:tid 139731953211264] mod_wsgi (pid=6748): Attach interpreter '...
0
votes
0answers
30 views

decorator retry doesnt work

Iam trying out the example from : http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/ I get error : @retry(Exception, tries=4) TypeError: 'NoneType' object is not callable ...
0
votes
0answers
13 views

problems starting django for the first time

New to Django I downloaded a django app (DefectDojo) and I'm following instructions (on windows) to start Django. So far, I've used pip to install Django and a host of other libraries. I understand I ...