Re: [PyKDE] Windows install broken

2006-11-13 Thread Xavier Décoret

Phil Thompson a écrit :

On Sunday 12 November 2006 4:14 pm, Xavier Décoret wrote:
  

Hi,

I moved to PyQt 4.1 and Qt.4.2.1 and install is not straightforward. I
install Qt.4.2.1 for Windows (GPL) first, then PyQt 4.1 using the
windows installer. PyQt4 applications do not run, complainging that
Qt4Core.dll cannot be found.

Have I done something wrong or is it normal?

PS: I am recompiling PyQt4 from the sources to see If it works. Yet the
problem is that for beginners, this process is tedious and it might stop
them from testing PyQt, if the installer is "broken".



Make sure you have installed Qt and MinGW properly, ie. that the DLLs are on 
your PATH.


  
I have installed it the way a newbie would do it: double-click on the 
installer downloaded from Trolltech and Riverbank. Personnally, I can 
fix the problem. My concern is for other people (the one I target with 
an open-source application). If they cannot simply install PyQt, they 
won't use my soft ;-). So I am trying to figure out wether it is a 
problem on my station, or a general problem with the installers.

Phil

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


  


___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Windows install broken

2006-11-12 Thread Xavier Décoret

Hi,

I moved to PyQt 4.1 and Qt.4.2.1 and install is not straightforward. I 
install Qt.4.2.1 for Windows (GPL) first, then PyQt 4.1 using the 
windows installer. PyQt4 applications do not run, complainging that 
Qt4Core.dll cannot be found.


Have I done something wrong or is it normal?

PS: I am recompiling PyQt4 from the sources to see If it works. Yet the 
problem is that for beginners, this process is tedious and it might stop 
them from testing PyQt, if the installer is "broken".


___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv

2006-11-03 Thread Xavier Décoret

Andrew Wilkinson a écrit :

Hi,

I can compile the latest snapshot of PyQt fine, however when I try to 
import it I get the following error...


Python 2.5 (r25:51908, Oct 25 2006, 09:55:50)
[GCC 4.1.1 (Gentoo 4.1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtGui
Traceback (most recent call last):
  File "", line 1, in 
ImportError: /usr/lib64/python2.5/site-packages/PyQt4/QtGui.so: 
undefined symbol: _ZNK18QX11EmbedContainer5errorEv
It is not the answer to your question, but I use the occasion to give an 
poorly known trick with gcc: the utility c++filt lets you "unmangle" 
symbol names to get the "human readable" name of the missing symbol. In 
your case "c++filt _ZNK18QX11EmbedContainer5errorEv" returns 
"QX11EmbedContainer::error() const" so you know which function is 
missing from the compilation units.


Good luck.
>>> 


I'm running qt-4.1.4.

Does anyone know what my problem is?

Regards,
Andrew



___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
  


___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Plans on PyQt 4.2

2006-10-24 Thread Xavier Décoret

Hi folks,

I cannot find the info on the mailing list, nor on the riverbank site.

Are there any plans to release PyQt for Qt 4.2? I am really looking 
forward to use some of the new features (like ability to create a QFont 
from a local .ttf file).


Corollary: can we help on PyQt 4.2?

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] DeprecationWarning when importing pyrcc4 generated module

2006-08-23 Thread Xavier Décoret

Javier Sanz a écrit :

Hi.
I'm using pyrcc4 to convert the images my program uses to a an
import-able python module. I'm doing it successfully, but I'm getting
this warning whenever I import the resource module:

DeprecationWarning: Non-ASCII character '\xe9' in file
C:\prog\python\ogbot\src\ui\BotResources.py on line 3, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details
import BotResources

Any help appreciated.
PD: I'm using QT 4.1, PyQt v4 and python 2.4


Same problem. I am adding this line
# -*- coding: utf-8 -*-
on top of the file and it is fixed. However, I have to do it again after 
each pyrcc4.


I agree it should be handled by pyrcc4.

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Pb with QTextDocument.clone()

2006-08-06 Thread Xavier Décoret
Hello, the following simple code crashes python under windows. Under 
linux, it randomly crashes but less often. It really sounds like a 
deallocated object problem. I am using Qt4.1.4 with PyQt4.0.1 and Python 
2.4.

Am I missing something or should I do a bug report?

from PyQt4.QtCore import *
from PyQt4.QtGui import *

import sys

app = QApplication(sys.argv)

doc = QTextDocument()
doc.setHtml("hello")

clo = doc.clone()



___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] 12/26 snapshot don't compile

