Re: Help. HOW TO guide for PyQt installation

2013-03-21 Thread jmfauth
On 20 mar, 11:38, Phil Thompson p...@riverbankcomputing.com wrote:
 On Wed, 20 Mar 2013 03:29:35 -0700 (PDT), jmfauth wxjmfa...@gmail.com
 wrote:









  On 20 mar, 10:30, Phil Thompson p...@riverbankcomputing.com wrote:
  On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth wxjmfa...@gmail.com
  wrote:

   On 20 mar, 01:12, D. Xenakis gouzouna...@hotmail.com wrote:
   Hi there,
   Im searching for an installation guide for PyQt toolkit.
   To be honest im very confused about what steps should i follow for a
   complete and clean installation. Should i better choose to install
 the
   32bit or the 64bit windows version? Or maybe both? Any chance one of
  them
   is more/less bug-crashy than the other? I know both are availiable
 on
  the
   website but just asking.. If i installed this package on windows 8,
   should i have any problems? From what i read PyQt supports only xp
 and
   win7.
   I was thinking about installing the newer version of PyQt along with
  the
   QT5. I have zero expirience on PyQt so either way, everything is
 going
  to
   be new to me, so i dont care that much about the learning curve
  diference
   between new and old PyQt - Qt version. I did not find any installer
 so
  i
   guess i should customly do everything. Any guide for this plz?

   Id also like to ask.. Commercial licence of PyQt can only be bought
 on
   riverbank's website? I think i noticed somewhere an other reseller
   cheaper one or maybe i didnt know what the hell i was reading :).
  Maybe
   something about Qt and not PyQt.

   Please help this noob,
   Regards

   

   Short answer without explanation. It does not work.

   jmf

  Well it works for me. Care to elaborate?

  Phil

  No problem.

  Yesterday, I downloaded PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe
  and installed it on my Windows 7 Pro box after having removed
  a previous version.

  No problem with the installation.

  I quickly tested it with one of my interactive Python interpreters
  and got an error from PyQt4 import QtGui, QtCore saying, that the
  DLL cannot be found.

  Something similar to what Detlev Offenbach reported on
  the PyQt mailing list. Although, I'm not using Qsci.

  Strangely, I had not problem (if I recall correctly) with a
  very basic application (QMainWindow + QLineEdit).

  I had no problem with the demo (I only lauched it).

  I did not spend to much time in investigating further.

  It's the first time I see such an error; usually, no problem.

 The only time that I've seen a problem like that is when running from a
 shell that was started before running the PyQt installer (ie. one with an
 out of date PATH).

 Phil

--

The PATH could be the cause. I stupidly forgot to check it
before removing PyQt...

I repeated the experiment (app == eta26.py). With and
without PyQt in the system PATH. (Btw, why is it
necessary?)

D:\jm\jmpy\eta\eta26c:\python32\python eta26.py
PyQt: 4.8.6, Qt: 4.7.4 Python 3.2.3

No problem.



D:\jm\jmpy\eta\eta26c:\python33\python eta26.py
Traceback (most recent call last):
  File eta26.py, line 32, in module
from PyQt4 import QtGui, QtCore
ImportError: DLL load failed: Le module spécifié est introuvable.
(Translation: The specified module can no be found.)



D:\jm\jmpy\eta\eta26c:\python33\python eta26.py
PyQt: 4.10, Qt: 4.8.4 Python 3.3.0

No problem.



No idea. It is mysterious for me. eta26 is only
importing QtGui and QtCore. It however uses a sophisticated
widget like QPlainTextEdit.

jmf

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


Re: Help. HOW TO guide for PyQt installation

2013-03-21 Thread jmfauth
On 20 mar, 11:29, jmfauth wxjmfa...@gmail.com wrote:
 On 20 mar, 10:30, Phil Thompson p...@riverbankcomputing.com wrote:

-


 Strangely, I had not problem (if I recall correctly) with a
 very basic application (QMainWindow + QLineEdit).


ADDENDUM, CORRECTION

It fails too. I forgot to rename PySide -- PyQt4 !

I tried to collect other experiences via Google. No luck.

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


Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread D. Xenakis
Τη Τετάρτη, 20 Μαρτίου 2013 2:55:22 π.μ. UTC+2, ο χρήστης Terry Reedy έγραψε:
 On 3/19/2013 8:12 PM, D. Xenakis wrote:
 
  Hi there, Im searching for an installation guide for PyQt toolkit. To
 
  be honest im very confused about what steps should i follow for a
 
  complete and clean installation. Should i better choose to install
 
  the 32bit or the 64bit windows version?
 
 
 
 I am rather sure you should match your Python installation.
 
 
 
  If i installed this
 
  package on windows 8, should i have any problems? From what i read
 
  PyQt supports only xp and win7.
 
 
 
 If the PyQT author(s) say nothing about Win8, I would presume that they 
 
 have not tested it. Do you really want to be a guinea pig?
 
 
 
  I was thinking about installing the
 
  newer version of PyQt along with the QT5.
 
 
 
 Does PyQT 'say' that it works with QT5? If so, try it.
 
 
 
 -- 
 
 Terry Jan Reedy

