[PyQt] failed to install comercial PyQt

2009-05-04 Thread Magnus Benjes
Hello,
I fail to install the comercial version of PyQt.
That's my configuration:
- Windows XP, Windows Vista
- Python 2.5.4
- Visual Studio 2008
- qt-win-commercial-4.4.3-vs2008
- sip-4.7.9
- PyQt-win-commercial-4.4.4

I did the following steps (Python, Visual Studio 2008 and Qt are allready 
installed):
1. sip-4.7.9> python configure.py
2. sip-4.7.9> nmake
3. sip-4.7.9> nmake install
4. copy the file pyqt-commercial.sip to the directory 
PyQt-win-commercial-4.4.4\sip
5. PyQt-win-commercial-4.4.4> python configure.py
Then I got an error, that sip.exe could not be startet because of the missing 
dll
MSVCR90.dll

If I add
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
to my PATH, because there I found the missing dll, I got the error for sip.exe:
"R6034 An application has made an attempt to load the C runtime library 
incorrectly."

Thanks for any help
Magnus
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] failed to install comercial PyQt

2009-05-04 Thread Magnus Benjes
Hello,
I fail to install the comercial version of PyQt.
That's my configuration:
- Windows XP, Windows Vista
- Python 2.5.4
- Visual Studio 2008
- qt-win-commercial-4.4.3-vs2008
- sip-4.7.9
- PyQt-win-commercial-4.4.4

I did the following steps (Python, Visual Studio 2008 and Qt are allready 
installed):
1. sip-4.7.9> python configure.py
2. sip-4.7.9> nmake
3. sip-4.7.9> nmake install
4. copy the file pyqt-commercial.sip to the directory 
PyQt-win-commercial-4.4.4\sip
5. PyQt-win-commercial-4.4.4> python configure.py
Then I got an error, that sip.exe could not be startet because of the missing 
dll
MSVCR90.dll

If I add
C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
to my PATH, because there I found the missing dll, I got the error for sip.exe:
"R6034 An application has made an attempt to load the C runtime library 
incorrectly."

Thanks for any help
Magnus
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt Snapshot Windows Installer for Python v2.6 and v3.0

2009-05-04 Thread Phil Thompson
I've uploaded Windows installers for the current PyQt snapshot for Python
v2.6 and v3.0 for people to play with.

The good news is that they include plugins for PosgreSQL and MySQL.

The bad news is that the MySQL plugin doesn't work. It seemed to build Ok,
but QSqlDatabase.drivers() doesn't seem to see it. If anybody has any ideas
(ie. has already got it working themselves) then please let me know.

I've also had a change of mind on the pyrcc4 behaviour and it now generates
code for Python v2.x by default. You can be explicit and use the -py2 or
-py3 flags which I recommend as I may change the default at some point in
the future.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


RE: [PyQt] PyQT64 for Windows

2009-05-04 Thread Greg Smith
I've been curious about that myself, I've scoured the internet and came
to the conclusion that I need to compile one myself, which I am not
looking forward to due to recent experiences.

 

Greg

 



From: pyqt-boun...@riverbankcomputing.com
[mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of Martin K
Sent: Sunday, May 03, 2009 12:02 AM
To: pyqt@riverbankcomputing.com
Subject: [PyQt] PyQT64 for Windows

 

Hi,

 

Just wondering if there are any PyQT installers available for 64bit
Python on Windows.

 

Thanks,

 

MK

 

 



The new Internet Explorer(r) 8 - Faster, safer, easier. Optimized for
Yahoo! Get it Now for Free!
 

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] string encoding problem with pylupdate4

2009-05-04 Thread Tóth Csaba
Phil Thompson írta:
> On Sat, 02 May 2009 04:26:38 +0200, Tóth Csaba 
> wrote:
>> hi,
>>
>> i have a problem with the pylupdate4.exe and the encoding it realises.
>>
>> If i have this code in a py file:
>>
>> #!/usr/bin/env python
>> # -*- coding: utf-8 -*-
>> #
>>
>> a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
>> b = self.trUtf8('Listás hívás összesítő')
>>
>>
>> than i run `pylupdate4.exe file.py -ts tr.ts`
>>
>> than if i open the translate.ts with Linguist i see these two strings to
>> translate (i understand the different context of these strings, the
>> question is with the encodings of them, why differ?)
>>
>> Listás hívás összesítő
>> Listás hívás összesítő
>>
>>
>> attached you can find a .ts file i generated. I use
>> PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.
>>
>> How can i solve this?
> 
> pylupdate4 ignores the coding: utf-8 and so doesn't know that the string
> passed to QT_TR_NOOP() is utf8.
> 
> I've added support for QT_TR_NOOP_UTF8() which you should use instead.

