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
1answer
156 views

Glade for Gtk 2 not work in ubuntu 15.10

I am a new person in Glade GTK . I tried a working program (demo) in my Ubuntu using Python. But I got error message as File "revolution.py", line 21, in init self.builder.add_from_file(self....
0
votes
0answers
53 views

Convert vmware .ovf to hyper-v

Can you please tell me if there is any script that I can do(preferably in python or powersehll), for taking vmware .ovf(+his vmdk) and import it in hyper-v machine? I don't want to convert with third ...
0
votes
0answers
42 views

Find doc/docx/txt/rtf/ file containing 12 strings/words only - MAC OS

This is a strange request and I'm unsure if it's even possible but Google led me here through a not so similar question and so I thought I'd ask. I basically need to find a text file on my computer ...
0
votes
0answers
33 views

Precompiled M2Crypto to run Python script on Windows (pysFEMMA)

I am trying to run a Python script on a Windows Server 2012 R2 (64bit) server. I need to install quite a few dependencies and tools that I am having issues with. Please see the installation document ...
0
votes
1answer
51 views

Python and Berkeley DB versions in RedHat Enterprise Linux 6.6, 6.7 and 7.x

I need to know what versions of Python and Berkeley DB are installed with RHEL 6.6, 6.7 and 7.x. If several versions of Python are available (for instance, Python 2.7 and 3.3) I would need to know ...
0
votes
1answer
69 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
0answers
41 views

Ubuntu 14.04 LTS: what to do so that Python and NGINX use a secure ssl (ie 1.0.1p) library?

I'm going nuts over this issue. I'm totally unable to get a working system where Python 2.7 (Python 2.7.6 (default, Jun 22 2015, 17:58:13) and NGINX (nginx/1.4.6 (Ubuntu)) use a openssl which has been ...
1
vote
1answer
27 views

Is Ubuntu Server 14.04 LTS getting neglected by Canonical?

I'm doing some clean installs and am faced with the issue that OpenSSL is at version 1.0.1f 6 Jan 2014 (yay, heartbleed!), and Python at 2.7.6. I'm having a really hard time upping OpenSSL to the ...
0
votes
0answers
98 views

Running WeasyPrint after updating Mac to El Capitan

I recently updated my OS on my mac to El Capitan and since then have been running into issues trying to run WeasyPrint. I have updated macports, uninstalled and reinstalled all of the macport ...
4
votes
1answer
2k views

AWS Ubuntu 14.04 upgrade Python to 2.7.10, how to deal with apt-get python-dev

Ubuntu 14.04 from AWS ships with python 2.7.6. Before doing anything else to the image, I do an upgrade to 2.7.10 by issuing sudo apt-get -y install build-essential checkinstall libreadline-gplv2-...
0
votes
1answer
48 views

How to create a file with invalid or special characters in its name?

I'm trying to install some Python 2.7 module named libwapiti on Windows 7. While trying to install it, it asked me for several header (*.h) files which were not included in MSVC2008ForPython27 and I'm ...
0
votes
1answer
78 views

Pad a regex capture group?

Is there some way to pad single digit numbers with a 0 with regex? I'm using Python. 6 => 06 1 => 01 etc. Here's what I'm working on: https://regex101.com/r/iG9qC7/1 I'd like all the file names ...
2
votes
2answers
711 views

What does CPU column means on Process Tab on Task Manager

I have an application in Python that I have deployed in a Client. It shows 25% on CPU column on Process Tab. I wonder what it means or how it affects the CPU? Because most of the processes have only ...
0
votes
0answers
153 views

Installing freetype/matplotlib for Python

I'm trying to install Matplotlib for Python 3.4 but it says Freetype is not installed. Here's what I've tried: pip install freetype (can't find) pip install freetype-devel (can't find) sudo yum ...
1
vote
1answer
34 views

Unexpected BPython console output behaviour

I am using BPython to run Python scripts, and I found the console output has a different behavior than the regular Python console.. For example this small snippet: import time for i in range(100): ...
0
votes
1answer
53 views

How do I make emacs-key-bindings work everywhere in linux

I am just tired of reaching for the home and arrow keys. There is a windows hack: http://www.davesquared.net/2008/02/emacs-key-bindings-everywhere.html How can we achieve that in linux? The ...
0
votes
1answer
51 views

Where does pip install to on Linux when i use --user

I just installed a Python app using pip2 install pyriscope --user and now I need to find the installed files, since it seems like the app is built to use the python assuming it's python2, when on my ...
0
votes
0answers
27 views

Why is user _postgres on os x unable to write in a 0777 mode directory?

I'm trying to create a function in Postgresql, written in plpython, to move files from one directory to another in the file system, and optionally create the destination folder if it doesn't exist. ...
1
vote
1answer
206 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
1answer
391 views

Yum Install software-properties-common on EC2

I'm trying to install software-properties-common on an EC2 micro instance and getting the following error: $ sudo yum install software-properties-common Loaded plugins: priorities, update-motd, ...
0
votes
1answer
1k views

Python-pillow install fails, despite required library being available

Good day, I am using my Synology DS215J as a Python development environment. I have configured ipkg as a system package manager on it. My goal is to use the Django and Pillow python packages in a ...
0
votes
0answers
38 views

Python Fabric for executing local python scripts on remote server

Can fabric be used to execute a local python script on remote server which has no python installed in it?
0
votes
0answers
22 views

Intellij not going to line number of error when I click on the error message

I'm running a flask app inside of intellij, and when there's an error the stacktrace has the line number, but clicking on the error doesn't take me to the line, it just takes me to the top of the file....
0
votes
2answers
121 views

How can processes detach when I try to kill them?

I have an application on Linux where I have to kill a whole process tree from within an application. The process tree looks like: app └── parent ├── child1 ├── child2 ├── child3 ├── ...
0
votes
0answers
10 views

Broken PythonPath environment variable when using cmd prompt as admin only.

I have a folder that I use to keep my command line python programs such that they can be invoked from any directory. Specifically, this folder is in the pythonpath environment variable so that I can ...
1
vote
1answer
457 views

gendef and cl - installation

I am trying to wrestle myself through a rather complicated installation of theano on Windows 7, 64-bit, Python 2.7. I have little experience in conducting these installations - and am currently stuck ...
0
votes
0answers
85 views

How to isolate python code (without sandbox) on a linux server?

I was wondering how python hosting providers run the code you can place on their servers in a secure way. I am interested in this because I'd like to find a way to run untrusted python code on my ...
0
votes
1answer
90 views

GCC - windows - no input files

I am trying to install GCC on a windows 7, 64bit machine in order to run a specific package (theano) on python 2.7. at the moment - when i type gcc --version at the command prompt - i get the ...
0
votes
0answers
158 views

Cannot write to text file from python

I have a program in python, which takes data's from system and puts them to the text file line by line. Everything works properly when I run it from terminal using: python myprogram.py Every-time I ...
0
votes
1answer
491 views

Python: TCP/IP Socket Client, how to send login packet?

I wanted to create a bot to send login/join packets to a game server. So it will join then send more packets for it to write something in the chat, but I'm not sure how to do this. If someone could ...
1
vote
1answer
891 views

How to search and install package in Anaconda (Conda)

I am trying to install pandoc so I did conda install pandoc but nothing popped up and it told me to search. I searched with anaconda search -t conda pandoc and the results are below...How can I ...
0
votes
1answer
206 views

DD-WRT calling web service from Arduino ESP8266

I am looking for a way of finding out what devices are currently attached wirelessly to the router thats running DD-WRT firmware. Problem is that I am unable to find any references to a REST API or ...
0
votes
1answer
26 views

(X-Post) Tried switching between python verions on Linux. Ended up messing the whole thing. How to fix it?

I actually have three questions: So I was trying to switch between python2.7 and python3.4. I added both the alternatives using update-alternatives, giving priorities 1 and 2, respectively. It was ...
5
votes
2answers
609 views

“file” command yields “ASCII text, with no line terminators”, unless I first edit the file in vim

I am experimenting a strange behaviour which I don't know how to solve. I will explain the scenario: From a Python script I'm getting a json from a simple application hosted on parse. Once I get ...
0
votes
2answers
65 views

Compare two different texts - found the same and different

I want to compare the different two texts. Please check the below details and what I need The 1st text content: 111 xx1 222 333 555 The 2nd text content: 333 111 xxx 222 888 My questions I am ...
0
votes
0answers
75 views

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
0
votes
0answers
156 views

Encountered “error: command 'c++' failed with exit status 1” while trying to install pymedia in ubuntu

I'm trying to install pymedia in ubuntu to run scripts using python 2.7. So, I tracked down the dependencies and got them installed : sudo apt-get install python-dev libogg-dev libvorbis-dev liblame-...
0
votes
1answer
76 views

Python - Turbo Gears setup

I'm trying to setup a Turbogears enviroment for Python, following the guide here http://turbogears.readthedocs.org/en/latest/turbogears/wiki20.html#wiki20 I'm stuck at the virtualenv tgnev step, ...
1
vote
1answer
330 views

apache server cant write to log files

I'm developing a Django app and I'm having a problem with logfiles. I have a logger configured to write to /var/log/django/django.log. When I try to start the server, I get a 500 error, and the ...
0
votes
0answers
32 views

write to root wheel directory

I might be missing something, but I have a directory root:wheel (755), and when I do a sudo touch a it says touch: a: Operation not permitted Doesn't sudo give me full access regardless of who ...
8
votes
2answers
1k views

OS-X terminal behaves oddly after running Python interactively

After running a python repl (2.7.10) in the os-x terminal and exiting, the terminal no longer echos typed input and some other strange things happen. If I run python again and exit(), then the ...
0
votes
0answers
99 views

Python CGI 500 Error on RHEL

I am trying to setup a python cgi script on my httpd RHEL box. I am getting the following errors: [Wed Oct 07 15:53:02.256118 2015] [cgi:error] [pid 2207] [client 10.169.0.202:51691] AH01215: (13)...
0
votes
1answer
75 views

Appending to path in linux

So I've just installed the python anaconda package on a scientific linux system (I have no sudo privileges), using the given bash script. I've checked .bashrc and anaconda has correctly added export ...
0
votes
0answers
33 views

Pip links don't make sense

I followed these instructions to update from Python 2.7.6 to 2.7.10. Immediately after I started getting errors that I don't understand. Several of my site-packages seem to be lost, leading to import ...
-1
votes
1answer
101 views

How to run multiple linux commands with variables from python

I am trying to implement the below from python using subprocess but getting stuck: Within a python script I want to do the below varname = "namegoeshere" varvalue = "12345" echo "varname varvalue ...
0
votes
1answer
899 views

wine1.6 How to fix installation

sudo apt-get install wine1.6 Reading package lists... Done Building dependency tree Reading state information... Done Package wine1.6 is not available, but is referred to by another package. ...
2
votes
0answers
20 views

Do iTunes backups store file modification times?

I have an iPhone. With a USB connection, I can use tools such as Macroplant iExplorer or Apple's Image Capture to transfer files from the iPhone to my computer. When I transfer files over USB, the ...
0
votes
0answers
91 views

Since Python 3.5 upgrade my .py files won't work right

Before when i had Python 3.4 if i right clicked on a .py file it would give me the option to open it with IDLE or just open it which would do it through the terminal/cmd or w.e. I set it up so that ...
0
votes
0answers
27 views

how to adjust paragraph width in word doc from plain txt

I have a .txt file that, when opened in Word 2013 (Win-8.1) displays word-wrapping which i could not see when opened in notepad, even when I checked "Word Wrap" (under "Format"). In Word, with default ...
1
vote
1answer
477 views

How do I create a local update server for Anaconda Python?

I have a set of networked computers that do not have access to the internet. On each of these computers, I need to install the Anaconda Python distribution. This is currently done by manually ...