http://www.riverbankcomputing.co.uk/news
Yes from their news

Yes i'll better stay same version as python.
Im just asking as my new laptop has win8 on that and even though i got a linux 
partition on that, id rather not install a win7 partition too :D. I'll give it 
a try what the hek. maybe there is a win7 compability mode or win7image option 
inside win 7 anyway.

I know i cant expect a guide how to as everything is quite new here, but .. im 
just searching for some guidelines here. I have download and installed already 
PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe   Windows 32 bit installer out from 
this website http://www.riverbankcomputing.co.uk/software/pyqt/download , in my 
start menu there is a new folder named PyQt GPL v4.10 for Python v3.3 (x32) 
but when i run Designer and go to about tab it only says:
Qt Assistant
Version 5.0.1
Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).

Would that be normal? Shouldn't i also see somewhere anything about PyQt.. :P

And last but not least.. 
ive noticed in the Riverbank's website this notice Before you can build PyQt 
you must have already built and installed SIP

I havent done that..

What exactly will happend now, that i have not installed that yet. What would 
the conflict be (im asking more so that i can understand how this helps).

Thx 4 your time guys just by reading this!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread jmfauth
On 20 mar, 01:12, D. Xenakis gouzouna...@hotmail.com wrote:
 Hi there,
 Im searching for an installation guide for PyQt toolkit.
 To be honest im very confused about what steps should i follow for a complete 
 and clean installation. Should i better choose to install the 32bit or the 
 64bit windows version? Or maybe both? Any chance one of them is more/less 
 bug-crashy than the other? I know both are availiable on the website but just 
 asking.. If i installed this package on windows 8, should i have any 
 problems? From what i read PyQt supports only xp and win7.
 I was thinking about installing the newer version of PyQt along with the QT5. 
 I have zero expirience on PyQt so either way, everything is going to be new 
 to me, so i dont care that much about the learning curve diference between 
 new and old PyQt - Qt version. I did not find any installer so i guess i 
 should customly do everything. Any guide for this plz?

 Id also like to ask.. Commercial licence of PyQt can only be bought on 
 riverbank's website? I think i noticed somewhere an other reseller cheaper 
 one or maybe i didnt know what the hell i was reading :). Maybe something 
 about Qt and not PyQt.

 Please help this noob,
 Regards



Short answer without explanation. It does not work.

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


Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread Phil Thompson
On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth wxjmfa...@gmail.com
wrote:
 On 20 mar, 01:12, D. Xenakis gouzouna...@hotmail.com wrote:
 Hi there,
 Im searching for an installation guide for PyQt toolkit.
 To be honest im very confused about what steps should i follow for a
 complete and clean installation. Should i better choose to install the
 32bit or the 64bit windows version? Or maybe both? Any chance one of
them
 is more/less bug-crashy than the other? I know both are availiable on
the
 website but just asking.. If i installed this package on windows 8,
 should i have any problems? From what i read PyQt supports only xp and
 win7.
 I was thinking about installing the newer version of PyQt along with
the
 QT5. I have zero expirience on PyQt so either way, everything is going
to
 be new to me, so i dont care that much about the learning curve
diference
 between new and old PyQt - Qt version. I did not find any installer so
i
 guess i should customly do everything. Any guide for this plz?

 Id also like to ask.. Commercial licence of PyQt can only be bought on
 riverbank's website? I think i noticed somewhere an other reseller
 cheaper one or maybe i didnt know what the hell i was reading :).
Maybe
 something about Qt and not PyQt.

 Please help this noob,
 Regards
 
 
 
 Short answer without explanation. It does not work.
 
 jmf

Well it works for me. Care to elaborate?

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


Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread jmfauth
On 20 mar, 10:30, Phil Thompson p...@riverbankcomputing.com wrote:
 On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth wxjmfa...@gmail.com
 wrote:









  On 20 mar, 01:12, D. Xenakis gouzouna...@hotmail.com wrote:
  Hi there,
  Im searching for an installation guide for PyQt toolkit.
  To be honest im very confused about what steps should i follow for a
  complete and clean installation. Should i better choose to install the
  32bit or the 64bit windows version? Or maybe both? Any chance one of
 them
  is more/less bug-crashy than the other? I know both are availiable on
 the
  website but just asking.. If i installed this package on windows 8,
  should i have any problems? From what i read PyQt supports only xp and
  win7.
  I was thinking about installing the newer version of PyQt along with
 the
  QT5. I have zero expirience on PyQt so either way, everything is going
 to
  be new to me, so i dont care that much about the learning curve
 diference
  between new and old PyQt - Qt version. I did not find any installer so
 i
  guess i should customly do everything. Any guide for this plz?

  Id also like to ask.. Commercial licence of PyQt can only be bought on
  riverbank's website? I think i noticed somewhere an other reseller
  cheaper one or maybe i didnt know what the hell i was reading :).
 Maybe
  something about Qt and not PyQt.

  Please help this noob,
  Regards

  

  Short answer without explanation. It does not work.

  jmf

 Well it works for me. Care to elaborate?

 Phil