Thanks :)

Is this exists in the current available version, or just will be in the
next release?

Isn't better if you add support for the python codec definition into
pylupdate4?

thanks,
tsabi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Ubuntu issue?

2009-05-04 Thread Doug Bell
Hi,

A user of one of my PyQt programs reported a "Bus error" when trying to
run it on Ubuntu 9.04.  He gets the same error with the example programs
that come with PyQt4.  Does anyone know of an issue with Ubuntu's PyQt
packages?

Thanks,
Doug.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] string encoding problem with pylupdate4

2009-05-04 Thread Phil Thompson
On Mon, 04 May 2009 17:31:50 +0200, Tóth Csaba 
wrote:
> Phil Thompson írta:
>> On Mon, 04 May 2009 16:47:18 +0200, Tóth Csaba 
>> wrote:
>>> Phil Thompson írta:
 On Sat, 02 May 2009 04:26:38 +0200, Tóth Csaba
 
 wrote:
> hi,
>
> i have a problem with the pylupdate4.exe and the encoding it
realises.
>
> If i have this code in a py file:
>
> #!/usr/bin/env python
> # -*- coding: utf-8 -*-
> #
>
> a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
> b = self.trUtf8('Listás hívás összesítő')
>
>
> than i run `pylupdate4.exe file.py -ts tr.ts`
>
> than if i open the translate.ts with Linguist i see these two strings
>> to
> translate (i understand the different context of these strings, the
> question is with the encodings of them, why differ?)
>
> Listás hívás összesítő
> Listás hívás összesítő
>
>
> attached you can find a .ts file i generated. I use
> PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.
>
> How can i solve this?
 pylupdate4 ignores the coding: utf-8 and so doesn't know that the
 string
 passed to QT_TR_NOOP() is utf8.

 I've added support for QT_TR_NOOP_UTF8() which you should use instead.
>>> Thanks :)
>>>
>>> Is this exists in the current available version, or just will be in the
>>> next release?
>> 
>> Next release - there will be a beta installer later today.
> 
> great :)
> because of the changes, i wont use this as whole, but maybe just the
> pylupdate4.
> 
> 
>>> Isn't better if you add support for the python codec definition into
>>> pylupdate4?
>> 
>> Yes, but that will take longer - patches welcome.
> 
> Hmm, i looked, sadly its not python.. its c++..
> Dont you prefer if someone wrote a pythonic version instead of patching
> this?

Yes I would - like pyuic4 so that it can be used as a standalone
application or imported as a module.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] string encoding problem with pylupdate4

2009-05-04 Thread Tóth Csaba
Phil Thompson írta:
> On Mon, 04 May 2009 16:47:18 +0200, Tóth Csaba 
> wrote:
>> Phil Thompson írta:
>>> On Sat, 02 May 2009 04:26:38 +0200, Tóth Csaba 
>>> wrote:
 hi,

 i have a problem with the pylupdate4.exe and the encoding it realises.

 If i have this code in a py file:

 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #

 a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
 b = self.trUtf8('Listás hívás összesítő')


 than i run `pylupdate4.exe file.py -ts tr.ts`

 than if i open the translate.ts with Linguist i see these two strings
> to
 translate (i understand the different context of these strings, the
 question is with the encodings of them, why differ?)

 Listás hívás összesítő
 Listás hívás összesítő


 attached you can find a .ts file i generated. I use
 PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.

 How can i solve this?
>>> pylupdate4 ignores the coding: utf-8 and so doesn't know that the string
>>> passed to QT_TR_NOOP() is utf8.
>>>
>>> I've added support for QT_TR_NOOP_UTF8() which you should use instead.
>> Thanks :)
>>
>> Is this exists in the current available version, or just will be in the
>> next release?
> 
> Next release - there will be a beta installer later today.

great :)
because of the changes, i wont use this as whole, but maybe just the
pylupdate4.


>> Isn't better if you add support for the python codec definition into
>> pylupdate4?
> 
> Yes, but that will take longer - patches welcome.

Hmm, i looked, sadly its not python.. its c++..
Dont you prefer if someone wrote a pythonic version instead of patching
this?

thanks,
tsabi
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] string encoding problem with pylupdate4

