Python is an interpreted, general, high-level programming language. The design emphasizes readability. It is notable for using tabs to indicate block levels. As a dynamic language, it shares many similarities to Ruby, Perl, and Scheme. The language is very popular for scientific computing and ...

learn more… | top users | synonyms

1
vote
0answers
89 views

Error installing Python package Leven using Visual C++, Python27 64 bit, Windows 10, even installing directly from github

I am having trouble installing the Python package Leven. I downloaded the python package from there. I extract the folder, went to where setup.py is located, open cmd and run python setup.py ...
0
votes
0answers
18 views

Add a new locale to OS X (/usr/share/locale)

I am trying to add a new locale support to my OS X system, which I could then use in Python scripts. It is Indonesian locale (id_ID) and I currently do not have it in my /usr/share/locales directory, ...
4
votes
1answer
133 views

Can Emacs be set up to display Python code in Python mode and display docstrings in ReST mode?

I often edit Python code in my Emacs and have it set up to display Python files in Python mode. I often find myself formatting dosctrings as ReStructured Text and I was thinking that it would be great ...
1
vote
1answer
251 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
1answer
58 views

Can't Update Python

I have Python installed at /usr/bin/ and its version is 2.6. Then I downloaded Python2.7.tgz and extracted it at location /scratch/bin/ and then installed using the steps ./configure make sudo make ...
0
votes
3answers
65 views

Python script to compare the keys of 2 dictionaries and if equal print value of the key of 2nd dictionary

I have 2 dictionaries for example: dict = {1 : a, 2 : b, 3 : c, 4 : d} dict1= {5 : z, 1 : y, 6 : x, 3 : u} I need to compare the keys of 2 dictionaries and if they are equal, I have to print the ...
1
vote
3answers
467 views

virtualenv command not found in El Capitan

OS: Mac OS X 10.11.1 (El Capitan) Python: Homebrew Python 2.7.10 pip: 7.1.2 (latest) I installed virtualenv by pip install virtualenv, the installation was successful. But when I typed virtualenv, ...
2
votes
1answer
19 views

Folding specific sections of code in vim

I'm wondering if it is possible to automatically fold only specific sections of code in vim (specifically for python files). I'm currently using the indent fold method. And I would like to only fold ...
0
votes
0answers
25 views

Can't create or see Windows 7 restore points anymore

Long story short, I was deleting some path variable in the Environment variable > system variable > path. I needed to clean up some path variables for my python. Have done something like this before, ...
1
vote
1answer
45 views

How to get csvkit to recognise long ASCII lines?

I am using Ubuntu and I downloaded this CSV file, which file tells me is encoded like: ASCII text, with very long lines, with CRLF line terminators However, when I pass csvcut -e ASCII datafile, I ...
0
votes
1answer
38 views

Python developer on Windows with access to Linux - How to link?

I am a python developer who is stuck on a windows machine that doesn't support all the necessary library versions that I need to use. Luckely I have access to a Linux box, which I normally open via ...
0
votes
0answers
14 views

Python scheduler using bat file

I have got a pyhton script for reading a csv file from a server, extracts one line and send an email with the extracted line. But I would like to run the scipt every 20 minutes which is the time step ...
0
votes
0answers
47 views

Python Win 7 Pip Install gcc Error

I'm attempting to install PyOpenGL_accelerate via pip and I'm receiving this error: ... c\PyOpenGL-accelerate -IC:\Python34\include -IC:\Python34\include -c src\wrapper .c -o ...
1
vote
2answers
45 views

What is the difference between working on a machine and doing the same task over ssh?

I have been working at University on a local machine which is on a server that I have access to. I have some c code and am able to carry out parallel runs of the code as expected. However when I ...
1
vote
0answers
85 views

How to clean up a failed pip installed app?

I was trying to install flask onto a Raspberry Pi Raspbian using pip-3.2 install flask. However, the installation failed. I tried to uninstall using pip-3.2 uninstall flask. It said "Successfully ...
0
votes
0answers
9 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 ...
1
vote
0answers
98 views

pip hangs after upgrade to 7.1.2 on Windows x64

I am using the Anaconda distribution for my programming needs in python (Python 2.7.10 :: Anaconda 2.3.0 (64-bit)) - running under Windows 10. After upgrading the pip package manager to the latest ...
3
votes
1answer
149 views

Wireless driver for mouse movement on LInux/windows (with the help of interactive board)

I have moved to mainly working on Linux machine primarily Ubuntu 15.04. Please the question here: http://askubuntu.com/questions/731546/wireless-driver-for-mouse-movement-on-ubuntu-15-04 I have a ...
0
votes
0answers
19 views

Twitter API for Python

I am looking for a convenient Twitter API for Python. There are some Python APIs available however it seems they have some limitations on the number of tweets that can be retrieved. I wish to analyze ...
0
votes
0answers
73 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 ...
0
votes
0answers
39 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
24 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
18 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
24 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
0answers
27 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
23 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
23 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
58 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
924 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 ...
0
votes
1answer
33 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
44 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
93 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
60 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
22 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
37 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
32 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
24 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. ...
0
votes
0answers
44 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
89 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
619 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
29 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
16 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 ...
0
votes
2answers
45 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
9 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 ...
0
votes
0answers
149 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
30 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
40 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
70 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
263 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 ...
0
votes
1answer
177 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 ...