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

Sublime text editor 3 doesn't through traceback in python code

Yesterday i install ST3 and install some plugging. But i notice that if python is synthetically error then it shows error. But when a statement error then it show noting. Like this code doesn't ...
4
votes
2answers
3k views

Sublime Text can't find interpreters for SublimeREPL

Interestingly, I'm able to execute .py files through any of the Tools -> SublimeREPL -> Python ->* options, except virtualenv, which does nothing, or execnet, which is not applicable, but ...
0
votes
0answers
7 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 ...
0
votes
0answers
90 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
23 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 ...
0
votes
2answers
30 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
16 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
1answer
578 views

Installed Python 2.7, but Module in /usr/lib/python2.6/site-packages

I'm running CentOS, it already has Python2.6. I installed Python2.7 and I can see version 2.7 with python -V. I installed demjson module(pip install demjson) and then I try to execute the program. It ...
3
votes
3answers
163 views

How to jump to top or bottom of script with keyboard shortcuts?

I'm looking for the VI/VIM equivalent of 'gg' and 'Shift+g' but within PyCharm. Searched through their docs and didn't find anything.
0
votes
0answers
8 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
24 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
23 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
2answers
96 views

virtualenv cannot create environment

System used= ubuntu 14.04 , python = 2.7.6 . I'm trying to setup virtualenvironment using virtualenv to setup django1.8 . I installed pip and virtualenv using below commands apt-get install ...
0
votes
0answers
10 views

Something like OpenProcessing and ShaderToy for python, javascript, julia etc [on hold]

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
11 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 ...
4
votes
2answers
7k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
3
votes
1answer
30 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
1answer
12 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 ...
1
vote
4answers
57k views

Scatter chart, with one text (non-numerical) axis

Lets imagine I manage 100 pizza stores. I want to plot a chart each day, of how long deliveries are taking. My data might look like this: London 23 London 22 London 44 London 18 ...
1
vote
1answer
3k views

Python Won't Install On Windows 7

I'm trying to install Python on my Windows 7 (64-bit) - AMD Sempron Machine. I downloaded the 3.1.2 Windows X86-64 installer. After running it and selecting the option to install it for all users, the ...
1
vote
3answers
888 views

Is it possible to run a program as a specific user but with root permissions?

I'm doing development with PyCharm, doing development on a script that uses the scapy module for Python to do port scans, sniff traffic, and build raw packets. This, of course, requires root ...
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 ...
3
votes
3answers
6k views

using python Paramiko for ssh: sudo: no tty present and no askpass program specified

I want to use paramiko to ssh into a bunch a remote nodes and run some command line with root priviledge I have ssh key in my home directory and so i don't need to input password when I ssh into ...
0
votes
2answers
779 views

Can't import matplotlib on Anaconda (Python), on my Mac, even though it's installed on the terminal and set as a default

So basically on my Ipython I can't get it working even though it's installed, and the terminal shows that it should be working. Syntax and Error In [1]: import matplotlib.pyplot as plt ...
0
votes
0answers
17 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
30k 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 ...
-1
votes
1answer
27 views

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

>>> 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 ...
2
votes
3answers
248 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
4k 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
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
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 ...
4
votes
2answers
8k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
0
votes
3answers
279 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
40 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
41 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
35 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
16k 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
26 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
77 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
15 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
72k 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
7 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 ...
20
votes
7answers
81k 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
33 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
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 ...
1
vote
1answer
2k 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 ...
1
vote
2answers
15k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...