No problem.

Yesterday, I downloaded PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe
and installed it on my Windows 7 Pro box after having removed
a previous version.

No problem with the installation.

I quickly tested it with one of my interactive Python interpreters
and got an error from PyQt4 import QtGui, QtCore saying, that the
DLL cannot be found.

Something similar to what Detlev Offenbach reported on
the PyQt mailing list. Although, I'm not using Qsci.

Strangely, I had not problem (if I recall correctly) with a
very basic application (QMainWindow + QLineEdit).

I had no problem with the demo (I only lauched it).

I did not spend to much time in investigating further.

It's the first time I see such an error; usually, no problem.

jmf

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


Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread Phil Thompson
On Wed, 20 Mar 2013 03:29:35 -0700 (PDT), jmfauth wxjmfa...@gmail.com
wrote:
 On 20 mar, 10:30, Phil Thompson p...@riverbankcomputing.com wrote:
 On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth wxjmfa...@gmail.com
 wrote:









  On 20 mar, 01:12, D. Xenakis gouzouna...@hotmail.com wrote:
  Hi there,
  Im searching for an installation guide for PyQt toolkit.
  To be honest im very confused about what steps should i follow for a
  complete and clean installation. Should i better choose to install
the
  32bit or the 64bit windows version? Or maybe both? Any chance one of
 them
  is more/less bug-crashy than the other? I know both are availiable
on
 the
  website but just asking.. If i installed this package on windows 8,
  should i have any problems? From what i read PyQt supports only xp
and
  win7.
  I was thinking about installing the newer version of PyQt along with
 the
  QT5. I have zero expirience on PyQt so either way, everything is
going
 to
  be new to me, so i dont care that much about the learning curve
 diference
  between new and old PyQt - Qt version. I did not find any installer
so
 i
  guess i should customly do everything. Any guide for this plz?

  Id also like to ask.. Commercial licence of PyQt can only be bought
on
  riverbank's website? I think i noticed somewhere an other reseller
  cheaper one or maybe i didnt know what the hell i was reading :).
 Maybe
  something about Qt and not PyQt.

  Please help this noob,
  Regards

  

  Short answer without explanation. It does not work.

  jmf

 Well it works for me. Care to elaborate?

 Phil
 
 No problem.
 
 Yesterday, I downloaded PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x32-2.exe
 and installed it on my Windows 7 Pro box after having removed
 a previous version.
 
 No problem with the installation.
 
 I quickly tested it with one of my interactive Python interpreters
 and got an error from PyQt4 import QtGui, QtCore saying, that the
 DLL cannot be found.

 Something similar to what Detlev Offenbach reported on
 the PyQt mailing list. Although, I'm not using Qsci.
 
 Strangely, I had not problem (if I recall correctly) with a
 very basic application (QMainWindow + QLineEdit).
 
 I had no problem with the demo (I only lauched it).
 
 I did not spend to much time in investigating further.
 
 It's the first time I see such an error; usually, no problem.

The only time that I've seen a problem like that is when running from a
shell that was started before running the PyQt installer (ie. one with an
out of date PATH).

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


Help. HOW TO guide for PyQt installation

2013-03-19 Thread D. Xenakis
Hi there,
Im searching for an installation guide for PyQt toolkit.
To be honest im very confused about what steps should i follow for a complete 
and clean installation. Should i better choose to install the 32bit or the 
64bit windows version? Or maybe both? Any chance one of them is more/less 
bug-crashy than the other? I know both are availiable on the website but just 
asking.. If i installed this package on windows 8, should i have any problems? 
From what i read PyQt supports only xp and win7.
I was thinking about installing the newer version of PyQt along with the QT5. I 
have zero expirience on PyQt so either way, everything is going to be new to 
me, so i dont care that much about the learning curve diference between new and 
old PyQt - Qt version. I did not find any installer so i guess i should 
customly do everything. Any guide for this plz?

Id also like to ask.. Commercial licence of PyQt can only be bought on 
riverbank's website? I think i noticed somewhere an other reseller cheaper 
one or maybe i didnt know what the hell i was reading :). Maybe something 
about Qt and not PyQt.

Please help this noob,
Regards
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help. HOW TO guide for PyQt installation

2013-03-19 Thread Terry Reedy

On 3/19/2013 8:12 PM, D. Xenakis wrote:

Hi there, Im searching for an installation guide for PyQt toolkit. To
be honest im very confused about what steps should i follow for a
complete and clean installation. Should i better choose to install
the 32bit or the 64bit windows version?


