Opened 13 years ago

Closed 12 years ago

#31375 closed defect (fixed)

py27-pyqwt does not work anymore

Reported by: root42 Owned by: mf2k (Frank Schima)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: michaelld (Michael Dickens)
Port: py27-pyqwt

Description (last modified by mf2k (Frank Schima))

I cannot use pyqwt anymore. When I run my program, I get this:

Traceback (most recent call last):
  File "./myprogram.py", line 20, in <module>
    from PyQt4 import QtCore, QtGui, QtOpenGL, uic, Qwt5
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/Qwt5/__init__.py", line 32, in <module>
    from Qwt import *
RuntimeError: the PyQt4.QtCore module is version 1 but the PyQt4.Qwt5.Qwt module requires version -1

Change History (6)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… michaelld@… added
Description: modified (diff)

In the future, please Cc the maintainer(s) and use WikiFormatting.

What is the output of the following?

port installed qt4-mac py27-pyqwt

What version of Mac OS X and Xcode are you running?

comment:2 Changed 13 years ago by root42

Thanks, WikiFormatting is a good idea. Also, I would have assumed that the owners are automatically added, since I provided a port name.

Concerning: What is the output of the following?

port installed qt4-mac py27-pyqwt
$ port installed qt4-mac py27-pyqwt
The following ports are currently installed:
  py27-pyqwt @5.2.0_1+qwt52 (active)
  qt4-mac @4.7.3_0+quartz
  qt4-mac @4.7.4_0+quartz
  qt4-mac @4.7.4_1+quartz (active)

OS X 10.7.1, XCode 4.1

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Cc: macsforever2000@… removed
Owner: changed from macports-tickets@… to macsforever2000@…

comment:4 Changed 12 years ago by michaelld (Michael Dickens)

In my experience, this error generally means that a dependent library (e.g., qwt) was upgraded but the Python bindings were not recompiled. I find that Python bindings generally need to be rebuilt when a dependent library is modified. I would suggest that you uninstall qwt52 and py27-pyqwt and then (re)install them & see if that works. I have these exact ports installed on 10.6 and they do work (for me), so it's also possible this is a 10.7 build issue.

comment:5 Changed 12 years ago by michaelld (Michael Dickens)

There's a new qt4-mac and py27-pyqt4 out, which should fix this issue. Please do a "port selfupdate" and then "upgrade outdated" and then try again.

comment:6 Changed 12 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

This works for me, so I'm calling this fixed.

Note: See TracTickets for help on using tickets.