473,550 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
1,248
thread by: geohaskett | last post Aug 6 '13 by: geohaskett
I am trying to use Python 2.7 to open a web browser and download and save a linked kml file. The website is: rmgsc.cr.usgs.gov/outgoing/GeoMAC/ActiveFirePerimeters.kml When I run the code below, a new kml file appears to be saved on my drive, however it does not bring over the entire file. Instead of 154MB, it brings over a file that is...
0
1,071
thread by: nirmala | last post Aug 10 '13 by: nirmala
Hi I have a problem in using svn repository. When i try to update my project in svn i m getting the following error oomsys@oomsysmob-6:~/brundelre3$ svn st svn: warning: '.' is not a working copy oomsys@oomsysmob-6:~/brundelre3$ svn up Skipped '.' I tried the things which explained about these error previously from this links Removing...
0
1,234
thread by: ErnieMango | last post Aug 16 '13 by: ErnieMango
Hello so i am still kinda getting into Python even dough im not to good at it entirely its a very enjoyable language. So i have a question what is the code to read a USB Serial port from the computer? Like when you plug in a Flash Drive and Windows Recognizes it and tells you if you want to open it with a certain file. - Thanks
0
940
thread by: nirmala | last post Aug 23 '13 by: nirmala
can anyone tell how to replace a navigation portlet with my own template. I did like this 1. I created one new class for portlet in my .py file and its look like below class navigation_address(Renderer): index = ViewPageTemplateFile('templates/portlet_address.pt') 2. I registered the portlets...
0
1,216
thread by: getmeuser | last post Aug 27 '13 by: getmeuser
Hello Friends Actually I want to save the content of entry using Save Option in menu.I can directly use the e.get() but problem is I am creating entry and label depending upon total count in a file(comp_lis.txt). And that is created easily but what I need is to save the content of each entry box through menubar,so when I clicked on Save in...
0
1,173
thread by: nirmala | last post Aug 28 '13 by: nirmala
I want to know that how to call a method which is in file system (createPictMenu.py in my case) from TAL Portlet(from zmi) which is in @@manage-portlets(in the Add Portlet drop down list). I did like this 1.Created one new class for the address(tal portlet) in my createPictMenu.py 2.I then registered the portlet in...
0
1,130
thread by: rottenk | last post Aug 29 '13 by: rottenk
Hello. I have recently installed the PyTango module. It works fine, all of it but iPython-based iTango CLI. I have all of the PyTango dependencies installed, and there's no problems with starting up iPython itself, just iTango. I hope that someone here can help me.
0
1,391
thread by: yamid | last post Sep 3 '13 by: yamid
Hi all, I am very new to Python. I want to use the functionality within NumPy and SciPy to do a nearest neighbour interpolation for multi-variable data I have. 1. I have a text file (points.dat) in each line I have a sample for (x1, x2, x3,..., x14). The number of line is 1600. So I have 1600 sample with 14 variables. 2. I have a text...
0
1,031
thread by: steve472 | last post Sep 20 '13 by: steve472
my.dict = { 'ns': "next station is" } I wrote a code for serial communication, and the code is working. If i send the key 'ns' through serial port to other pc,the value "next station is" printing on the screen. My dought is, can i send a string with the key. ex: 'ns' abcd. if i send 'ns' abcd through serial port, on the other pc it has to...
0
1,361
thread by: klovepatches | last post Sep 21 '13 by: klovepatches
Hello, I am new to Python and I am trying to figure out why I am getting this error: AttributeError: 'tuple' object has no attribute 'draw' My program's purpose is to compute the intersection of a circle with a horizontal line (with 2 red end points) and displays the information textually and graphically. The circle must be centered at (0,0)...
0
1,122
thread by: PhatakMandar | last post Sep 23 '13 by: PhatakMandar
How to keep multiple concurrent Python (muti threaded in nature) program running, without bothering of GTL?
0
1,493
ryno du preez
thread by: ryno du preez | last post Oct 2 '13 by: ryno du preez
Hi all I'm new to Python (just finnished training books) I have a txt file with lines of data No Make and price exp. (1 BMW 20000). Now i want to import or copy this data to sqlite database. I can get python to read the data and display it but doesn't copy it accross and also there is know errors. import os import sys import sqlite3...
0
1,303
thread by: manu4387 | last post Oct 12 '13 by: manu4387
I have written the Python script that used to get the CPU usage,RAM and Disk usage from the windows server. Then i converted the script to exe through to execute on server. The exe is running fine on windows 2008 sever but it is giving an error while executing on windows 2003. Below is the error : C:\dist>Monitor_server.exe Traceback...
0
1,369
thread by: sangho | last post Oct 18 '13 by: sangho
I have the following code. But, I don't know function or code about libpcap version and link-layer. So, So I have not been able to proceed. I am a beginner of Python. Help me!! import dpkt import socket import sys f = open('filename') pcap = dpkt.pcap.Reader(f) for ts, buf in pcap:
0
966
thread by: homosapian60 | last post Oct 21 '13 by: homosapian60
hi all i am working on squid server in ubuntu 12.04 lts can anyone tell me how can i do spam filtering in squid using python... plz help me, i need script
0
1,222
thread by: pythonbegn | last post Nov 7 '13 by: pythonbegn
command = "net use" + " * " + "\\" + sharepath+ " " + "password" + " " + "/u:"+"domainname" + "\\username" sshconnObj.exec_command(command) my intention is to execute this command in windows . i see the command formation is correct but it gives me error : syntax error for net use command when i try thr same command maually it works in...
0
1,591
thread by: achenini | last post Nov 10 '13 by: achenini
I want to be able to sort a list without using the sort function. I have this algorithm down: BEGIN make a copy of the list make an empty result list LOOP as long as the copylist isn't empty: find the minimum value in the copylist, remove it add that minval to the end of the resultlist return the result list END
0
1,216
thread by: Tks for help | last post Nov 14 '13 by: Tks for help
hello all, could someone please help me with this question? i am trying to use Python (& BeautifulSoup) to exract a link on a webpage but not successful. i read BeautifulSoup DOC and still don't quite understand. the target HTML source code is looked like: <span class="field-content"><a...
0
1,149
ryno du preez
thread by: ryno du preez | last post Nov 14 '13 by: ryno du preez
Hi all I'm new to python. I want to generate a python report from Sqlite as my Db. If read reportlab and Abby pod but I can't get my head around how to generate a report to Pdf reading data from sqlite3. Do any one know of a tutorial video or text that will show you step by step how to use a report generator. or even know of a GUI report...
0
1,115
thread by: happyjava | last post Nov 19 '13 by: happyjava
I am importing an 3rd party library which has some global variables. The global variables are updated when my script calls functions in the third party library. But I want to execute multiple instances of my script as thread in parallel in such a way that the global variables should be global only the specific thread. Each thread needs to...
0
1,175
thread by: indylmc | last post Nov 25 '13 by: indylmc
I'm still breaking ground with Python (less than a year of coding). I like it and want to try using it for droid coding. Is this doable? Any pointers or links perhaps to point me in the right direction?
0
1,045
thread by: chrrox | last post Nov 28 '13 by: chrrox
I have a byte array b'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A`' what i am trying to do is get lets say 2 values starting at x position every 4 bytes so the new byte array would be so if my position was 0 in the stride and I want 2 bytes and the stride is 4 this would be the end result b'\x00\x01\x04\x05\x08\x09' basically I want to...
0
1,111
thread by: mefistofelis | last post Nov 28 '13 by: mefistofelis
I have the following script however when the clipboard contents are greek letters it fails to print them right. I have used all posible encoding for greek letters including utf8 but to no avail so i just stay with latin1. Can you suggest a solution? Here is the script: import win32clipboard win32clipboard.OpenClipboard() data =...
0
1,395
thread by: tupipindo | last post Dec 11 '13 by: tupipindo
I need a download progress window (gui) and resume capability added to it. So far I have done this: import urllib2, base64, os def dl(): dwnld="http://xxx.xxx.xxx.xxx:xx/user/file.zip" username="user"
0
1,110
thread by: mathurin | last post Dec 12 '13 by: mathurin
How do I know which modules I need? I mean I want to move a file around a network so I import sockets; but how do I know I need to import sockets? Is there a list somewhere of all the modules and what they do?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.