First  |  Prev |  Next  |  Last
Pages: 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
SyntaxError: encoding problem: with BOM
i have 1.py in cp866 encoding: # -*- coding: cp866 -*- print ("ff") It's not work in Python 3.0 Error: File "<decoding error>", line 1 SyntaxError: encoding problem: with BOM what's wrong? ... 25 Dec 2008 21:54
IMAP: How to implement GMail-like threaded conversations view
Currently I am trying to get used to Python's imaplib and email modules. I'like to create a webmail client simmilar to GMail. My Questions: a) Is there any feature hidden in Python's built-in modules (imaplib, email) that already can group all my mails into threads? b) If not a... what would be the best way t... 19 Dec 2008 17:57
StringIO in 2.6 and beyond
I've just installed 2.6, had been using 2.4. This was working for me: #! /usr/bin/env python import StringIO out = StringIO.StringIO() print >> out, 'hello' I used 2to3, and added import from future to get: #! /usr/bin/env python from __future__ import print_function import ... 10 Dec 2008 14:35
Small problem with Psyco
I post it here because I am using a Psyco version that was compiled by people here. I am using Python 2.6.1, on Win, with Psyco (1, 6, 0, 'final', 0). This minimized code: from psyco.classes import psyobj class Bar(psyobj): def __init__(self, baz): pass b = Bar(0) Produces: C:\...\test.py:5:... 5 Dec 2008 11:10
Python on Windows XP 64-bit: python not found in registry
After first trying to install the beta of Python 2.6 on my Windows XP 64-bit machine I finally succeeded installing 2.5.2. But I still have a some problem: Installing iPython, PIL, easy_install etc fails saying that python.exe cannot be found (although I can start the python interpeter just fine). The problem is th... 12 Sep 2008 15:49
..\..\Python-2.5.2\Include\pyport.h(117) : fatal error C1189: #error : "Python needs a typedef for Py_ssize_t in pyport.h."
When I try and compile using VS2003 for Release. Compiles fine for Debug. In a hurry (should be gardening). Any solution? TIA Bill ... 12 Jul 2008 10:30
Confused
On Sat, 12 Jul 2008 14:06:37 +0200 "eric.butteriss" <eric.butteriss(a)wanadoo.fr> wrote: Please tell me why may mail is being returned. The message says I have been blacklisted...for what reason? I never open mail that I know is not expected and I never send junk or spam. I am trying to send important info to my cous... 12 Jul 2008 16:38
PhotoImage problem
hi I am using Python 2.5.1. In my code i want to use self.myimage=PhotoImage (file=self.myfile) so i can create the image in a canvas self.mycanv.create_image(70,100,image=self.myimg) it works when i add, from ImageTk import PhotoImage but this import caused an error message when i tried to run this in a ... 30 Jun 2008 11:41
Installing simplejson issues
Gabriel Genellina schrieb: En Fri, 28 Mar 2008 23:23:01 -0300, <blwatson(a)gmail.com> escribi�: On Mar 28, 1:57 pm, "Gabriel Genellina" <gagsl-...(a)yahoo.com.ar> wrote: En Fri, 28 Mar 2008 16:14:07 -0300, <blwat...(a)gmail.com> escribi�: I am trying to install the twitter python wrapper...I g... 31 Mar 2008 18:39
building psycopg2 on windows using mingw, "cannot find -lpq"
The compile works, BUT linking fails: 2.5\Release\psycopg\_psycopg.def -Lc:\python25\libs -Lc: \python25\PCBuild -Lc:/p ostgres/83RC2/lib -lpython25 -lpq -lws2_32 -ladvapi32 -o build \lib.win32-2.5\psy copg2\_psycopg.pyd c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpq co... 22 Jan 2008 09:01
First  |  Prev |  Next  |  Last
Pages: 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238