15,190 Topics

Member Avatar for
Member Avatar for brajesh79

Hi I am trying to automate svn checkouts using python script. this below command works from windows command prompt. I tried to use subprocess.call and subprocess.Popen , C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe /command:checkout /url: http://xxx-svn/svn/branches/Common/module/Common_Jars_v1_1/lib /path:D:/svn-test1 /closeonend:2 it is not able to recognise the parameter > C:\Users\rajesh\Desktop>python svn-test.py > Traceback (most recent call …

Member Avatar for Lardmeister
0
15K
Member Avatar for Jacklittle01

I need someo #A Python text-RPG #A Jak Production #APOC global ammo global health global lives global exp global food ammo=55 health = 100 lives=10 exp = 0 food = 30 def part1(): print "50 Days After The Outbreak:You are standing outside of the Empire State Building." print "Vines, plants, …

Member Avatar for M.S.
-1
168
Member Avatar for chris99

Just wondering how the game would be put together, maybe even a step by step tutorial. I could use this to practice with the commands used without Tkinter or Pygame. This could be a good learning experience.

Member Avatar for Jacklittle01
0
1K
Member Avatar for nova4005

Hello, I am new to the forums and I am just starting to learn python. I have been writing the following program and have ran into a problem with getting it to work right. If anyone can offer some advice on what I am doing wrong I would be thankful. …

Member Avatar for nova4005
0
145
Member Avatar for zeusprog
Member Avatar for zeusprog
0
139
Member Avatar for Jacklittle01

can someone correct this code for me? also, how do you make cmd open the .py file than execute that .py? def addition() print "This part of the test cover addition" p1 = raw_input "What is 9+9" if p1 = "18" set c()= c+1 c= 0 print "correct" else: print …

Member Avatar for Jacklittle01
0
136
Member Avatar for Dann0

Hey guys, I'm trying to make an AI character perform a pattern movement when a certain action occurs rather than have him do it all the time. I call two different methods, one to move him left, then move him right, the problem is the first method is still active …

Member Avatar for nmaillet
0
175
Member Avatar for vegaseat

Just a few more explorations using a Python class to mimic a C Structure or Pascal Record. Loading the record from a csv type data file, displaying the data and sorting and searching the data in various ways.

Member Avatar for hughesadam_87
3
363
Member Avatar for I_m_rude

t=input() while t>0: t=t-1 m,n=input().split(" ") m=int(m) n=int(n) m=m%10 n=n%4 if n==1: print (m) elif n==2: print (m*m)%10 elif n==3: print (m*m*m)%10 else: print (m*m*m*m)%10 why this code is giving me NZEC error ? it is irritating me now. thanks

Member Avatar for I_m_rude
0
91
Member Avatar for foodstamps

I'm a complete beginner in the programming world, so forgive me for the basic questions. I'm trying to run Peter Norvig's spelling corrector from the Windows XP command line, but am having difficulties. I have a text file of addresses with a number of misspellings. I would like to use …

Member Avatar for TrustyTony
0
327
Member Avatar for zeusprog