I am rather sure you should match your Python installation.


If i installed this
package on windows 8, should i have any problems? From what i read
PyQt supports only xp and win7.


If the PyQT author(s) say nothing about Win8, I would presume that they 
have not tested it. Do you really want to be a guinea pig?



I was thinking about installing the
newer version of PyQt along with the QT5.


Does PyQT 'say' that it works with QT5? If so, try it.

--
Terry Jan Reedy

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


Re: PyQt Installation Problem on Windows

2010-11-26 Thread Hans-Peter Jansen
On Wednesday 24 November 2010, 23:03:14 Saul Spatz wrote:
 Hi,

 I've been trying to install PyQt on Windows XP Pro so that I can try
 out eric ide.  I used the binary windows installer for PyQt.  I can
 run eric as administrator, but not with my ordinary user account.  By
 running eric.bat with the --debug flag, I found that he crux of the
 problem is that if I type

  import PyQt4

 in the python shell, it works for both users, but if I type

  import PyQt4.QtCore

 it works for the administrator, but the non-privileged account gets
 the message

 ImportError: DLL load failed: The specified module could not be
 found.

My WinXP installations are always a bit lacking, since I do work 97% of 
my time in Linux (and 2% on MacOSX), but Python 2.6.6 and PyQt 4.7.7 do 
work fine here as a user win XP SP3/i586. Things like what you describe 
usually point to broken installations (remaining manual build 
artefacts, unfinished installs, incomplete deinstallations, ...).
Just uninstall Python and PyQt, remove everything below your Python base 
path, and start over (a registry check/cleanup might be worth, too).

 In the file the file pyqtconfig.py from Python26\Lib\site-packages
 \PyQt4 I have the line

 'pyqt_config_args':  '--confirm-license -b C:\\Python26\\Lib\\site-
 packages\\PyQt4\\bin',

 I checked with a friend who uses eric, and his file does not have the
 --confirm-license parameter.  As far as we can tell, we followed the
 same installation procedures.

This is unrelated, since it is only a detail in the build process, but 
points to differing versions.

 By the way, I have tried this with python 3.1 on the same machine
 with similar results.

 I've blown a whole day playing with this, so I'd really appreciate
 any help you can give me.

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


PyQt Installation Problem on Windows

2010-11-24 Thread Saul Spatz
Hi,

I've been trying to install PyQt on Windows XP Pro so that I can try
out eric ide.  I used the binary windows installer for PyQt.  I can
run eric as administrator, but not with my ordinary user account.  By
running eric.bat with the --debug flag, I found that he crux of the
problem is that if I type

 import PyQt4

in the python shell, it works for both users, but if I type

 import PyQt4.QtCore

it works for the administrator, but the non-privileged account gets
the message

ImportError: DLL load failed: The specified module could not be found.

In the file the file pyqtconfig.py from Python26\Lib\site-packages
\PyQt4 I have the line

'pyqt_config_args':  '--confirm-license -b C:\\Python26\\Lib\\site-
packages\\PyQt4\\bin',

I checked with a friend who uses eric, and his file does not have the
--confirm-license parameter.  As far as we can tell, we followed the
same installation procedures.

By the way, I have tried this with python 3.1 on the same machine with
similar results.

I've blown a whole day playing with this, so I'd really appreciate any
help you can give me.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyQT installation /configuration

2006-07-16 Thread Phil Thompson
On Sunday 16 July 2006 1:09 am, [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
  Phil Thompson wrote:
   For Qt4 use the binary installer from...
  
   http://www.trolltech.com/developer/downloads/qt/windows
  
   For PyQt4 use the binary installer from...
  
   http://www.riverbankcomputing.co.uk/pyqt/download.php
 
  Ah thanks, I'm a dork. Why didn't I see that before mutter?

 Waitaminute, didn't you write it? Oh dear.

 I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
 GPL v4.0 over Python 2.4, and the demos for both run happily enough,
 but when I try to run the first example (in IDLE) from Boudewijn
 Rempt's GUI Programming with Python: QT Edition I just get
 ImportError: No module named qt. Is there something I need to add to
 my sys.path here?

 Sorry to bother you with the newbie questions.

Boudewijn's book describes Qt/PyQt v3.

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


Re: PyQT installation /configuration

2006-07-16 Thread David Boddie
[EMAIL PROTECTED] wrote:
 David Boddie wrote:

  However, you will have difficulty using the examples in that book
  because it was written for PyQt3.

 Ah yes, it doesn't recognise QApplication now. Never mind.

QApplication is still there. You can access it via the Qt module and
create an application object in the following way:

  import sys
  from PyQt4 import Qt
  app = Qt.QApplication(sys.argv)

  Work is underway to port the book
  to PyQt4, but it will take some time. (You can help with this and learn
  about PyQt4 at the same time, if you want.)

 Er...you might be overestimating my potential unless there's some
 *really* entry-level material to be dealt with there. Though they do
 say it's a good way to learn. Is there a forum?

Yes, it's at http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

  There's plenty of learning material for Qt 4; the official
  documentation at http://doc.trolltech.com/4.1 contains examples
  and overviews that are readable if you already know C++.

 One of the reasons I chose Python was so I wouldn't have to, alas.

Much of the example code for Qt is readable even if you only
know Python. Some of the main differences between Qt and PyQt
are described in this document:

http://www.riverbankcomputing.com/Docs/PyQt4/pyqt4ref.html

Good luck!

David

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


PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]
Hi there. I've been trying to get PyQT working on W2K, but have not yet
found a sufficiently detailed walk-through for my somewhat
command-line-challenged sensibilities. I did find this page:
http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
about installing the whole of Visual Studio .NET as a prerequisite. Can
anyone tell me if the passing of the years has made this process any
more approachable?

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


