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
63 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 ...
16
votes
6answers
32k views

installing wxpython via pip or easy_install

I am running into some problems installing wxpython using pip. Here is my current output: [myuserid]% sudo pip install wxpython Downloading/unpacking wxpython Downloading wxPython2.8-win64-devel-2....
2
votes
3answers
250 views

Upgrading python

Is it possible to update python without root access, this is the first time using red hat linux (any linux for that matter) and the default version is python 2.3 which breaks some of my code that i ...
3
votes
3answers
5k views

Run python script from Finder rather than edit?

Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python ...
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
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
3answers
2k views

Upgrade Python from 2.6 to 2.7 on Centos 6.5

I want to update my Python version on server, my current Python version is 2.6 and I want upgrade it to 2.7. Plesk is installed in our server and I also have access to ssh. How can I upgrade it in ...
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 ...
2
votes
1answer
76 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 ...
0
votes
0answers
78 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, ...
11
votes
2answers
17k views

Python / Selenium / PhantomJS: “Unable to start phantomjs with ghostdriver.”

I'm trying to get Selenium to use phantomjs on a Windows machine. My code compiles without any error: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import ...
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 ...
0
votes
0answers
102 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 ...
20
votes
3answers
74k views

How to globally modify the default PYTHONPATH (sys.path)?

On a Ubuntu (10.10) system, I have a Python package that installs itself into /usr/local/lib/python2.6/site-packages/. This isn't contained in the default path (sys.path). How do I add this directory ...
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 ...
22
votes
7answers
90k views

Updating Python on Ubuntu system

I want to update the Python build on my Linux box, but the only way I know how to do it is uninstalling the current version and installing the new one. My system is already up to date (I updated ...
0
votes
1answer
126 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
21 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 ...
2
votes
1answer
3k views

How to add indent in Python 3.4 interactive mode Terminator Linux?

I'm starting Python from basics. The Python 3.4 Tutorial has an example for interactive mode: >>> the_world_is_flat = True >>> if the_world_is_flat: ... print("Be careful not to ...
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
106 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
4answers
3k views

Getting .py scripts to open up in Python's IDLE

I'm new to Python. I use Python 2.7 and I am running Windows Vista (64-bit). How do I make it when I click on .py scripts... that it opens up in IDLE so I can edit it a snap? Ya know... without having ...
0
votes
1answer
291 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
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
84 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:...
9
votes
4answers
21k views

Error Installing python on Windows 7 x64

I am on Windows 7 x64, trying to install Python 2.7.5 or 3.3.2. But I'm continuously getting an error showing : "There is a Problem with this windows installer package. A DLL required for this install ...
0
votes
0answers
38 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
196 views

GPU access to a newly created user in Linux (Ubuntu)

I have a desktop computer with an Nvidia GPU, and the Python machine learning library Theano installed on it. Theano uses the GPU for carrying out certain computations. When I start IPython and ...
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 ...
4
votes
9answers
17k views

Trying to edit a python file but the “edit with IDLE” has disappeared when i right click the file. How do I restore that command?

Trying to edit a python file but the "edit command" has disappeared all of a sudden when I right click the file. How do I restore the edit command so I can continue working on my python files? I ...
4
votes
3answers
1k views

Do pip and easy_install download Python packages securely?

For example, do they check a digital signature (like apt-get and Windows Update) or can they be required to use SSL? If not, I'm a bit concerned that the downloaded packages could be trojaned..
17
votes
10answers
18k views

How to install matplotlib on OS X?

I want to install matplotlib on OS X. If possible, using homebrew. I installed Python 2.7.1 using brew install python, I modified my path to use it I installed pip using brew install pip I installed ...
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
14 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
41 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 ...
1
vote
3answers
39 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. ...
0
votes
1answer
37 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
1answer
179 views

Can I install java 8 on Travis CI for a python project?

I have a python project that also requires Java 8 to run the tests and thus fails because Travis CI uses Java 7 by default. I know this can be updated if the project is a Java project but mine is ...
0
votes
0answers
42 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
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
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
1answer
61 views

Update python 2.7.6 to latest 2.7.x

My OS is Mint Linux and my python version is 2.7.6. If there is no reason for NOT update, I would like to update it to the latest 2.7.x version. I can't figure out a linux command which does this. ...
0
votes
1answer
227 views

Upgrade python 3.4 to 3.5

I have two versions of python, namely, 2.7.10 and 3.4.3 in my Ubuntu 14.04 (trusty) machine. How can I upgrade the 3.4.3 version to 3.5 latest version without affecting the 2.7.10 version? Thanks ...
0
votes
0answers
17 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
183 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
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
31 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

Triplicate entries of a column

I have a data column with over 2000 entries... MV1 BNV CMG IKN ... ... I want to triplicate each entry in the column format. Result should be; MV1 MV1 MV1 ...