Please I'm new to python and I'm trying to understand a line of code. Can someone please explain to me the implications of the addition of the for loop inside brackets with the random integer generator. Thank you for i in range( 0, 50 ) : ran_values = [ random.randint( …

Member Avatar for zeusprog
0
272
Member Avatar for runge_kutta

Hi! I have been using igraph to generate graphs representing social networks (i.e. people are represented by nodes/vertices and connections between people are represented by edges). This has been going well, and I've managed to plot these relationships with some success. My question: Can I associate a 2-D position with …

0
56
Member Avatar for Dan08

Hi, can someone please tell me if there is a way to make my server accessible from the outside world? it works pretty well on localhost. I tried port forwarding, opening the ports it uses, but nothing works. I read somewhere that it only allows connection from the same network, …

0
136
Member Avatar for ryantroop

Which module would I look into to capture things like disc read/write speed, as well as possibly capture what the disk is reading/writing at the time. I would like to make a diagnostic module to check if my disc speed is taking a hit, as I rebuilt a PC and …

Member Avatar for ryantroop
0
97
Member Avatar for henry.sj.shin

Hello All, I'm trying to write a function that outputs the reverse of the input. I know that you can use the built-in list.reverse() or S[::-1] methods, but I want to make it using the 'for' loop. My code initially is: def reverse(S) for x in S: print(x, end = …

Member Avatar for TrustyTony
0
393
Member Avatar for ryantroop

I have taken up the Python Challenge and I am stuck on challenge 6, which requires PIL - and sadly I am using 3.2 and there is no PIL support. Yes, alternatively I could simply download 2.7. However, I know there are some differences between 2.x and 3.x and I …

Member Avatar for ryantroop
0
159
Member Avatar for markfw

Hi I'm trying to use PySerial and I'm getting "Access Denied". I don't know if this is a bug from PySerial library or I'm doing something totally stupid :-) Specification: Windows XP pro SP3 PySerial-2.5.win32 (Installed from binary) Python 2.7.1 (I know it's a bit old :-)) [CODE] from serial …

Member Avatar for meistervision
0
3K
Member Avatar for kwolfe

Hi, I'm trying to read IP and login info from a text file params.txt. The contents of the text file are: IP = '1.2.3.4' UID = 'anonymous' PWD = 'my@my.com' Upload Directory = '/' Home Directory = 'C:/Users/MyDocuments/Python/FilesUpload/' Can someone help me please? import ftplib import re import os import …

Member Avatar for snippsat
0
2K
Member Avatar for lukerobi

I am currently trying to load a few script through boost python. I ran into some trouble today while trying to launch idle from it however and I cannot figure out the cause of the issue. This is on a windows 2008 machine, and I am currently running Python 3.3 …

Member Avatar for lukerobi
0
412
Member Avatar for SnHnBoLt

#Dictionary practice def menu(): print("1. Add name and number") print("2. Print the directory") print("3. Quit") options = 0 directory = {} while options < 3 : menu() options = int(input("Enter your desired option :")) if options == 1 : print("You selected to add name and number") name = input("Enter name …

Member Avatar for TrustyTony
0
351
Member Avatar for StarscreamTim

Hey guys, I'm new here, and I'm new to Python. So I've got a sample program: a = raw_input("Enter some text: ") while a != "quit": print a a = raw_input("Enter some text: ") print "Are you sure? (y/n)" b = raw_input() if b == "y": exit I was wondering …

Member Avatar for TrustyTony
0
163
Member Avatar for kuchi

I've data showing on page using list and inluding some other fields. When I submit the button, I can take web elements using form["name"].value but how can I get the objects from form? or is there way to get the objects without web form in python?

Member Avatar for ryantroop
0
118
Member Avatar for britanicus

While I was trying to write a small program to preview DjVu files I encountered a peculiar problem. This is a small function that renders a page of a DjVu document into QImage class of PyQt4. import djvu.decode as DjVu from PyQt4.QtCore import QImage from PyQt4.QtGui import QPixmap, QApplication, QLabel …

Member Avatar for Ene Uran
0
480
Member Avatar for mark.collier.3388

Hi I have a script that makes FTP requests, HTTP requests and stores files. It needs to be run daily, ideally I would like for it to be run in the cloud. I thought about using Google App Engine, but I have heard you can't make FTP requests using their …

0
27
Member Avatar for crag0

I am hoping someone might point me in the right direction. I am still very newbie with coding and python. I am currently trying to open a zip file and I keep getting "file is not a zip file". I have checked using “file” in terminal and it shows as …

Member Avatar for crag0
0
1K
Member Avatar for hedwards

Hi, so im writting a Python program, and ive hit a spot of bother "TypeError: unsupported operand type(s) for %: 'list' and 'int'" #if n is 1 the sequence ends #if n is even the next n of the sequence = n/2 #if n is odd then the next n …

Member Avatar for hughesadam_87
0
177
Member Avatar for nchy13

Terminal shows foloowing error on entering command for "post review". "Unable to find a Review Board server for this source code tree". can you suggest how to set review board server url.

Member Avatar for TrustyTony
0
107
Member Avatar for toyotajon93

Hey guys, I've done alot of work coding a script that works great in Python. I hope to move it into java then hopefully into an android app. Any advice on getting started? I have searched and searched and cannot really find a good way to do this. I had …

Member Avatar for M.S.
0
147
Member Avatar for maurya10

How do I commit to svn in after posting a review request and being reviewed . Please elaborate

Member Avatar for TrustyTony
0
37
Member Avatar for ryantroop

Anyone know any good online.. I guess.. challenges or tutorials that will teach the fundamentals of the automated QA process using Python? Is it simply TDD? Or is there more to it? If it is TDD, can anyone suggest where to practice this more, other than "come up with a …

Member Avatar for ryantroop
-1
127

The End.