Re: PyQT installation /configuration

2006-07-15 Thread Phil Thompson
On Saturday 15 July 2006 9:25 am, [EMAIL PROTECTED] wrote:
 Hi there. I've been trying to get PyQT working on W2K, but have not yet
 found a sufficiently detailed walk-through for my somewhat
 command-line-challenged sensibilities. I did find this page:
 http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
 about installing the whole of Visual Studio .NET as a prerequisite. Can
 anyone tell me if the passing of the years has made this process any
 more approachable?

For Qt4 use the binary installer from...

http://www.trolltech.com/developer/downloads/qt/windows

For PyQt4 use the binary installer from...

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

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


Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]

Phil Thompson wrote:
 On Saturday 15 July 2006 9:25 am, [EMAIL PROTECTED] wrote:
  Hi there. I've been trying to get PyQT working on W2K, but have not yet
  found a sufficiently detailed walk-through for my somewhat
  command-line-challenged sensibilities. I did find this page:
  http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
  about installing the whole of Visual Studio .NET as a prerequisite. Can
  anyone tell me if the passing of the years has made this process any
  more approachable?

 For Qt4 use the binary installer from...

 http://www.trolltech.com/developer/downloads/qt/windows

 For PyQt4 use the binary installer from...

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

Ah thanks, I'm a dork. Why didn't I see that before mutter?

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


Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]

[EMAIL PROTECTED] wrote:
 Phil Thompson wrote:

  For Qt4 use the binary installer from...
 
  http://www.trolltech.com/developer/downloads/qt/windows
 
  For PyQt4 use the binary installer from...
 
  http://www.riverbankcomputing.co.uk/pyqt/download.php

 Ah thanks, I'm a dork. Why didn't I see that before mutter?

Waitaminute, didn't you write it? Oh dear.

I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
GPL v4.0 over Python 2.4, and the demos for both run happily enough,
but when I try to run the first example (in IDLE) from Boudewijn
Rempt's GUI Programming with Python: QT Edition I just get
ImportError: No module named qt. Is there something I need to add to
my sys.path here?

Sorry to bother you with the newbie questions.

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


Re: PyQT installation /configuration

2006-07-15 Thread David Boddie
[EMAIL PROTECTED] wrote:

 I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
 GPL v4.0 over Python 2.4, and the demos for both run happily enough,
 but when I try to run the first example (in IDLE) from Boudewijn
 Rempt's GUI Programming with Python: QT Edition I just get
 ImportError: No module named qt. Is there something I need to add to
 my sys.path here?

The module structures for PyQt3 and PyQt4 are quite different: the
monolithic qt module from PyQt3 has been replaced by a number of
modules in PyQt4. Despite this, there is a similar way to import qt
in PyQt4:

  from PyQt4 import Qt

However, you will have difficulty using the examples in that book
because it was written for PyQt3. Work is underway to port the book
to PyQt4, but it will take some time. (You can help with this and learn
about PyQt4 at the same time, if you want.)

In the meantime, the set of slides from a talk at EuroPython 2006 is
probably the only learning material on the web for PyQt4:

http://indico.cern.ch/contributionDisplay.py?contribId=33amp;sessionId=41amp;confId=44

There's plenty of learning material for Qt 4; the official
documentation at http://doc.trolltech.com/4.1 contains examples
and overviews that are readable if you already know C++. Those of us
who use PyQt4 are still catching up!

All the best,

David

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


Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]

David Boddie wrote:

 The module structures for PyQt3 and PyQt4 are quite different: the
 monolithic qt module from PyQt3 has been replaced by a number of
 modules in PyQt4. Despite this, there is a similar way to import qt
 in PyQt4:

   from PyQt4 import Qt

 However, you will have difficulty using the examples in that book
 because it was written for PyQt3.

Ah yes, it doesn't recognise QApplication now. Never mind.

 Work is underway to port the book
 to PyQt4, but it will take some time. (You can help with this and learn
 about PyQt4 at the same time, if you want.)

