Angel
Angel

Reputation: 370

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.

Upvotes: 1

Views: 2692

Answers (2)

Advik Dhangar
Advik Dhangar

Reputation: 3

Try to find the pyside-uic.exe or uic.exe in python folder/scripts and copy it in the required directory. or if not found any script in the particular directory, then reinstall PySide and check for any logs that say where pyside UIC is installed. Because I have also used python 2.x and I have personally experienced this problem. Check out for the scripts subfolder in python installation directory

Upvotes: 0

rlacko
rlacko

Reputation: 561

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

Upvotes: 1

Related Questions