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
0answers
3 views

How can I tell WebSphere wsadmin to run a python package rather than a single python file?

I'm trying to create a jython package that will allow the user to conduct some WebSphere actions from the command line. I'm using jython as the language and specify the file to run with the call to ...
0
votes
1answer
15 views

Why do I get “unsupported architecture” errors trying to install a Python library in OSX?

I am trying to install a Python library in the Presto package, source http://www.cv.nrao.edu/~sransom/presto/ Using 'gmake fftfit' I get the following error: cd fftfit_src ; f2py-2.7 -c fftfit.pyf ...
0
votes
1answer
16 views

Run python script on server over ssh session in the background persistantly

I got an account from my professor for our universities CUDA server for running some tests. I am connecting via ssh over terminal. The thing is, as I close the terminal the server also seems to kill ...
0
votes
0answers
5 views

Python 3.4.1 on Win 7 - When I press F5 to run, I want it to just auto save my work

I can't find this anywhere! How do I stop it from interrupting my run with "Source Must Be Save OK to Save?"
0
votes
1answer
17 views

Use VBA in windows to run a python method with arguments in Linux?

I'm using MS Access on a Windows 7 PC as the front end of a MySQL database back end that is stored on a SUSE Linux Enterprise server. Python is installed on the Linux server. The python script I want ...
0
votes
0answers
24 views