Er...you might be overestimating my potential unless there's some
*really* entry-level material to be dealt with there. Though they do
say it's a good way to learn. Is there a forum?

 In the meantime, the set of slides from a talk at EuroPython 2006 is
 probably the only learning material on the web for PyQt4:

 http://indico.cern.ch/contributionDisplay.py?contribId=33amp;sessionId=41amp;confId=44

 There's plenty of learning material for Qt 4; the official
 documentation at http://doc.trolltech.com/4.1 contains examples
 and overviews that are readable if you already know C++.

One of the reasons I chose Python was so I wouldn't have to, alas.

Thanks!

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


Re: PyQT installation

2005-01-01 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes:
[...]
 Basically: if you want it on Windows for free, forget Qt

Correct.


 (I hear the
 cygwin people are trying to make a GPL Qt available for Win+cyg+XFree,
 but I suspect trolltech ain't happy about that -- anyway, I don't think
 it would be native, X11 being still required).
[...]

Not correct.  It's driven by KDE, and it's more ambitious than that:

http://kde-cygwin.sourceforge.net/qt3-win32/roadmap.php


IIRC, people have already run some KDE apps under Windows (though
still needing X, so far).

I wonder how TrollTech will react as (and if) it progresses.


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


Re: PyQT installation

2005-01-01 Thread Ken Godee
John J. Lee wrote:
[EMAIL PROTECTED] (Alex Martelli) writes:
[...]
Basically: if you want it on Windows for free, forget Qt

Correct.
I believe the book C++ GUI programming Qt3 comes
with a windows Qt gpl 3.x version. Just have to buy
the book. No PyQt version to match thou.
Blackadder from the Kompany, while not free, is still
a pretty good deal. Like  $100 for personal and around
$350 for commercial version. Include current windows/linux
versions of (Qt)PyQt along with converted Qt C++ to PyQt docs.
  Not correct.  It's driven by KDE, and it's more ambitious than that:
http://kde-cygwin.sourceforge.net/qt3-win32/roadmap.php
IIRC, people have already run some KDE apps under Windows (though
still needing X, so far).
I wonder how TrollTech will react as (and if) it progresses.
I don't think your giving TrollTech any credit here, yes they have
a business model and need to make money, but not everybody is
Microsoft. They are fully aware and supportive of the project
and I remember reading not to long ago they struck an aggrement
with the project that if anything ever happened to TrollTech they
would release Qt to project under gpl, or something like that.
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyQT installation

2005-01-01 Thread John J Lee
On Sat, 1 Jan 2005, Ken Godee wrote:
[...]
 I believe the book C++ GUI programming Qt3 comes
 with a windows Qt gpl 3.x version. Just have to buy
 the book. No PyQt version to match thou.

GPL only if you buy the book makes no sense.  Either it's GPL or it 
isn't.  (It isn't, in fact.)

[...]
  IIRC, people have already run some KDE apps under Windows (though
  still needing X, so far).
  
  I wonder how TrollTech will react as (and if) it progresses.
  
 
 I don't think your giving TrollTech any credit here, yes they have
 a business model and need to make money, but not everybody is
 Microsoft. They are fully aware and supportive of the project
 and I remember reading not to long ago they struck an aggrement
 with the project that if anything ever happened to TrollTech they
 would release Qt to project under gpl, or something like that.

I'd forgotten about that agreement (again, driven by KDE).  Reassuring,
assuming the legalese corresponds to what one assumes is the spirit of it,
and that it will hold water if/when tested in the courts.

I am surprised if they support the effort to make a GPL native MS Windows
version of Qt.  They wouldn't have to be evil monopolists to be concerned
about this development, IMHO.


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


Re: PyQT installation

2005-01-01 Thread Jarek Zgoda
Ken Godee wrote:
I believe the book C++ GUI programming Qt3 comes
with a windows Qt gpl 3.x version. Just have to buy
the book. No PyQt version to match thou.
No, Sir. It's a non-commercial edition. At the request from Trolltech, 
there's no PyQt-nc available for this version of Qt.

Blackadder from the Kompany, while not free, is still
a pretty good deal. Like  $100 for personal and around
$350 for commercial version. Include current windows/linux
versions of (Qt)PyQt along with converted Qt C++ to PyQt docs.
This is much better way to get PyQt for Windows!
--
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyQT installation

2004-12-31 Thread Brian
For those curious about Trolltech's stance on Windows, here's what
Trolltech's License FAQ - Open Source Edition (
http://www.trolltech.com/developer/faqs/license_gpl.html ) has to say:

 Why is there no Open Source (GNU GPL) version of Qt on Windows ?

We have regrettably not found a way of making GPL versions for Windows
available without risking the very business model we depend upon to be
able to further develop and support Qt.

Please note that if you make the source code for your project available
and your license allows it, any holder of a commercial Qt Windows
license can create binaries for your project. 

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


Re: PyQT installation

