473,554 Members | 3,230 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,519
thread by: onot77 | last post Sep 22 '11 by: onot77
Hi, I'm just started to learn about python and i did not have programing language experience before. I am trying to work with some excel files and I wonder if you could help me with this. my infile looks like this: NAME STATUS NY EF REG LAM CRI KRU RC1 PRESENT AA BB BB BB BB BB
0
1,431
thread by: luofeiyu | last post Sep 23 '11 by: luofeiyu
please download the attachments ,save as /tmp/A,run the following code, import lxml.html sfile='/tmp/A' root=lxml.html.parse(sfile) t = root.xpath("//table") trs=t.xpath(".//tr") for i, tr in enumerate(trs): print i, len(tr),tr.text_content()
0
1,400
thread by: z0mWeed | last post Sep 27 '11 by: z0mWeed
Good! forgiveness for having written in Spanish had googles translator xDD I'm trying to do an insert with python on Oracle throws error but it does not match 01861 literal format string, Leii file statements. sql and execute. I have gone The create perfect but I fail to insert. Have if I can take a hand. Thanks & Regards
0
1,342
thread by: Pals Rane | last post Oct 3 '11 by: Pals Rane
I have a form in a html file. The form, when submitted, runs a python code via a Apache 2 server. But when I click the submit on the form, the webpage itself gets redirected to the python file and tries to display the python file. Can I void that and only have the python code do its thing in the background while the web browser still displays the...
0
1,473
thread by: michal nowak | last post Oct 4 '11 by: michal nowak
hello, does anybody use watsup 0.4.3? Please could you tell me which versions of the following dependencies do you use? Somehow I am not able to put together functional combination.... Thank you for your insights. Dependencies: Python (version at least 2.3) pywin32 ctypes SendKeys wxPython library (for tools)
0
1,414
thread by: luofeiyu | last post Oct 5 '11 by: luofeiyu
can i draw a graph ,such as y=sin(x) in xul ?? can i get some codes about it ? for example:Adding menus and submenus <toolbox> <menubar id="xulschoolhello-menubar"> <menu id="xulschoolhello-greeting-menu" label="&xulschoolhello.greeting.label;"> <menupopup> <menuitem label="&xulschoolhello.greet.short.label;" ...
0
1,608
thread by: madlax | last post Oct 11 '11 by: madlax
Does the socket module support ICMP? Can I use it to ping? If so how is this done? Or are there any other modules that can send ICMP requests, preferably ones that aren't Scapy? Scapy is so frustrating for me. Thank you.
0
1,547
thread by: vgnulinux | last post Oct 18 '11 by: vgnulinux
Hi All, I am trying to configure TCP AT run service in server mode on evaluation kit using GE865 module. Configuration steps are as follows. 1) Opening PDP context. AT#SGACT=1,1 #SGACT: 10.2.*.* OK 2) Socket parameter configuration. AT#SCFG=1,1,300,90,600,50
0
1,414
bona25
thread by: bona25 | last post Oct 24 '11 by: bona25
Hello, I'm currently insdto Turbogears 2 (Tosca) and finding it hard to set date-time entry to read only. I've used "disabled=True" but info is unable to save to database, then i tried "readonly=readonly" but still doesn't work. Please help. Here's what i've got at the moment (ToscaSample/widgets): CalendarDateTimePicker('Time_In',...
0
1,807
thread by: rgalgal | last post Nov 1 '11 by: rgalgal
Hi, I am trying to run a python script file in ABAQUS 6.9-2 and I am having trouble with it. When I run the file in ABAQUS CAE using "run script " option it works fine. But when I run it in ABAQUS PDE I get the following error *** Error - remote process did not start Can some one please help me fix this problem Thanks in Advance Rohan
0
1,441
thread by: plomon | last post Nov 5 '11 by: plomon
I want to create an ultimate list ctrl based table where the user can sort the columns by clicking on the column header. Here's the code I attempted: import wx import wx.lib.mixins.listctrl as listmix from wx.lib.agw import ultimatelistctrl as ULC APPNAME='Sortable Ultimate List Ctrl' APPVERSION='1.0' MAIN_WIDTH=300 MAIN_HEIGHT=300
0
1,278
thread by: DJBino | last post Nov 12 '11 by: DJBino
Im Uing gm862 with sparkfun evaluation kit i want to use the Trigonometric functions in my code,but it want work ? i think the gm862 doesn't support it ? does anyone know about this?
0
1,751
thread by: adaronch | last post Dec 6 '11 by: adaronch
Hello Folks! I try to call from Python several routines contained in a .so library generated from some Fortran 90 routines. All the objects in the library are resolved using the -fPIC flag when compiling the .so. I have a sample code which looks like from numpy import * from ctypes import *
0
1,278
thread by: plomon | last post Dec 22 '11 by: plomon
Following is the system and software info Platforms: Windows XP and OSX Lion Activestate Python 2.7.2 wxPython2.9-osx-cocoa-py2.7 (for OSX) wxPython2.9-win32-py27 (for Windows XP) I am trying to create a UltimateListCtrl using ULC_VIRTUAL and ULC_REPORT mode. I would like to know how can I put a checkbox beside the first column of every...
0
1,359
thread by: sacyak | last post Dec 24 '11 by: sacyak
Hi - what is the latest on the issue of getting PyUSB to work with Garmin USB GPS's? I can find the device fine but can't seem to send or read data (get an error that the interface can not be claimed)... Thanks in advance... Steve.
0
1,437
thread by: SurekhaP | last post Dec 26 '11 by: SurekhaP
I am trying to develop telnet application using python. I am making use of telnetlib library for creating client and Socket/ SocketServer library for creating server application The open() method(used for establishing connection with server socket) from telnet library is not able to connect to the server which is successfully listening for...
0
1,565
thread by: Dave750 | last post Dec 30 '11 by: Dave750
I am using speech.py for a voice recognition project and it works great and is very simple. The only problem is that I want to turn off the Windows commands that come with it, IE "Start Menu" or "Show Desktop". It will run full-screen and I don't want a user to get out of my software and into Windows. Does anyone know how to do this?
0
1,549
thread by: marcin19962 | last post Dec 31 '11 by: marcin19962
Hi, i have a problem - everytime when i want to reciv data from the UDP socket - the program is freezing. how can i make Receiving data from UDP socket and by using append function add received data into textEdit widget ? Can anyone give me tutorial or example for this?
0
1,136
thread by: kaf3773 | last post Jan 4 '12 by: kaf3773
I need help trying to execute this SQL statement on an oracle database via python. select switch,switch||'-'||tkg_name as tkg_name,(date_time - to_date('01-JAN-1970','DD-MON-YYYY')) * (86400)as date_time,percent_occupied from Table_name where tkg_name in ('AB65UT','LIY870','IUY890') and trunc(date_time) between '21-DEC-11' and '27-DEC-11'; ...
0
1,843
thread by: Fernandotf | last post Jan 25 '12 by: Fernandotf
Hi I was able to compile python and cx_oracle with success in hpux 11.23 itanium. I am trying to load cx_Oracle from python and i get this error: Python 2.7.2 (default, Jan 24 2012, 20:24:38) on hp-ux11 Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle
0
1,170
thread by: Marcus Maximus | last post Feb 14 '12 by: Marcus Maximus
Hi. I'm new to python. First off I'd like some advice on where to find modules for python that I can trust don't do anything malicious. There seems to be a lot of modules availible for python but how do I know that they only do what they advertise they do without actually going through the code. Being a beginner in python reviewing the code...
0
867
thread by: hamedpersian | last post Feb 21 '12 by: hamedpersian
I have written some hash code and it supposed to have a 32 bits output. But i don't know how to make it 32 bit as the output. please help me with this. Here is my code: import BitVector import io import math import struct if __name__ == "__main__": message = raw_input("your message:") f= open('file.dat','w')
0
1,971
thread by: kompexecutor | last post Feb 22 '12 by: kompexecutor
Hi, I am looking for way of building proxy chain in python and found not much information i.e: import urllib2 import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, 'proxie', port) socks.wrapmodule(urllib2) yy = urllib2.urlopen('http://www.yahoo.com').read() is showing "URLError: <urlopen error >" error
0
832
thread by: mohamed magdy | last post Feb 23 '12 by: mohamed magdy
how to clear the shell screen in windows 7 64bit and python 3.2
0
1,376
thread by: Trolkar8 | last post Mar 4 '12 by: Trolkar8
I started to make a game using pygame.init() and wanted to test if it worked as an executable using py2exe so I made the an setup.py script which i called via cmd followed by py2exe setup.py from distutils.core import setup import py2exe setup(console=) But after that when i try to run the program from the dist folder i get the error:...

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.