$ head /usr/bin/laborejo-qt #! /usr/bin/python3 # -*- coding: utf-8 -*- from time import sleep from signal import SIGKILL from os import getpid, kill if __name__ == "__main__": import argparse, os parser = argparse.ArgumentParser(description="Laborejo Qt") parser.add_argument('infiles', help="One or more lbjs or lbj files to load.", nargs="*") parser.add_argument("-n", "--new", help="Start with an empty file (additionally to loaded files)", action="store_true")
$ python3 /usr/bin/laborejo-qt Traceback (most recent call last): File "/usr/bin/laborejo-qt", line 24, in <module> import laborejoqt File "/usr/share/laborejo/laborejoqt/__init__.py", line 13, in <module> from PyQt4 import QtCore, QtGui ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so: undefined symbol: PyString_Type But I just realized that I had the PYTHONPATH environment variable set (to /home/user/lib/python2.7/site-packages). I unset it and now I can start laborejo-qt. I don't know if it's It's the first time I have a problem with this PYTHONPATH but I guess it is probably a problem on my part. Anyway, the relation between PYTHONPATH and the error message is not obvious... On 18/12/2014 14:41, Alessio Treglia wrote: > severity 773450 important > tags 773450 moreinfo > thanks > > Hi, > > On Thu, Dec 18, 2014 at 2:03 PM, Félix Sipma <felix+deb...@gueux.org> wrote: >> ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so: undefined >> symbol: PyString_Type > > Sorry but I can't reproduce it here. > Could you please show me the result fo the following command? > > head /usr/bin/laborejo-qt > > Would you please test running laborejo-qt as follows? > > python3 /usr/bin/laborejo-qt > > Thanks. -- Félix
signature.asc
Description: Digital signature