2009-05-04 Thread Phil Thompson
On Mon, 04 May 2009 16:47:18 +0200, Tóth Csaba 
wrote:
> Phil Thompson írta:
>> On Sat, 02 May 2009 04:26:38 +0200, Tóth Csaba 
>> wrote:
>>> hi,
>>>
>>> i have a problem with the pylupdate4.exe and the encoding it realises.
>>>
>>> If i have this code in a py file:
>>>
>>> #!/usr/bin/env python
>>> # -*- coding: utf-8 -*-
>>> #
>>>
>>> a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
>>> b = self.trUtf8('Listás hívás összesítő')
>>>
>>>
>>> than i run `pylupdate4.exe file.py -ts tr.ts`
>>>
>>> than if i open the translate.ts with Linguist i see these two strings
to
>>> translate (i understand the different context of these strings, the
>>> question is with the encodings of them, why differ?)
>>>
>>> Listás hívás összesítő
>>> Listás hívás összesítő
>>>
>>>
>>> attached you can find a .ts file i generated. I use
>>> PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.
>>>
>>> How can i solve this?
>> 
>> pylupdate4 ignores the coding: utf-8 and so doesn't know that the string
>> passed to QT_TR_NOOP() is utf8.
>> 
>> I've added support for QT_TR_NOOP_UTF8() which you should use instead.
> 
> Thanks :)
> 
> Is this exists in the current available version, or just will be in the
> next release?

Next release - there will be a beta installer later today.

> Isn't better if you add support for the python codec definition into
> pylupdate4?

Yes, but that will take longer - patches welcome.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] string encoding problem with pylupdate4

2009-05-04 Thread Phil Thompson
On Sat, 02 May 2009 04:26:38 +0200, Tóth Csaba 
wrote:
> hi,
> 
> i have a problem with the pylupdate4.exe and the encoding it realises.
> 
> If i have this code in a py file:
> 
> #!/usr/bin/env python
> # -*- coding: utf-8 -*-
> #
> 
> a = QtCore.QT_TR_NOOP('Listás hívás összesítő')
> b = self.trUtf8('Listás hívás összesítő')
> 
> 
> than i run `pylupdate4.exe file.py -ts tr.ts`
> 
> than if i open the translate.ts with Linguist i see these two strings to
> translate (i understand the different context of these strings, the
> question is with the encodings of them, why differ?)
> 
> Listás hívás összesítő
> Listás hívás összesítő
> 
> 
> attached you can find a .ts file i generated. I use
> PyQt-Py2.6-gpl-4.4.4-2 with Python 2.6.2.
> 
> How can i solve this?

pylupdate4 ignores the coding: utf-8 and so doesn't know that the string
passed to QT_TR_NOOP() is utf8.

I've added support for QT_TR_NOOP_UTF8() which you should use instead.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Regression in SIP sip-4.8-snapshot-20090409 wrt MappedTypes

2009-05-04 Thread Darren Dale
On Mon, Apr 20, 2009 at 2:54 PM, Phil Thompson
wrote:

> On Mon, 20 Apr 2009 08:22:54 +0200, Simon Edwards 
> wrote:
> > Phil Thompson wrote:
> >> On Sun, 19 Apr 2009 21:39:29 +0200, Simon Edwards 
> >> wrote:
> >>> Phil Thompson wrote:
>  sipForceConvertTo_*() (and related functions) are internal and should
> >> not
>  be used by handwritten code. If it isn't documented then you can't use
>  it.
> >>> Thanks that helps a lot.
> >>>
> >>> Another question. 4.8 gives errors on PyKDE related it trying to use a
> >>> copy constructor or operator=() on some classes which don't have one or
>
> >>> have one which is private. It looks like SIP wants to use the copy
> >>> constructor to copy a returned value from a method and then fails. Has
> >>> anything changed? Have you got any tips about what I should be trying.
> >>
> >> If a copy ctor is private then SIP should be told about it - see
> >> qobject.sip.
> >
> > The copy ctor is included and private like many others. This might be a
> > namespace related issue. Here is what I've got. It worked in SIP < 4.8.
> >
> > class KEditListBox : QGroupBox
> > {
> > public:
> >  class CustomEditor
> >  {
> >  public:
> >  CustomEditor ();
> >  CustomEditor (QWidget* repWidget, KLineEdit* edit);
> >  CustomEditor (KComboBox* combo);
> >
> >  private:
> >  CustomEditor (const KEditListBox::CustomEditor&);
> >  };
> > // ...
> > };
> >
> >
> > class KUrlRequester : KHBox
> > {
> > // ...
> > public:
> >  explicit KUrlRequester (QWidget* parent /TransferThis/ = 0);
> >  explicit KUrlRequester (const KUrl& url, QWidget* parent
> > /TransferThis/ = 0);
> >  KUrlRequester (QWidget* editWidget, QWidget* parent /TransferThis/);
> >
> >  const KEditListBox::CustomEditor&  customEditor ();
> > //  ^ This here fails.
> > }
> >
> >
> > /home/sbe/devel/kdesvninstall/include/keditlistbox.h: In function
> > ‘PyObject* meth_KUrlRequester_customEditor(PyObject*, PyObject*)’:
> > /home/sbe/devel/kdesvninstall/include/keditlistbox.h:77: error:
> > ‘KEditListBox::CustomEditor::CustomEditor(const
> > KEditListBox::CustomEditor&)’ is private
> > sipkiopart5.cpp:22797: error: within this context
>
> Try tonight's SIP snapshot. It's a problem with the new implicit copying of
> const reference results.
>

