15,190 Topics

Member Avatar for
Member Avatar for ravi_72

Hello all We are using subversion as our source repository and trying to backup the repo using Subversion hotbackup.py script I am very much new to python scripting and trying to understand the below error message IOError: [Errno 13] Permission denied Exception IOError: (13, 'Permission denied') in <bound method ZipFile.__del__ …

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for PYGUY

HI, I've got a list of 10 websites in CSV. All of the sites have the same general format, including a large table. I only want the the data in the 7th columns. I am able to extract the html and filter the 7th column data (via RegEx) on an …

Member Avatar for PYGUY
0
1K
Member Avatar for AutoPython

The title doesn't really make sense, as a number with some thing like .23238382 attached to the back of it isn't an integer, but that's not the point. I want to make a program that places commas in the correct position in a number you give. Well, in some of …

Member Avatar for AutoPython
0
191
Member Avatar for computerfreak97

I am trying to develop a program using pygame that will let you "paint." There is just one problem, when I change the RGB values, all of the pixles change!!! Please HELP!!! Code: [CODE] import pygame, os pygame.init() pygame.display.init() screen = pygame.display.set_mode((830, 620)) draw = 0 selected = 0 points …

0
47
Member Avatar for dbmikus

I am writing a function to extract decimals from a number. Ignore the exception and its syntax, I am working on 2.5.2 (default Leopard version). My function does not yet handle 0's. My issue is, the function produces random errors with certain numbers, and I don't understand the reason. I …

Member Avatar for dbmikus
0
229
Member Avatar for lllllIllIlllI

This code shows an example of using recursion to simply solve a problem. Note though, it can take a long time to do larger numbers such as the 50th fibonacci numbers this way. Hope this helps! :)

Member Avatar for sneekula
0
208
Member Avatar for klabak85

Hi all, I'm a completely new user of python (and by new I mean I started using it yesterday) but I've been programming for a couple of years now in other languages such as Java. I have a question to ask you all. So what I want to do is …

Member Avatar for jice
0
147
Member Avatar for Caleb2419

I was given an assignment to create a high/low program (well, the first part anyway) that fulfills the following pseudocode: • Print instructions to the user • Start with the variables high = 1000, low = 1, and tries = 1 • While high is greater than low ◦ Guess …

Member Avatar for Caleb2419
0
239
Member Avatar for ihatehippies

My app works fine when its a .py file, however as soon as I compile it with py2exe 0.6.9 I get LookupErrors when using the email MIME library. I tried including the "packages": ["encodings"] option in py2exe but to no avail. I'll post the relevant code and traceback. (note: not …

Member Avatar for ihatehippies
0
133
Member Avatar for stratodavius

Hello everyone: This is my first post on the site -- so if you think this post is misplaced or not formatted correctly or whatever, please let me know. Please accept my apologies in advance. My issue? I'm trying to integrate a Python script to help automate tasks we use …

0
54
Member Avatar for hwd888

I am new one for python web service. I need to switch the below java webservice client source code to python.Two services. One is systemService, the other is queueService. It needs to maintain session for queueService to use the connection to inews server in systemService . Who can help me? …

0
85
Member Avatar for somekid413

so I have a script that is taking input from a text file and using it to populate an excel spreadsheet. it keeps giving me a UnicodeDecodeError, dying on the ± symbol, I'm assuming its not in the codec that is being used: im using the xlwt package for writign …

Member Avatar for god0fgod
0
346
Member Avatar for lifeworks

Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python …

Member Avatar for sravan953
0
165
Member Avatar for edward_pedro

Hey all. I'm new to this forum and Python. I need a program that can search an inputted keyword through all the files that end with the ".txt" extension inside a given folder. The output should include the name of the files which contain the keyword, the sentences which contain …

Member Avatar for vegaseat
0
148
Member Avatar for chase32

I am trying to combine two multi-element dictionaries but am running into a problem. From the example below, what I expected was the dictionary x to contain all three unique combinations. What seems to have happened is that the y dictionary overwrote the x dictionary. Am I just using this …

Member Avatar for vegaseat
0
202
Member Avatar for furblender

Hi, I have a minor website that I wish to maintain that I do for gratis (for free). It is for a school. I wish to be able to automate the task of adding links and photos and text body. I already use a css template to maintain the look …

Member Avatar for leegeorg07
0
127
Member Avatar for gmilby

How can I hand off variables from web form to python, process then post back to a response page? PHP Form Code: <form method="post" action="test.php"> Mobile <input type="text" name="mobile"/> <input type="submit" value="Submit"/> </form> and test.php (that the form was posted to) $mobile=$_POST["mobile"]; **pass to python to process, write to db, …

Member Avatar for gmilby
0
140
Member Avatar for bolter

I'm not a python programmer, I'm mostly a hobbist that lately is developing a project in php/Mysql. Now I find myself in need of sending two python variables to one mysql table. I found the wonderful MySQLdb module but unfortunately only supports 2.3-2.5, while to run this specific python script …

Member Avatar for jice
0
97
Member Avatar for cherrypy

Hello, I am new to the IIs server6.0,I don't the process of configuring python files in IIS server6.0.I want to run my python file using IIs server6.0.How can i do this one. Please help me in this issue.

0
39
Member Avatar for csgirlie

I'm trying to store or arrange three sets of two-dimensional data into three 2xN matrices that are stored as NumPy arrays. [CODE] 1. import os # for file handling functions 2. import numpy as np # for array/matrix processing 3. import matplotlib.pyplot as plt # for general plotting 4. from …

Member Avatar for woooee
0
316
Member Avatar for gianniszaf

Hi there, I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc. …

Member Avatar for woooee
0
237
Member Avatar for huskeraider

I'm just learning python. I'm trying to figure out while loops with s.argv in a larger script on my network. hopefully this small example will show basically what i'm trying to do. argtest.py import sys for arg in sys.argv: print arg #which gives me: Life is good but could be …

Member Avatar for lllllIllIlllI
0
5K
Member Avatar for OneDreamCloser

hi all, when i am running a Python script that i made, i get a list as a result ( i do not know the number of items stored in that list ) HOW can i return each element of the list and store in an array defined in a …

Member Avatar for sravan953
0
119
Member Avatar for tweak

I'm trying to figure out how to create a custom dialog I can get the dialog to pop up when I click on the corresponding menu item but I cannot figure out how to add buttons, static text ect... Any help would be great. [CODE] def OnAdd(db): dia = wx.Dialog(None, …

Member Avatar for winmic
0
95
Member Avatar for Stefano Mtangoo

I don't know where to post it in Daniweb, but since I'm used to Python forum, I hope someone will help me here. Advices of as to where I should post this are valid! I have made a project, compiled it with py2exe and packed fine with Inno setup. The …

0
56
Member Avatar for chico2009

Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", …

Member Avatar for chico2009
0
109
Member Avatar for sab786

hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks

Member Avatar for sab786
0
89
Member Avatar for lllllIllIlllI

Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return.

Member Avatar for sravan953
0
151
Member Avatar for rajivgupta1107

Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? …

Member Avatar for vegaseat
0
230
Member Avatar for matMalo

Dears, I would like to create a list of QWidgets (lets say QDial). No problem till here. self.motorDial = [] self.velocityEdit = [] for iMotor in xrange(3): self.motorDial.append(QtGui.QDial()) self.velocityEdit.append(QtGui.QLineEdit()) The problem is to connect each of these Widgets to a function, passing to the function the index of the QDial …

Member Avatar for satyapraveen27
0
110

The End.