473,543 Members | 2,018 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,132
thread by: Kevin Aziz | last post Oct 16 '10 by: Kevin Aziz
I'm very new to python (about two days experience) and have made a few basic programs so far. Now I want to try to make a program in which the user will input a file name and the file will execute, but I haven't been able to find the last piece I need. So far I have a basic: print "Enter program name.\nFor a list of programs type 'List'"...
0
1,015
thread by: Fayaz Ahmed | last post Oct 18 '10 by: Fayaz Ahmed
The post method is used to send a query using urllib2.urlopen the query url looks like this www.expamle.com/report?obj1=value&obj2=val2............ All this while it was running fine but seems suddenly ceased to work. Careful observations show that only the url www.expamle.com/report? has reached and the paramater which is a list of...
0
1,359
thread by: shriv | last post Oct 28 '10 by: shriv
Hi all, I have been exploring python as an alternative to Labview for controlling and collecting data from lab instruments like a temperature controller and source measure unit. I use Pyvisa to control the instruments. All this works fine. But now I want to implement the equivalent of a LabView chart that plots the data collected from my source...
0
1,279
thread by: noobermin | last post Oct 31 '10 by: noobermin
An extension I used uses some other functions i made (outside of the sources used by the extension itself), but it complains about them upon import as being undefined symbols. >>> import libpytwo2gam Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: ./libpytwo2gam.so: undefined symbol:...
0
1,312
thread by: mcdenzlix | last post Nov 2 '10 by: mcdenzlix
need to blast several genes;100-1000,unspecified(stored as a array of sequences), against 40 complete genomes to ascertain presence absence factor. if present, need to take the boundaries of the genes, extract the section from main genome for further analysis. results required here: 1. true false for presence and subsequent basepair positions...
0
1,066
thread by: nicstel | last post Nov 10 '10 by: nicstel
Hi, I'm trying to find a way to switching code in the python editor with a shortcut on keybord or with the mouse, like if I select Window in the toolbar and select the code on which I want to working on. I'm not sure if my question is clear but I tried. Thanks Nicolas
0
1,084
thread by: Fuugie | last post Nov 15 '10 by: Fuugie
I'm trying to make a definition(writeHistogram) to write a histogram and I can't figure it out. I understand the concept of it, but I just can't figure out how to do it. Could someone help me within the hour. It is suppose to take the data from tallies.txt and have a similar output, except it suppose to show the percents as "a - b, c - d, and e -...
0
1,078
thread by: Jon Schneider | last post Nov 15 '10 by: Jon Schneider
Hello! I have been working with boa constructor and python and understand some of the basics. I confused on how to make my buttons transparent using the wx.Bitmapbutton controls. Perferably provide an example code for wx.Bitmapbuttons since i already know how to use their other features. I'm learning pygame atm and figured out how to make...
0
1,035
thread by: vgkhle | last post Nov 17 '10 by: vgkhle
hi all, can anyone tell me hoe to open a file from one machine, when the file is present on a remote machine, specifying it's IP address? How is a URL specified within a call for urllib2.urlopen(). I want to specify something like 192.168.5.140/XXX_yyy/ZZZ_yyy/bbb where bbb is a folder i have tried urllib.urlopen(), the built in open()...
0
1,206
thread by: Jon Schneider | last post Nov 20 '10 by: Jon Schneider
Hello, I asked a simular question a few days ago but it wasnt worded very well. Im wondering how I can use PNG files that have transparent backgrounds in a wx.bitmapbutton control. More specifically how to get them to load into the control and keep their transparent background. I have been able to load them into a wx.bitmapbutton, but...
0
1,179
thread by: gerocampo | last post Nov 29 '10 by: gerocampo
Hello After install the last freeImagePy package from the website (http://freeimagepy.sourceforge.net/), and I tried to run a test, I´m getting the following error: >>> import FreeImagePy Exception on load dll freeimage : %1 is not a valid Win32 application C:\Python26\lib\site-packages\FreeImagePy\library.py:90: FunctionNotFound: Error on...
0
1,549
thread by: Anna Butt | last post Dec 1 '10 by: Anna Butt
Hi, I have a problem with a module in python. When I try to execute it I have this error: 00019|nox|ERR:Cannot change the state of 'pymyswitch' to INSTALLED: 'pymyswitch' ran into an error: cannot import a Python module 'nox.coreapps.switch.pymyswitch': ImportError: No module named switch.pymyswitch
0
1,055
thread by: soge | last post Dec 2 '10 by: soge
hi, i need to display the process which running in my machine to the command prompt by using pythonSTAF. the machine can be windows/Linux(platform independent). So please help me to write a program for the same.
0
1,942
thread by: Joseph Guildino | last post Dec 3 '10 by: Joseph Guildino
Good afternoon all! I have this program in Python that is really starting to make my head go crazy. It utilizes linked lists (circularly linked list). Now, correct me if I am wrong, but a circular linked list works like this: (the number on the left represents the number of lists) o - (Header is empty class) 1 - header.next = first...
0
1,431
thread by: Jalindar Gat | last post Dec 6 '10 by: Jalindar Gat
Hi all, I want to get information in the web page, but information i want to take is in Java script as it is dynamic and server changes it periodically. can i get it using simple code: import urllib # Get a file-like object for the Python Web site's home page. f = urllib.urlopen("http://www.python.org") # Read from the object, storing...
0
1,439
thread by: Gonzalo Gonza | last post Dec 8 '10 by: Gonzalo Gonza
Hello, I was wondering about events and that kind of things, so I decided to do a program that would listen to my keystrokes. The (core) code is the following: while 1: keyAscii = 0 for i in range(32, 256): key_log = win32api.GetAsyncKeyState(i) if key_log == -32767: print i key_end = 81 keylog_file.write(chr(i))
0
1,280
thread by: darshak bavishi | last post Dec 10 '10 by: darshak bavishi
how to Start a script on a remote machine through ssh with python?
0
1,436
thread by: darshak bavishi | last post Dec 10 '10 by: darshak bavishi
hi experts , i have code to telnet remote machine (unix) i am using port 5400 to telnet but o/p is not in visible format when i run random commands or run when i give as read_some() it displays some lines but in case of read_all() it gets hang !! In actual i want to get some string from o/p and process pls help
0
1,982
al san
thread by: al san | last post Dec 10 '10 by: al san
Hello, everyone, any help wil be greatly appreciated. I'm writing code for a japanese learning app in python; so all my japanese strings have are preceeded by 'u' (eg. u'にほんご'); Everthing works like a charm, except for when I get input from the user. >>> internal= >>> user_input= >>> for i in range (len(internal)): print "code data: %s"...
0
1,499
thread by: karunagaraprabh | last post Dec 12 '10 by: karunagaraprabh
Hi all, I want get the path of the video file from the user and i want to upload the video in folder of mine. can any one explain me in detail or give some code example. Thanks in advance
0
2,049
thread by: darshak bavishi | last post Dec 13 '10 by: darshak bavishi
I am using python 2.6 and i had installed paramiko module which needs pycrypto but , when i am installing pycrypto in windows its giving error as follows: creating build\lib.win32-2.6\Crypto\PublicKey copying .\PublicKey\DSA.py -> build\lib.win32-2.6\Crypto\PublicKey copying .\PublicKey\ElGamal.py -> build\lib.win32-2.6\Crypto\PublicKey...
0
1,553
thread by: darshak bavishi | last post Dec 13 '10 by: darshak bavishi
Hi Experts , while i am running following demo ssh script of paramiko --> import base64 import getpass import os import socket import sys
0
1,396
thread by: jerry lowry | last post Dec 14 '10 by: jerry lowry
Hey, I am just getting started with Python/Jython and I need to access a mssql database. I have check out pymssql and pyodbc but nothing I have come across installs in Netbeans. Is there a module that will work with Netbeans and mssql? any help is great.
0
1,187
thread by: emetib | last post Dec 14 '10 by: emetib
I am Very new to Python programming and would like to see additional items listed here under Web Development. I did not see a good place to request this so I chose to post here. I saw Ruby/Ruby on Rails under Web Development for PHP coders and wish for you to add Django and Pinax for Python coders. Possibly even Wordpress. (WordPress...
0
2,620
thread by: Mitchel Carlsen | last post Dec 15 '10 by: Mitchel Carlsen
Please excuse my newbie question, but I'm trying to install pywin32 using Python26 on Windows 7 64-bit machine. When I run the "python setup.py -q install" command I get the following error: File "\download\pywin32-214\setup.py", line 2152, in <module> ('', ('pywin32.pth',)), File "D:\Python26\lib\distutils\core.py", line 152, in...

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.