PIL cannot open TIFF image in Windows
Hello, I have installed PIL 1.1.5 on Windows with Python 2.4. I'm unable to open .tiff images that I can open and view using Windows Explorer. In other words, this simple test fails: import Image im = Image.open('small.tif') with an 'cannot identify image file' error message. I'm able to open .jpg images. ... 11 Sep 2006 11:42
ubuntu crash
I typed in apt-get remove python and everything essentially was wiped off my computer. I jsut want to get it back to the point of whwen I installed ubuntu, I'd like to get my documentst back as well but doubt I'll be able to do this. I installed gnome so I have a graphical interface again but can only log in as ... 11 Sep 2006 16:33
Unicode / cx_Oracle problem
Sorry to be back at the goodly well so soon, but... ....when I execute the following -- variable mean_eng_txt being utf-16LE and its datatype nvarchar2(79) in Oracle: cursor.execute("""INSERT INTO mean (mean_id,mean_eng_txt) VALUES (:id,:mean)""",id=id,mean=mean) I not surprisingly get this error messa... 16 Sep 2006 17:14
Is it just me, or is Sqlite3 goofy?
While I can understand your frustration, I think it is important to think about the tone in our postings here. Hydrocephalus is one of the most common birth defects, and it's not terribly unlikely that someone who reads this has a family member or someone else in his proximity who suffers from this condition. m... 22 Sep 2006 19:06
python vs java
hi, some of my friends told that python and java are similar in the idea of platform independency. Can anyone give me an idea as i'm a newbie to java and python but used to C++. My idea is to develop an app which can run both in windows and linux. Pls help. Thanks in advance.... ... 7 Sep 2006 13:42
Import a textfile to MS SQL with python
I'm a dba for SQL server and I Will import a textfile to SQL. For example I use a file with 3 columns. ID, Name and Surname and the columns are tab separated. I don't know much about programming. Anyway, I use this code below. It works, but it will not split the columns. I have tried to change the argumnts in str(a... 6 Sep 2006 09:55
py2exe and libxml
I wrote a little win32 console application that uses libxml2. It is working fine. If I create an .exe version, I get this error when I try to start the program: Traceback (most recent call last): File "MyProgram.py", line 3, in ? File "mylib\item.pyc", line 5, in ? ImportError: dynamic module does not d... 5 Sep 2006 04:01
python-database
is there any way to call stored procedures from python as in java? ... 4 Sep 2006 08:58
python loops
In C and C++ and Java, the 'for' statement is a shortcut to make very concise loops. In python, 'for' iterates over elements in a sequence. Is there a way to do this in python that's more concise than 'while'? C: for(i=0; i<length; i++) python: while i < length: i += 1 ... 9 Sep 2006 00:50
Extending the dict class
Hello Pythoneers: I need to pass a list of named arguments to a function in a given order, and make sure these named arguments are retrieved using keys() in the same order they were given. Example: keyargs={} keyargs['one']=1 keyargs['two']=2 keyargs['three']=3 myfunc(**keyargs) -> myfunc would retrieve... 29 Aug 2006 16:36