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
15 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
7 views

Something like OpenProcessing and ShaderToy for python, javascript, julia etc

I'm enthusiast in computer graphics and physics related computer simulations. I like a lot processing (kind of java), and hosting of sketches openprocessing (but now it kind of sucks because of java ...
0
votes
0answers
8 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
27 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
18 views

Negation Handling NLTK and adding Neutral [on hold]

i am working on a sentiment analysis (python) and i got to a point were i need to handle negation but i didn't know how to do that i just figured out a method how to do it but still not working right ...
0
votes
0answers
11 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 ...
-1
votes
1answer
23 views

python: How to Store output of an OS call to a variable? [on hold]

>>> import os >>> os.system("ping google.com") PING google.com (216.58.222.78) 56(84) bytes of data. 64 bytes from rio01s15-in-f14.1e100.net (216.58.222.78): icmp_seq=1 ttl=56 ...
-1
votes
0answers
6 views

Rewriting MEL code in PYTHON [closed]

my code in mel string $selection=`ls -sl`; string $buffer[]; tokenize ":" $buffer; catch(`select -r ($buffer[0]+":cog")`); catch(`select -tgl ($buffer[0]+":spine*")`); catch(`select -tgl ...
0
votes
2answers
25 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
10 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
27 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
39 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
22 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
37 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
70 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
13 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
6 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
13 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
11 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
30 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
51 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 ...
-2
votes
0answers
17 views

Changing label text

I'm new in Python. I'm trying to execute the code in the def newVar() and at the end change the text in label_1 which is in def init import tkinter as tk class simpleapp_tk(tk.Tk): def ...
0
votes
1answer
28 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
9 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
14 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 ...
-2
votes
0answers
30 views

Error with ubuntu server attempt to write a readonly database

We have created an Ubuntu server with amazon web services, and seem to be having some problems after we have installed django and Apache. When we upload our project to the server, we can't login as ...
0
votes
2answers
23 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 ...
-2
votes
0answers
28 views

How can i install pdfminer in python 2.7 - windows 8?

i need to use pdfminer in python but i don't know how to install :) How can i install the pdfminer ? and i tried to do like that pip install pdfminer should i download it ? because every time i ...
0
votes
0answers
17 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
14 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
18 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
8 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
20 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
22 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
30 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
9 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
78 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
14 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
23 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
18 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
20 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 ...
1
vote
0answers
45 views

How to parse a Wireshark pcap for a string

What efficient ways exist to parse a Wireshark capture to check for a given string? I'm trying to find a STOP command for an embedded device that its plaintext in the Wireshark 'info' field. Are ...
1
vote
3answers
33 views

How can I give maximum CPU Utilization to this Python Process

I'm using Spyder IDE for Data Analysis using Python. My dataset is pretty large and hence I wish to give it maximum priority. I've set the priority to realtime however it is only using 13-15% of CPU. ...
1
vote
0answers
31 views

Disable Ghostery add-on intro page in Selenium Firefox profile - Python

I am using Ghosetry add-on in my Selenium Firefox profile. Firefox is opening with Ghostry add-on but I have two issues with that. 1.Every time I invoke Selenium-Firefox, it is going to intro page ...
0
votes
1answer
44 views

Fixing homebrew path

i'm learning python and most tutorials recommend to install python using homebrew so i installed homebrew then i wrote brew install python which should overwrite osx python 2.7.10 with 2.7.11 ...
0
votes
0answers
20 views

Module is found by python2.7 but not python3.4 in debian 8

I m trying to use a python module in python3.4 but I did the whole PythonPath variable thing in my .bashrc file and the module only works with python 2.7. If I run python3.4 interactively and try to ...