2004-12-30 Thread Phil Thompson
On Thursday 30 December 2004 1:27 am, Nanoscalesoft wrote:
 hello all,
 I am planning to start coding a nanoscale design software in
 python with QT interface.I have to do this in windows or linux.Intially
 windows would be fine.
 I have struggled almost full day today trying to make
 from import qt *
 execute...I have the basic python core. I went
 through the sites like riverbankcomputing and trolltech and few online
 pages and books which talk about PyQT but never say about their
 installation step properly.
 I need to know step by step what shud i do.I have also installed
 the windows binary of PyQT from riverbank and have ordered a QTdesigner
 CD.But i can't wait.I need to do this fast.(Is there any other thing i
 have to do)
 Any clean and clear cut info in linux or windows( as I hope this
 as the groups standard to be) would help me start my nanoscale project
 or otherwise i have to rethink the GUI..Common QT is my favourite i
 need my project work to be done on my favourite thing.

Exactly what versions of Python, Qt and PyQt have you installed?

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


Re: PyQT installation

2004-12-30 Thread Nanoscalesoft
hi phil...
py--2.4
pyqt--3.3
qt--2.3.0

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


Re: PyQT installation

2004-12-30 Thread Phil Thompson
On Thursday 30 December 2004 2:34 pm, Nanoscalesoft wrote:
 hi phil...
 py--2.4
 pyqt--3.3

I assume you mean PyQt-win-nc-msvc-3.13.exe

 qt--2.3.0

I assume you mean the non-commercial edition.

The binaries are built against Python 2.3.3 - Python 2.4 won't work. Python 
2.4 (and later) will never be supported by the non-commercial edition because 
of the MSVC 6 vs 7 issue.

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


Re: PyQT installation

2004-12-30 Thread Steve Holden
Phil Thompson wrote:
On Thursday 30 December 2004 2:34 pm, Nanoscalesoft wrote:
hi phil...
py--2.4
pyqt--3.3

I assume you mean PyQt-win-nc-msvc-3.13.exe

qt--2.3.0

I assume you mean the non-commercial edition.
The binaries are built against Python 2.3.3 - Python 2.4 won't work. Python 
2.4 (and later) will never be supported by the non-commercial edition because 
of the MSVC 6 vs 7 issue.

Phil
If that is a real *never* then Qt just fell behind in the what's the 
best GUI platform stakes. It'd be a shame to lose PyQT, but if there's 
no way to migrate it forwards it will atrophy and die. Have TrollTech 
said they will never issue MSVC 7 binaries?

Is there no way to use the free Microsoft toolchain to compile, or do 
the language differences just make the whole deal too difficult (or is 
there some other show-stopper that my ignorance prevents me from seeing?).

regards
 Steve
--
Steve Holden   http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC  +1 703 861 4237  +1 800 494 3119
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyQT installation

2004-12-30 Thread Phil Thompson
On Thursday 30 December 2004 4:13 pm, Steve Holden wrote:
 Phil Thompson wrote:
  On Thursday 30 December 2004 2:34 pm, Nanoscalesoft wrote:
 hi phil...
 py--2.4
 pyqt--3.3
 
  I assume you mean PyQt-win-nc-msvc-3.13.exe
 
 qt--2.3.0
 
  I assume you mean the non-commercial edition.
 
  The binaries are built against Python 2.3.3 - Python 2.4 won't work.
  Python 2.4 (and later) will never be supported by the non-commercial
  edition because of the MSVC 6 vs 7 issue.
 
  Phil

 If that is a real *never* then Qt just fell behind in the what's the
 best GUI platform stakes. It'd be a shame to lose PyQT, but if there's
 no way to migrate it forwards it will atrophy and die. Have TrollTech
 said they will never issue MSVC 7 binaries?

 Is there no way to use the free Microsoft toolchain to compile, or do
 the language differences just make the whole deal too difficult (or is
 there some other show-stopper that my ignorance prevents me from seeing?).

You've completely misunderstood what I said.

I specifically said the non-commercial edition. This is a binary only version 
based on Qt v2.3 and released in March 2001 - the first beta of Qt v4.0 has 
just been released. The commercial and GPL versions of Qt is supplied in 
source form and supports MSVC 6, 7, Borland, Cygwin and the Intel compiler. 
PyQt supports all versions of Python since v1.5.2.

I think Qt is doing very well in the best GUI platform stakes if people 
still want to use a 4 year old version in preference to up to date versions 
of the alternatives.

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


Re: PyQT installation

2004-12-30 Thread Jorge Luiz Godoy Filho
Steve Holden, Quinta 30 Dezembro 2004 14:13, wrote:

 If that is a real *never* then Qt just fell behind in the what's the
 best GUI platform stakes. It'd be a shame to lose PyQT, but if there's
 no way to migrate it forwards it will atrophy and die. Have TrollTech
 said they will never issue MSVC 7 binaries?

