molodiuc / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

SIP version trouble #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when I tried to import guiqwt, it conflicted with PyQt4.8 and SIP.

===============================================================================
If relevant, please answer to the following questions:

1. What version of Python(x,y) have you installed? => 2.6.5.6

2. Which components have you installed (Python(x,y) installer: component
page):
    b. Have you selected the "Full" component selection? => Full
c. Have you selected manually plugins in the component list? What
plugins? => PyQt4-4.8.2_py26.exe

3. Have you selected the option "Customize installation directories"?
=>    b. No

4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?
=>    a. default path

6. Have you installed Python(x,y):
=>    b. For "All users"

7. What is your operating system?
=> Windows Server Ent. 2003 

8. When you installed Python(x,y), were you logged in as :
=>    b. an administrator of the machine

9. If you are using Windows Vista, have you installed Python(x,y):
a. simply by double-clicking on the installer
    b. by right-clicking on the installer and selecting "Run as an
administrator"

10. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
=> First install after os installation

===============================================================================

What steps will reproduce the problem?
>> from guiqwt import tests
>> tests.run()

In [1]: from guiqwt import tests

In [2]: tests.run()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)

C:\Python26\Lib\site-packages\<ipython console> in <module>()

C:\Python26\Lib\site-packages\guiqwt\tests\__init__.pyc in run()
     15     import guiqwt.config # Loading icons
     16     from guidata.guitest import run_testlauncher
---> 17     run_testlauncher(guiqwt)
     18
     19 if __name__ == '__main__':

C:\Python26\Lib\site-packages\guidata\guitest.pyc in run_testlauncher(package)
    165     from PyQt4.QtGui import QApplication
    166     app = QApplication([])
--> 167     win = TestLauncherWindow(package)
    168     win.show()
    169     app.exec_()

C:\Python26\Lib\site-packages\guidata\guitest.pyc in __init__(self, package, 
parent)
    133         test_package = sys.modules[test_package_name]
    134
--> 135         tests = get_tests(test_package)
    136         listwidget = QListWidget(self)
    137         listwidget.addItems([osp.basename(test.filename) for test in tests])

C:\Python26\Lib\site-packages\guidata\guitest.pyc in get_tests(test_package)
     30             continue
     31         if not module_name.startswith('_'):
---> 32             _temp = __import__(test_package.__name__, 
fromlist=[module_name])
     33             test_module = getattr(_temp, module_name)
     34             test = TestModule(test_module)

C:\Python26\Lib\site-packages\guiqwt\tests\computations.py in <module>()
     10 SHOW = True # Show test in GUI-based test launcher
     11
---> 12 from guiqwt.plot import CurveDialog
     13 from guiqwt.builder import make
     14

C:\Python26\Lib\site-packages\guiqwt\plot.py in <module>()
    116 # Local imports

    117 from guiqwt.config import _
--> 118 from guiqwt.baseplot import EnhancedQwtPlot
    119 from guiqwt.curve import CurvePlot, PlotItemList
    120 from guiqwt.image import ImagePlot

C:\Python26\Lib\site-packages\guiqwt\baseplot.py in <module>()
     48 from PyQt4.QtGui import QSizePolicy, QColor, QPixmap, QPrinter
     49 from PyQt4.QtCore import QSize, Qt
---> 50 from PyQt4.Qwt5 import (QwtPlot, QwtLinearScaleEngine, 
QwtLog10ScaleEngine,
     51                         QwtText, QwtPlotCanvas)
     52

C:\Python26\lib\site-packages\PyQt4\Qwt5\__init__.py in <module>()
     30
     31
---> 32 from Qwt import *
     33
     34 try:

RuntimeError: the sip module implements API v8.0 to v8.1 but the PyQt4.Qwt5.Qwt 
module requires API v5.0

What is the expected output? What do you see instead?

Original issue reported on code.google.com by Kim.Dohh...@gmail.com on 15 Feb 2011 at 7:16

GoogleCodeExporter commented 9 years ago
Please test Qwt 5.2.1 from the updated plugins section.

Original comment by grizzly.nyo on 15 Feb 2011 at 9:53