error: [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

I am creating system tests on a Windows7 machine using python, in which I need to open various socket connections to other machines. I also have several virtual IPs added to the local machine. These ...
0
votes
0answers
16 views

Fixing broken packages on debian

I have a debian (wheezy) box that has gotten into a screwy state. I can't install or remove any python-related packages with apt-get (including upgrading or downgrading python itself), I get this: # ...
-3
votes
1answer
28 views

lost and important file for python 34

My AVG internet security deleted a file called: C:\Python34\pythonw.exe I now cannot access IDLE or even re-install python 3.4, although I can access the command line. How would you chown that file?
0
votes
0answers
11 views

Install Oracle on Mac - Don't know machine value for archs=()

Disclosure, I have no idea what I'm doing so I'm giving you probably more background than needed in case I'm going down the wrong path entirely. I'm working on someone else's Python code. In ...
0
votes
0answers
11 views

How to batch download wikipedia pages as pdf?

I have a list of wikipedia pages that I'd like to keep updated in pdf format. What would be the easiest way to do this? The ideal workflow for me would be something that I can put into a shell or ...
0
votes
0answers
9 views

Elpy and pylint: where should a pylintrc file be placed in order to customize pylint for Emacs?

I would like to remove the 80 characters per line limit when pylint is checking files in Emacs (I am using the Elpy package for Emacs). I am on Debian Wheezy, and I'm using the backported Emacs24. I ...
-2
votes
0answers
18 views

Python find and replace using regex based on find

I have a regex: <\?prep include [a-z]*\.[a-z]* \?> used to find the string for example: <?prep include "file.txt" ?> I want to search in all files inside a directory for this regex. ...
0
votes
1answer
52 views

Change icon of file

For those of you into Python you probably know about IDLE. I use it so often that I have it pinned to my taskbar, but I've got a metro/Modern UI theme going so I want to change the icon of it. The ...
1
vote
1answer
15 views

'Find Duplicate' function using in Sublime Text

So, the highlighduplicate plugin for sulbime text does not seem to work for me so I'd like to create my own. I need this to identity duplicates so it's a step further than Sublime's 'Permute: Unique' ...
0
votes
1answer
24 views

Writing a secure login script

I'm trying to write a secure login script to allow a user to have limited access to a server and change particular options. My method for doing so is via a python script executed by the users ...
0
votes
0answers
17 views

Sentry Raven stand alone client windows

I started to use the Sentry ( https://getsentry.com/ ) and its quite awesome. The thing that i am not able to find is a stand alone somewhat "minified" raven client for windows. Im able to write ...
0
votes
1answer
27 views

500 server error using IPython notebook on Windows

I've just done a fresh install of IPython notebook on Windows 7 Professional 64 bit. The steps I took were: Install Python 3.4.1 from python.org > pip install ipython[notebook] > pip install pywin ...
0
votes
1answer
22 views

How to delete whole python and reinstall?

I have set the python window size wrong. I set the width to something like 99999 and caused a crash. Since then, I tried to delete every package installed with python, and then reinstall, but this has ...
0
votes
0answers
12 views

PyCharm having trouble with inferring ndb property type

While developing a Google AppEngine application with PyCharm, I am constantly seeing an issue where PyCharm doesn't properly infer the ndb property type. What is the best way to work around this ...
0
votes
0answers
74 views

In OS X 10.10 Yosemite, ansible crashes immediately with error: ImportError: No module named _compat

On OS X 10.10 Yosemity, after installing ansible with brew, I run it and it crashes immediately like so: $ ansible Traceback (most recent call last): File ...
0
votes
0answers
7 views

Raw_input printing new line

I'm working with a very simple script in python. I know I can rewrite things in a given line by printing "\r", but when I use raw_input and press enter the cursor automatically goes to the next line ...
0
votes
2answers
22 views

Can't use pip after download?

This is how I downloaded pip: - I installed https://bootstrap.pypa.io/get-pip.py and placed it in the Scripts sub directory of Python. - Then I ensured that the Scripts sub directory was a part ...
0
votes
0answers
22 views

Syntax highlighting in .vim for python segments files on windows

I use python a lot in my vimrc. On my linux machine it correctly highlights segments of code between func! VIMSCRIPT_FUNC_WITH_PYTHON() python << endpython import vim ...
-1
votes
0answers
3 views

Import error for Ouath [migrated]

I am using Python on windows having working the same code it was working fine now it has suddent change for the updating the programme I found the error ImportError: cannot import name ...
0
votes
0answers
8 views

hash_hmac sha512 authentication in python [migrated]

I'm trying to write python authentication bot for: https://comkort.com/page/private_api There is no full php example. I'm guess somebody could put it here. There is only snippet of php code: ...
0
votes
0answers
22 views

Syncing a static website via WebDAV?

I am running a static website at office and the sysadmins only allow updates through WebDAV(s) (Secure WebDAV) protocol. So, I have a local copy of the files' website on my machine and I upload the ...
0
votes
0answers
19 views

Python, what am I doing wrong? [migrated]

I'm new to python programming, and programming / computations in general.One of the first exercise in a book I got says to make a program that asks for 10 numbers then gives the largest odd number. I ...
1
vote
2answers
21 views

which method should be used to install python modules on Linux?

Python modules can usually be installed via, among others, pip the package manager (yum, apt-get, ...) Which one is it wiser to use? Can I mix both? I understand that removal is dependent on the ...
0
votes
0answers
9 views

Pywin 32 installation problems

I am having trouble downloading pywin32. I have a 64 bit computer, and when I go into command prompt and type in python.... it says I have Python 2.7.3 installed. Using this information, I tried to ...
0
votes
0answers
12 views

Save all installed python modules

I'm going to format my HDD so I'm curious whether is there a way to get all installed Python 2 modules and save them into some folder. I'm going to save 'C:\Python27\Lib' and then copy them into new ...
0
votes
1answer
25 views

I am not able to send post request properly with 'curl' command

I am very new to django programming.After reading some basic curl command, I am sent the following post request to python server using curl curl --data ...
0
votes
0answers
32 views

Keeping the backend code hidden from frontend developers

Working on a middle-sized web-based project, we need a way to reasonably manage the source code among backend and frontend developers. I’m wondering if there are some good practices for effective ...
0
votes
1answer
55 views

ipython notebook can't find python

I had a couple of Python 2 versions under home-brew. Since I was only using ipython notebook, I decided to uninstall all Python 2 instances, which turned out to be a bad idea because now I just get an ...
0
votes
1answer
44 views

Is it possible to open a port for listening without netcat?

I have a need for a Linux system to listen on a TCP port and dump what it receives to a file and/or stdout. The system does not have netcat installed. I have root permissions, but am not allowed to ...
0
votes
1answer
41 views

Send email for a multiple addresses [closed]

How can I send email for multiple addresses in my Python code? #!/usr/bin/python import smtplib import sys, getopt recipient='' subject='' body='' try: myopts, args = ...
0
votes
1answer
60 views

Why Does Clicking on Applescript Notifications Open the AppleScript Editor?

I'm experimenting with AppleScript and with Python. But the big issue i'm having now is not about Python specifically. The end goal is to be able to write Python scripts that use AppleScript features. ...
0
votes
0answers
33 views

USB modem on OS X doesn't respond to Python modules

My goal is to communicate with my USB modem on my iMac with Python so I can send commands and read the results and responses. I have a USB modem hooked up to my iMac and I can communicate with it ...
0
votes
1answer
100 views

Problems when installing NumPy on MacOS 10.9.4

I am using MacOS 10.9.4 with Xcode 5.1 (command line tools installed) Today I upgraded macports and installed py27-numpy. Everything looked ok in my terminal window. Then I tried to install PyCogent ...
0
votes
0answers
27 views

Batch removal of watermark from a pdf using pdftk

Is there any script available or possible to remove a specific and a very large watermark using python. How to remove watermark from pdf using pdftk? I followed everything in the above link but i've ...
0
votes
1answer
73 views

Mac OSX finder requiring permissions when deleting file, even after chmod

I created a Python script that requires sudo permissions to run (doing ICMP requests). This script creates a small directory and a couple .csv files, as well as a log.txt file. At first, after running ...
1
vote
0answers
27 views

Starting with python [closed]

I have been an open-source user for many years. I am trying to get up to speed with python. Most open-source tools are like the Borg - massive, complex, and impenetrable to the outsider, but seem to ...
0
votes
2answers
37 views

Creating a Python local server in Windows

I'm trying to use this commmand: python -m SimpleHTTPServer but it's not working. I'm guessing that it isn't working because I'm running that through Windows Command Prompt. How does one make ...
0
votes
1answer
19 views

Creating virtual host with Apache2

I'm trying to get Apache2 to host my Django project located in /var/www/tbg/. I get an Internal Server Error (500). I have already installed libapache2-mod-wsgi and My files are as follows: ...
0
votes
0answers
19 views

import .cer file into ubuntu for curl

I am trying to use fiddler to act as a ssl proxy for debugging. I am trying to install fiddlers root certificate. I am mainly doing it so I can debug my python program. Using python I get a cert ...
0
votes
0answers
11 views

Using new Python on old CentOS, but only for certain services?

I am using Trac issue tracking system version 0.12 on CentOS 5.8. I am also using Agilo for Trac plugin. This plugin needs Python 2.5 and CentOS 5 comes with Python 2.4. Is it possible to install ...
3
votes
1answer
78 views

What's the quickest way to parse and display a `.csv` file?

I am currently using python with matplotlib to display a 440+ k lines .csv but it takes 11 sec to display only one column. My .csv has always the same format. Is there a way to parse it quicker ? I ...
0
votes
1answer
25 views

How to automatically close the Debug Output Window in PTVS?

I am using the PTVS package on MSVS 2013 Express to develop and run my Python scripts. I am using the Start button (F5) to run the script. The script uses the TCP/IP stack to communicate with an ...
-1
votes
1answer
32 views

I don't see 'path' under environment vaariables

I am trying to set path for Python but I have no 'path' under environment variables. Below is a link for the original issue as well a screen shot. How can I fix this?
0
votes
1answer
16 views

Homebrew App Not Using Python Package

I installed duply using Homebrew and tried to create a backup to Google Drive. Doing so results in the following error: BackendException: Google Docs backend requires Google Data APIs Python ...
0
votes
0answers
40 views

How to change '.py' file from 'PY File' to 'Python File' in Windows? [duplicate]

I want to implement drag and drop of files onto a Python3 script. I noticed that my Windows7 64bit does not recognize '.py' as 'Python File' but as 'PY File' (Windows is just capitalizing the file ...