non-commercial binaries he said...  I hope it is just the non-commercial
really, 'cause the look  feel of Qt is very nice.
 
 Is there no way to use the free Microsoft toolchain to compile, or do
 the language differences just make the whole deal too difficult (or is
 there some other show-stopper that my ignorance prevents me from seeing?).

Isn't it possible to compile everything with a free compiler?  I'm not a
Windows user, but... :-)


-- 
Godoy. [EMAIL PROTECTED]

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


Re: PyQT installation

2004-12-30 Thread Nanoscalesoft
does that mean PyQT is not forward What a bad thing is this...

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


Re: PyQT installation

2004-12-30 Thread Steve Holden
Phil Thompson wrote:
On Thursday 30 December 2004 4:13 pm, Steve Holden wrote:
Phil Thompson wrote:
On Thursday 30 December 2004 2:34 pm, Nanoscalesoft wrote:
hi phil...
py--2.4
pyqt--3.3
I assume you mean PyQt-win-nc-msvc-3.13.exe

qt--2.3.0
I assume you mean the non-commercial edition.
The binaries are built against Python 2.3.3 - Python 2.4 won't work.
Python 2.4 (and later) will never be supported by the non-commercial
edition because of the MSVC 6 vs 7 issue.
Phil
If that is a real *never* then Qt just fell behind in the what's the
best GUI platform stakes. It'd be a shame to lose PyQT, but if there's
no way to migrate it forwards it will atrophy and die. Have TrollTech
said they will never issue MSVC 7 binaries?
Is there no way to use the free Microsoft toolchain to compile, or do
the language differences just make the whole deal too difficult (or is
there some other show-stopper that my ignorance prevents me from seeing?).

You've completely misunderstood what I said.
And not for the first time, probably. Mea culpa.
I specifically said the non-commercial edition. This is a binary only version 
based on Qt v2.3 and released in March 2001 - the first beta of Qt v4.0 has 
just been released. The commercial and GPL versions of Qt is supplied in 
source form and supports MSVC 6, 7, Borland, Cygwin and the Intel compiler. 
PyQt supports all versions of Python since v1.5.2.

Well, OK, so I take it this means that TrollTech have announced they 
won't be producing an up to date non-commercial edition?

I presume the non-commercial edition is for people who want to use Qt 
but don't want to pay licensing fees or open their source? Or is the GPL 
version only available on non-Windows platforms? Of all the GUI 
platforms I know about, Qt certainly has the murkiest licensing picture.

I think Qt is doing very well in the best GUI platform stakes if people 
still want to use a 4 year old version in preference to up to date versions 
of the alternatives.

I have no quibble with that - as I know, there are a lot of happy Qt 
users, and it has an interestingly different architecture. It would be 
even better if the licensing requirements were consistent across all 
platforms.

and-if-wishes-were-horses-ly y'rs  - steve
--
Steve Holden   http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC  +1 703 861 4237  +1 800 494 3119
--
http://mail.python.org/mailman/listinfo/python-list


Re: PyQT installation

2004-12-30 Thread Jarek Zgoda
Nanoscalesoft wrote:
does that mean PyQT is not forward What a bad thing is this...
Whoa, how did you get it?
You can buy commercial licenses and be as current as we are on Linux 
with GPL versions of Qt+PyQt. Oh, and QScintilla and Eric3!

--
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/
--
http://mail.python.org/mailman/listinfo/python-list


PyQt installation problem

2004-12-29 Thread Bulba!

I got an evaluation version of Qt for Windows and installed PyQt.
However, it gives me this error message:

ImportError: DLL load failed:

It doesn't seem to see the qt-mteval DLL, even though I made
sure that the paths to lib and bin subfolders of Qt are there in
the PATH.

I installed Qt built with MSVC, and PyQt is also built using MSVC
(PyQt-win-eval-msvc-3.13.exe). So why it doesn't see the DLL?

Python version is 2.3.3. 




--
It's a man's life in a Python Programming Association.
-- 
http://mail.python.org/mailman/listinfo/python-list


PyQT installation

2004-12-29 Thread Nanoscalesoft
hello all,
I am planning to start coding a nanoscale design software in
python with QT interface.I have to do this in windows or linux.Intially
windows would be fine.
I have struggled almost full day today trying to make
from import qt *
execute...I have the basic python core. I went
through the sites like riverbankcomputing and trolltech and few online
pages and books which talk about PyQT but never say about their
installation step properly.
I need to know step by step what shud i do.I have also installed
the windows binary of PyQT from riverbank and have ordered a QTdesigner
CD.But i can't wait.I need to do this fast.(Is there any other thing i
have to do)
Any clean and clear cut info in linux or windows( as I hope this
as the groups standard to be) would help me start my nanoscale project
or otherwise i have to rethink the GUI..Common QT is my favourite i
need my project work to be done on my favourite thing.

regards,
Charles

(doing an example program wud be a welcome sweeet)

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