2005-12-27 Thread Xavier Décoret
Hi, I am trying to compile latest snapshot of PyQt4 (looking forward to 
have it, let us know if you need help/support/funding)) on a fedora core 
4 with gcc 4.0.2.
I get the following error when I try to compile. I put the configure 
messages and make error below:


[EMAIL PROTECTED] PyQt4-gpl-snapshot-20051226]# python configure.py -q 
/usr/local/Trolltech/Qt-4.1.0/

This is the GPL version of PyQt snapshot-20051226 (licensed under the GNU
General Public License) for Python 2.4.1 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
Checking to see if the QtGui module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtXml module should be built...
Qt v4.1.0 free edition is being used.
SIP snapshot-20051226 is being used.
The Qt header files are in /usr/local/Trolltech/Qt-4.1.0/include.
The QtCore Qt library is in /usr/local/Trolltech/Qt-4.1.0/lib.
These PyQt modules will be built: QtCore QtGui QtNetwork QtOpenGL QtSql 
QtXml.

The PyQt modules will be installed in /usr/lib/python2.4/site-packages.
The PyQt .sip files will be installed in /usr/share/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Generating the C++ source for the QtSql module...
Creating the Makefile for the QtSql module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Creating top level Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating pyqtconfig.py...
[EMAIL PROTECTED] PyQt4-gpl-snapshot-20051226]#
[EMAIL PROTECTED] PyQt4-gpl-snapshot-20051226]# make
make[1]: Entering directory `/root/PyQt4-gpl-snapshot-20051226/QtCore'
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB 
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_OPENGL_LIB -DQT_SQL_LIB -DQT_XML_LIB 
-I. -I/usr/include/python2.4 -I/usr/local/Trolltech/Qt-4.1.0/include 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtCore 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtGui 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtNetwork 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtOpenGL 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtSql 
-I/usr/local/Trolltech/Qt-4.1.0/include/QtXml 
-I/usr/local/Trolltech/Qt-4.1.0/mkspecs/default -I/usr/X11R6/include -o 
sipQtCorecmodule.o sipQtCorecmodule.cpp
sip/QtCore/qcoreapplication.sip:258: error: expected ‘,’ or ‘...’ before 
‘*’ token
sip/QtCore/qcoreapplication.sip:258: error: ISO C++ forbids declaration 
of ‘sipDelayedDtor’ with no type

sip/QtCore/qcoreapplication.sip: In function ‘void sipDelayedDtors(int)’:
sip/QtCore/qcoreapplication.sip:262: error: ‘ddlist’ was not declared in 
this scope

sip/QtCore/qcoreapplication.sip: At global scope:
sip/QtCore/qcoreapplication.sip:258: warning: unused parameter 
‘sipDelayedDtor’
sip/QtCore/qcoreapplication.sip:258: warning: ‘void 
sipDelayedDtors(int)’ defined but not used

make[1]: *** [sipQtCorecmodule.o] Error 1
make[1]: Leaving directory `/root/PyQt4-gpl-snapshot-20051226/QtCore'
make: *** [all] Error 2
[EMAIL PROTECTED] PyQt4-gpl-snapshot-20051226]#

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Port to Qt4

2005-06-20 Thread Xavier Décoret

Phil Thompson a écrit :


Hi

I am developping an open source tool based on Qt and PyQt.  One of the
feature I have to implement now is already present in Qt4 (using
QPainter on a QGLWidget). Implementing it for Qt3 is feasible but
har,long,error-prone and smells like a waste of time! So the question
is: are there any idea of when PyQt will be ported to Qt4, just to know
wether I should start implementing what I need in Qt3 or if I should
wait a couple of weeks to get it out of the box.

BTW, I am willing to help the porting!
   



http://www.riverbankcomputing.co.uk/pyqt/roadmap.php

 


Sure, I've seen this web page and it says:

"At the moment there are no timescales for the release of PyQt v4."

But does it mean, there is *really* no timescales, that is  we will 
start thinking/implementing "some" day, or does it mean that there is a 
work in progress with beta versions,etc... but the author does not want 
to commit to a deadline?



Phil

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

 



___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Port to Qt4

2005-06-20 Thread Xavier Décoret

Hi

I am developping an open source tool based on Qt and PyQt.  One of the 
feature I have to implement now is already present in Qt4 (using 
QPainter on a QGLWidget). Implementing it for Qt3 is feasible but 
har,long,error-prone and smells like a waste of time! So the question 
is: are there any idea of when PyQt will be ported to Qt4, just to know 
wether I should start implementing what I need in Qt3 or if I should 
wait a couple of weeks to get it out of the box.


BTW, I am willing to help the porting!

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde