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

Can I use Python to code a fancy Bukkit permissions editor with a GUI?

I want to make an app that Minecraft server owners can use to write custom permissions files for their server using a GUI where they don't have to worry about YAML formatting. One of the requirements ...
0
votes
0answers
12 views

How to execute a long shell command with parameters in Python? [on hold]

This is a shell command that makes an xml from a pcap file: tshark -r something.pcap -T pdml > someting.xml I want to write a python script that does this automatically with all the pcap files ...
0
votes
0answers
7 views

OCR for underlined text as image [on hold]

I'm searching for OCR software or python module which can convert underlined text as image like this: to text. I tried multiple OCRs with no success. I have many images like this and I want to put ...
-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
9 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 ...
0
votes
0answers
4 views

IntegrityError: (1062, “Duplicate entry '1-1001' for key 'user_id'”) [on hold]

I have changed a class from class OS_PlayerMediaStatus( models.Model ): player = models.ForeignKey( OS_Player ) media_id = models.ForeignKey( OS_Media ) media_event = models.IntegerField( null = ...
0
votes
0answers
4 views

getting response data properly but server showing error code 400 [on hold]

I am sending a request to server to curl as follows curl --data ...
1
vote
2answers
16 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 ...
-6
votes
0answers
18 views

Como cria um editor de codigo em python [on hold]

Estou procurando um exemplo de como cria um simple editor de código php usando python qt ou gtk. estou fazendo um trabalho de facudade e gostaria de apresenta um editor de condigo com destaque de ...
0
votes
0answers
8 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
10 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
15 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
20 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
22 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
0answers
10 views

Python smtp email [on hold]

How can I fix this? Output when run code: Traceback (most recent call last): File "smtp.py", line 38, in session.sendmail(sender, recipient, headers + "\r\n\r\n" + body) TypeError: ...
0
votes
1answer
40 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
39 views

Send email for a multiple addresses [on hold]

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

Is there a replacement for cron with webinterface?

I am searching for a replacement that lets me view and edit the jobs and their schedules in a webinterface. It would be especially good if there's a history of the execution of jobs available or at ...
0
votes
0answers
36 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
28 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
49 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
16 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
47 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
26 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
21 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
0answers
4 views

Android (Java) method equivalent to Python HMAC-SHA256 in Hex [migrated]

I am attempting to replicate the Python HMAC-SHA256 equivalent in Android (Java). The Python representation is shown bellow with the correct output: Python print (hmac.new(key = ...
0
votes
1answer
12 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
14 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
8 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
64 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
18 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
30 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
0answers
9 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 ...
0
votes
1answer
18 views

SIOCGIFADDR: Cannot assign requested address Error in python

I want to set IP address by using python's subprocess module. I was trying to use it like this: from subprocess import call call(["ifconfig", "eth0", "50.7.192.226", "netmask", "255.255.255.248", ...
-1
votes
1answer
22 views

editing column of a text file

abc.txt consists of two column data as 1 A1021 2 A1021 3 A1022 4 A1022 I want another test file, say pqr.txt (replacing A1021 by 1 and A1022 by 2 and so on). I used the following usual perl ...
0
votes
1answer
27 views

Extracting data from an excel column

Not entirely sure if this is the right area for this question but i'll give it a shot! I have a very large excel spreadsheet that contains a number of columns. The sheet identifies tax assessed ...
0
votes
2answers
28 views

How to save the stdout and stderr to a file while still seeing the output?

I'm trying to debug a program that generates a lot of data. But the event which I want to debug happens after a random amount of time (I cannot force it). So I would need to see the stdout and stderr ...
0
votes
0answers
23 views

How can I remove anything related to python aside from the default installation on os x mavericks?

I have a really messed up python installation. I have the preinstalled version of python that comes with os x mavericks. then I installed the homebrew version with brew install python. Then I ...
0
votes
1answer
29 views

Test connection to a port without actually connecting to it

I have a python socket server (single-threaded, accepts only one connection) running somewhere. I connect to that port and do my things. How can I detect whether port is open or closed without ...
0
votes
1answer
29 views

How to add a color scheme to PyCharm?

I downloaded the IDLE-like color scheme from here. However, I can't find where to install this for use with PyCharm on Windows 7?
0
votes
0answers
18 views

Problems installing PTVS (Python Tools for Visual Studio)

After a couple of weeks working with IDLE, I am trying to add the PTVS extension to VS Express 2013 for Desktop. Following this page, I downloaded the .msi installer and run the file. The dialog opens ...
0
votes
1answer
29 views

Python path is not recognized after adding a new variable under environment variables, picture provided

'python' is not recognized as an internal or external command, operable program or batch file. My Python folder is directly in C:\python34..... Please look at the picture.... ...
0
votes
0answers
21 views

How do I put a python bot onto an IRC server?

I'm using the bot found here. There aren't really many instructions, and I want to know how I can upload it to a server and make it interact with me/people, etc.
2
votes
0answers
29 views

Tor on Google App Engine Launcher

I have installed Google App Engine SDK for Python on Windows 8.1. I use Vidalia Bridge Bundle and the Chrome extension Proxy SwitchySharp to access the net through Tor. But the problem seem to be it ...
0
votes
0answers
13 views

Smart transfer files to an isolated network environment

I'm working with a project that requires to provision a batch of files to machines frequently. But these deploy machines are located in an isolated network, which is ONLY accessible via a broker ...
0
votes
1answer
42 views

Difference in opening a file in Python in Linux versus Windows

What are the differences, if any, in how Python deals with opening/closing a file in Windows versus doing the same in Linux? I understand that in Linux the kernel acts as an interface between the ...
4
votes
1answer
248 views

Which Python format should I download?

I need to download Python to upload my project to Google App Engine. But I don't know which format to download: Windows x86 MSI Installer (2.7.7) Windows X86-64 MSI Installer (2.7.7) Here's my ...