This morning I checkout out pykde revision 959021 and tried to build it
against kde-4.2.2 and the most recent SIP/PyQt4 snapshots. qhostinfo.h can
not be found during make, but the file is present on my system in both
/usr/include/qt4/QtNetwork/ and /usr/include/qt4/Qt/. Is it possible to
build pykde with the riverbank snapshots and kde-4.2.2? Could anyone please
advise?

Thanks,
Darren

$ make
make[1]: Entering directory `/usr/local/src/pykde4/kdecore'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/pykde4/kdecore'
make[1]: Entering directory `/usr/local/src/pykde4/solid'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/pykde4/solid'
make[1]: Entering directory `/usr/local/src/pykde4/kdeui'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/pykde4/kdeui'
make[1]: Entering directory `/usr/local/src/pykde4/kio'
g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -march=k8 -mtune=k8
-pipe -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB
-DQT_GUI_LIB -I. -I/usr/local/src/pykde4/extra/kde422 -I/usr/include
-I/usr/include/qt4 -I/usr/include/QtCore -I/usr/include/qt4/QtCore
-I/usr/include/QtGui -I/usr/include/qt4/QtGui -I/usr/include/QtXml
-I/usr/include/qt4/QtXml -I/usr/include/QtSvg -I/usr/include/qt4/QtSvg
-I/usr/include/solid -I/usr/include/qt4/solid -I/usr/include/kio
-I/usr/include/qt4/kio -I/usr/include/kfile -I/usr/include/qt4/kfile
-I/usr/include/kssl -I/usr/include/qt4/kssl -I/usr/include/python2.6
-I/usr/share/qt4/mkspecs/default -I/usr/X11R6/include -o sipkiopart0.o
sipkiopart0.cpp
In file included from
sipkiopart0.cpp:7:
sipAPIkio.h:6417:1: warning:
"sipType_QList_27000600QPair_0100QString_0100QString" redefined
sipAPIkio.h:5668:1: warning: this is the location of the previous
definition
sipAPIkio.h:6683:1: warning:
"sipType_QList_27000600QPair_0100QString_0100QString" redefined
sipAPIkio.h:6417:1: warning: this is the location of the previous
definition
sipAPIkio.h:6689:1: warning:
"sipType_QList_27000600QPair_0100QByteArray_0100QByteArray"
redefined

sipAPIkio.h:6415:1: warning: this is the location of the previous
definition
sipAPIkio.h:10427:1: warning:
"sipType_QList_27000600QPair_0100QString_0100QString" redefined
sipAPIkio.h:6683:1: warning: this is the location of the previous
definition
/usr/share/sip/PyQt4/QtNetwork/qhostinfo.sip:42:23: error: qhostinfo.h: No
such file or
directory

make[1]: *** [sipkiopart0.o] Error
1
make[1]: Leaving directory
`/usr/local/src/pykde4/kio'
make: *** [all] Error 2
___
PyQt mailing listPyQt@riverbankcomputing.com
ht

[PyQt] doubts about Example Book Rapid GUI Programming with Python and Qt

2009-05-04 Thread Airton Arantes
Hello Folks, I'm beginning using PyQt through the book Rapid "GUI
Programming with Python and Qt".

I'm seeing a strange statement at chapter 4(page 129).

while QTime.currentTime() < due:
time.sleep(20) # 20 seconds


Where I must to put this statement above? I did this so far:

http://pastebin.com/m645e6291


Thanks

-- 
Airton Arantes Coelho Filho
Information System Student
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt