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

0
votes
1answer
12 views

Nagios command definition files

Im following the tutorial from this page. Writing Custom Nagios Plugins Everything is working fine my only problem is that the first config file your supposed to edit is the command-plugins.cfg file ...
0
votes
0answers
7 views

How to convert python 3 files into a file readable for MACs

I've been using cx_Freeze to convert my py files into exes, but now I'm looking to expand my audience and want to get my py files on macs too. Any idea of how I can do this?
-1
votes
0answers
14 views

How to add another option in Windows New option in right click context menu? [duplicate]

How can a new file type be added in the new option in context menu on Windows 7? I want to add Python file in this and maybe tweak this a bit.
0
votes
1answer
10 views

script “somescript_name.py” can not be installed because plugin “python” is not loaded in Weechat

I'm trying to install some script in Weechat but anyone of them I'm getting 16:45:56 | script: script "notification_center.py" can not be installed because plugin "python" is not loaded I'm ...
0
votes
0answers
8 views

error installing MySQL-python

I'm starting to learn python. When I try to install MySQL-python with yum from yum install MySQL-python.x86_64 I get this error Loaded plugins: katello, product-id, security, subscription-manager ...
0
votes
1answer
24 views

make error as unable to find cblas

I am trying to run the BdG-TMAT code. The folder here has both Fortran and python files since the main run file BDG_K.py uses some fortran functions. So to run the fortran code, I use a converter f2py ...
1
vote
0answers
23 views

Looping on image2pipe with FFMPEG

I have a Python program that generates images at various intervals. I'd like to be able to create a streaming video of each image as it appears. Previously I was using an ffmpeg command like ffmpg ...
0
votes
0answers
5 views

broken virtual enviornment virtualenv?

I am getting this error when I run python in my virtual enviornment: (env):~$ python Could not find platform independent libraries <prefix> Could not find platform dependent libraries ...
1
vote
0answers
18 views

PyV8 failing to install with pip, does not compile in Fedora 20

I am having the exact same issue as here: https://code.google.com/p/pyv8/issues/detail?id=132, but answer didn't work either. I am trying to install PyV8 using pip in Fedora 20. I get this: $ pip ...
0
votes
0answers
8 views

is pip install scipy fails with ld: symbol(s) not found for architecture x86_64

I am trying to install python scipy in a virtual environment using pip install scipy It fails with the following error ... ld: symbol(s) not found for architecture x86_64 collect2: error: ld ...
0
votes
1answer
25 views

Restore Mac preinstalled Python to standard

I have been hacking away at getting packages to work in my initial coding stages. I only recently stumbled upon virtualenv and found the need to install Python using Homebrew. I have installed ...
0
votes
1answer
30 views

Change pythonpath in Vim

I'm using Vim for Python coding. The problem is, that I'm writing in Python 3 and Vim settings contain only Python 2.7 paths. That does not allow me to use plugins (like python-mode) for autocomletion ...
0
votes
0answers
5 views

Opening the correct IDLE console

Right clicking on a .py file brings up a list of options, among which is edit with idle (as per the image below) The problem is that I have two python installations, both a python 2.6 (for one ...
1
vote
1answer
54 views

build vim 64bit on windows 7

i am trying to build 64bit vim on win7 64bit with visual studio 2008. My python34 is 64bit version. Below is what i did. hg to get the vim source. set VCDIR="C:\Program Files (x86)\Microsoft Visual ...
1
vote
1answer
21 views

How to install packages without interfering existing ones without using yum and without root?

I have this specific problem of setting virtual dev environment without interfering existing system and tool. The question is general. Basically I want to develop some stuff in the company, but we ...
0
votes
0answers
17 views

Recompiling a python program doesn't produce executable

Today I installed Mathics from their github repository: $ git clone https://github.com/poeschko/Mathics.git $ sudo python setup.py install And then I decided to modify the source a little bit and ...
0
votes
1answer
37 views

error due to f2py not installed correctly: how do I correct?

http://software-lisc.fbk.eu/bdg/ I am trying to run the BdG-TMAT code. The folder here has both Fortran and python files since the main run file BDG_K.py uses some fortran functions. So to run the ...
0
votes
1answer
22 views

Error getting server's IP address using Python on CentOS

I'm using Python's socket module to get the server's IP address server_ip = socket.gethostbyname(socket.getfqdn()) I get this error: socket.gaierror: [Errno -2] Name or service not known Weird ...
0
votes
1answer
18 views

How to set the bootorder for a vm in vsphere 5.x with pysphere

I am using the following python code to set the extra_config parameter bios.bootOrder: #!/bin/env python from pysphere import VIServer, VITask from pysphere.resources import VimService_services as VI ...
0
votes
1answer
125 views

pip is not recognized as an internal or external command

I have installed pip and distribute, and no errors came up. But when I enter pip into the cmd or windows powershell, it gives me an error. However, when I import pip into python, no errors come up. I ...
1
vote
0answers
11 views

How to forward data to mysql server using socket module in python

How to forward data to mysql server using socket module in python, i have try to import socket and connect it to mysql server for test, but have no data received from it, my code like this def ...
0
votes
1answer
35 views

SSH could not create directory /home/USERNAME/.ssh

My script is executing the below command: command = os.system('rdiff-backup --exclude "**.dropbox**" --exclude "**.ini**" --remote-schema "ssh -o ...
0
votes
2answers
32 views

Correct option for SSH authentication?

I'm using rdiff-backup to send incremental backups to my local server. My host is Windows and my remote is a Linux machine. I'm trying to get my script to execute the following: command = ...
0
votes
1answer
37 views

How can I get syntastic to install properly?

I followed the exact steps listed on Syntastic's GitHub page to install it as a Pathogen bundle, but I'm not getting any Syntastic feedback at all in vim. Their FAQ states this is normally caused by ...
0
votes
0answers
35 views

Why do python's os.stat and du and ls not agree on block size?

While writing a simple function that computes the quantity of blocks consumed in a directory, I checked with du to see that I was getting the same answers. Why do ls and du say this file occupies ...
0
votes
0answers
33 views

SSL with Flask and Apache always shows Test Page

I am trying to set up Flask to run on SSL, along with redirecting all HTTP traffic to HTTPS. I am currently using Apache as a web server, and it is serving traffic on port 80 HTTP properly. However, ...
0
votes
0answers
18 views

Installing pyjnius on windows8

I tried pip install jnius but, fails on my Windows8. error occur #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." Any ideas?
0
votes
0answers
19 views

How to properly install IPython on Mac with Homebrew?

How to properly install IPython on Mac with Homebrew? The method recommended by ipython.org, i.e. installing Anaconda or Enthought Canopy will introduce files that brew doctor will raise warning ...
0
votes
2answers
54 views

Sending multicast packet with source IP equal to virtual interface IP in Python

I have a system with a virtual network interface eth0:1, and I want to send multicast packets that have a source IP of that interface. However, my packets end up with the source IP for eth0. How do I ...
-1
votes
1answer
29 views

Automatically distribute files to users

I belong to an organization that puts files (pdf, mp3 and assorted videos) on a website for members (about 200) to download. We have to individually download each file (~30) and it's annoying, so I ...
0
votes
1answer
10 views

Unable to install python2.7-dev on Raring

I am trying to do it through ubuntu software center and I get this message: python2.7-dev: Depends: python2.7 (= 2.7.4-2ubuntu3) but 2.7.4-2ubuntu3.1 is to be installed Depends: ...
2
votes
1answer
268 views

OSX 10.8 PIP matplotlib 'freetype/config/ftheader.h' file not found

I apologize ahead of time if this topic has already been discussed. My situation seems to vary slightly from the others such that the path to my files is different. When trying to install matplotlib ...
0
votes
1answer
31 views

Linux create limited user

I am working on a program to monitor multiple computers. The program resides on a raspberry pi and uses python to issue a reboot command over ssh to the various other Linux machines. Thinking ...
0
votes
1answer
40 views

using Aptana Studio 3 to write Python (version 2.7.6) programs

I am taking a tutorial about Python programming. I have just installed Python version 2.7.6 on a PC, followed by installing Aptana Studio 3. When writing a "Hello World" Python program using Aptana, ...
0
votes
0answers
11 views

Accidentally deleted /usr/lib/python2.7

I accidentally deleted /usr/lib/python2.7. I tried to get that directory from another machine and copy it onto mine. However, I can no longer access the Internet now. It just keeps trying to ...
0
votes
0answers
19 views

Running script and restarting it when folder changes

The software I'm currently developing in is using Python and a windows binary that needs to be restarted everytime I change the Python code. Basic flow: Folder changed? Yes: Stop the command, ...
0
votes
0answers
20 views

What is the difference between libpython3.3 and libpython3.3m?

I was checking the Python static and dynamic libraries. I was wondering, what is the difference between libpython3.3 and libpython3.3m?
0
votes
0answers
25 views

how to run remote exe with options using python

I want to run the c:\Program Files (x86)\Altiris\eXpress\Deployment Server\rdpmigration\rmu.exe /all 10.1.1.79 15.226.126.157 and tried with subprocess call and Popen but its showing error path is not ...
1
vote
1answer
29 views

Autostart gtk application with systemd

I am writing a small daemon which logs the active window name. The relevant part goes like: import wnck import gtk from plugins import IReporter class ActiveWindowNameReporter(IReporter): ...
0
votes
0answers
66 views

py2app install error on Mac OS X mavericks

Installed py2app 0.8 on a current MacOS X mavericks. It mostly went fine except grumbling about altgraph. I tried this anyway. py2applet --make-setup pong.py and I get this ...
0
votes
1answer
33 views

Can't find Python's 2to3 utility on Fedora 20

I can't seem to find Python's 2to3 conversion tool anywhere on Fedora 20. I can't find an RPM (except an old OpenSUSE one) either. Any ideas?
0
votes
0answers
26 views

Mavericks: managing paths when using homebrew

I do not have a firm grasp of how paths work. I did a clean install of python with homebrew and had to mess around with the paths, but I am worried that they are not correct as stands. which python ...
0
votes
0answers
79 views

pip and SSL certificate errors

I am trying to install a library via pip. I have a problem with SSL certificate, even when using the --cert. Trying this on windows (pip version 1.5.4,python version 2.7.6): pip --cert ...
1
vote
1answer
20 views

Can't get a bash to work with python on a SGE

I'm currently working on a SGE and I'm extremely unfamiliar with the linux environment. I have to execute python scripts but the setup is kinda confusing for me and I can't get it to work. The ...
0
votes
1answer
47 views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
0
votes
1answer
54 views

Django with MongoEngine and/or MongoDB

OK, I'm looking to get into mongodb big-time, but I need installation assistance. Here's the stack I'd like to use: Linux 12.04 LTS (installed, configured, secured) Python 2.7 Virtualenv as a ...
0
votes
1answer
14 views

Does gedit have a maximum column length and how to counter that?

very simple question: I am writing my data in a text file in the format(say): name val1 val2 val3 file1 20 33 44 file2 30 22 22 file3 20 12 12 Now I have about 100 values i.e. ...
0
votes
0answers
25 views

pip: which pip.conf will be used?

Commonly used to install python packages sudo pip install <package> To use a different repo, I edited ~/.pip/pip.conf [global] index-url = http://<hostname>/simple That works on my ...
0
votes
1answer
27 views

show all breakpoints when debug a python code with pdb

I am using pdb to debug a python code. I set the breakpoints in the pdb command line with b [linenumber]. Can I check all the linenumber of breakpoints? thanks.
0
votes
0answers
19 views

Have fill-region break Python code into multiple lines to stay under 80 columns in Emacs

How can I get Emacs' indent-region command to re-indent def foo(): my_favorite_object_ever = ObjectConstructor(cool_parameter=4, not_cool_parameter=5) as def foo(): my_favorite_object_ever ...