Search code examples
python-3.xqt4pyside

Building PySide 1.2.0: no pyside-uic


I compiled PySide 1.2.0 for python 3.3 on my machine (Ubuntu 13.04 x64), but, for some reason, pyside-tools don't get "compiled".

When I try to execute pyside-uic (after install) I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/pyside-uic", line 9, in <module>
    load_entry_point('PySide==1.2.0', 'console_scripts', 'pyside-uic')()
  File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 345, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2382, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python3.3/dist-packages/PySide-1.2.0-py3.3.egg/PySide/scripts/uic.py", line 28, in <module>
    from pysideuic.driver import Driver
ImportError: No module named 'pysideuic'

The egg file doesn't have the pysideuic folder. And when I check the pyside_install/py3.3-qt4.8.4-64bit-release/lib folder, I found that a "python2.7" folder exist!!

I build the sources using the instructions from this page: https://pypi.python.org/pypi/PySide.

Please, help.


Solution

  • It should be fixed now. Please get latest version of pyside-setup from github [1] and rebuild pyside distribution. Let me know if you have any issues.

    [1] https://github.com/PySide/pyside-setup