python html 2 image (png)

2006-10-25 Thread baur79
hi everyone

how can i render html page to png image
ex:

http://www.website.com/index.html -> index.png

thanks a lot

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python html 2 image (png)

2006-10-25 Thread baur79
> what tools are you using to do that today?

where are many of EXE programs
but i need python solution for adding it to my automate program under
lunix


Fredrik Lundh wrote:
> [EMAIL PROTECTED] wrote:
>
> > how can i render html page to png image
> > ex:
> >
> > http://www.website.com/index.html -> index.png
> 
> what tools are you using to do that today?
> 
> 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python html 2 image (png)

2006-10-26 Thread baur79
thanks Diez
i will start with your suggestions

let see what happen

On Oct 25, 11:27 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
> >> what tools are you using to do that today?
>
> > where are many of EXE programs
> > but i need python solution for adding it to my automate program under
> > lunixWhatever lunix is, under linux, a popular free OS you could e.g. use
> PyKDE and let Qt render a KHTML-component into an image.
> 
> Diez

-- 
http://mail.python.org/mailman/listinfo/python-list


PyQt-x11-gpl-3.16 compile error

2006-10-27 Thread baur79
[EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q
/usr/lib/qt-3.3/
This is the GPL version of PyQt 3.16 (licensed under the GNU General
Public
License) for Python 2.4.2 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
qextscintillaglobal.h could not be found in /usr/lib/qt-3.3/include and
so the
qtext module will not be built. If QScintilla is installed then use the
-n
argument to explicitly specify the correct directory.
Checking to see if the qtcanvas module should be built...
Checking to see if the qtnetwork module should be built...
Checking to see if the qttable module should be built...
Checking to see if the qtxml module should be built...
Checking to see if the qtgl module should be built...
Checking to see if the qtui module should be built...
Checking to see if the qtsql module should be built...
Checking to see if the QAssistantClient class is available...
Creating features file...
Error: Unable to build mkfeatures utility.


please help to fix the problem

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyQt-x11-gpl-3.16 compile error

2006-10-27 Thread baur79
Hi David
here is th output :

[EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q
/usr/lib/qt-3.3/ -w
This is the GPL version of PyQt 3.16 (licensed under the GNU General
Public
License) for Python 2.4.2 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
qextscintillaglobal.h could not be found in /usr/lib/qt-3.3/include and
so the
qtext module will not be built. If QScintilla is installed then use the
-n
argument to explicitly specify the correct directory.
Checking to see if the qtcanvas module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the qtnetwork module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the qttable module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the qtxml module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the qtgl module should be built...
In file included from cfgtest.cpp:1:
/usr/lib/qt-3.3/include/qgl.h:79:20: error: GL/gl.h: No such file or
directory
/usr/lib/qt-3.3/include/qgl.h:80:21: error: GL/glu.h: No such file or
directory
Checking to see if the qtui module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the qtsql module should be built...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Checking to see if the QAssistantClient class is available...
/usr/bin/ld: cannot find -lmng
collect2: ld returned 1 exit status
Creating features file...
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
Error: Unable to build mkfeatures utility.

-- 
http://mail.python.org/mailman/listinfo/python-list


how to use execfile with argument under windows

2007-01-02 Thread baur79
Hi everybody

i need to execute this command line (different source for n times)

filename.exe -type png -source sourcearg -file filename.png


i try with python (python script and filename.exe in same directory)

import os
..
..
execfile("filename.exe -type png -source sourcearg -file filename.png")

error output
IOError: [Errno 2] No such file or directory:"filename.exe -type png
-source sourcearg -file filename.png"

try
execfile("d:\pathto\filename.exe -type png -source sourcearg -file
filename.png")

error output
IOError: [Errno 2] No such file or directory:"d:\pathto\filename.exe
filename.exe -type png -source sourcearg -file filename.png"


please help to solve problem
thanks

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to use execfile with argument under windows

2007-01-03 Thread baur79
os.system() solve my problem

thanks you guys and happy new year

with best wishes from Kazakhstan / Shymkent city / sodbisystems.kz


On Jan 2, 11:49 pm, Peter Otten <[EMAIL PROTECTED]> wrote:
> baur79 wrote:
> > i need to execute this command line (different source for n times)
>
> > filename.exe -type png -source sourcearg -file filename.png
> > i try with python (python script and filename.exe in same directory)
> > execfile("filename.exe -type png -source sourcearg -file filename.png")That 
> > does not do what you think it does, see
>
> http://docs.python.org/lib/built-in-funcs.html#l2h-26
>
> You need os.system() or, for more complex applications, the subprocess
> module.
> 
> Peter

-- 
http://mail.python.org/mailman/listinfo/python-list


html 2 image script or library

2007-06-05 Thread baur79
Hi everyone

can you help me to find script or library for making website (from
url) 2 image (png, jpg no matter).

thanks a lot

-- 
http://mail.python.org/mailman/listinfo/python-list


mysqldb duplicate entry error handling

2007-02-01 Thread baur79
Hi guys


i try to run this code in loop and to pass even the entry is
duplicated

def email_insert_in_db(email):
  sql="INSERT INTO emails (email) values ('%s') "%(email)
  db=_mysql.connect(host = "localhost", user = db_user, passwd =
db_pass, db = db_name)

  try:
db.query(sql)
  except IndentationError:
print "duplicate"
pass

also try to (raise, continue)
but can't continue in loop

error output is:
  File "inser_in_db.py", line 85, in email_insert_in_db
db.query(sql)
IntegrityError: (1062, "Duplicate entry '[EMAIL PROTECTED]' for key 1")

thanks for your help

Baurzhan Zhakashev
Kazakhstan / Shymkent city

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: mysqldb duplicate entry error handling

2007-02-01 Thread baur79
now it gives this error

except IntegrityError, NameError:
NameError: global name 'IntegrityError' is not defined

any idea
i have python 2.3.2 installed

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: mysqldb duplicate entry error handling

2007-02-02 Thread baur79
thanks John
this solves my problem
 except MySQLdb.IntegrityError, message:

thanks everybody again

Baurzhan Zhakashev
Kazakhstan / Shymkent city

-- 
http://mail.python.org/mailman/listinfo/python-list