[PySide] ImportError when importing from the PySide Egg

Roman Lacko backup.rlacko at gmail.com
Fri Feb 1 00:32:00 CET 2013


Hi,
you need to install the PySIde egg with easy_install:

$ easy_install PySide-1.1.3dev-py2.7.egg

If you don't want to install PySide into system python, you can use
virtualenv.

Regards
Roman

2013/2/1 Purple Tentacle <purplish.tentacle at gmail.com>

> Hello everyone,
>
> I followed the instructions <https://github.com/PySide/pyside-setup> for
> building a standalone PySide egg in Linux.  Then I moved the egg to a test
> directory along with a Python script to test it.  I want to be able to
> access the egg from the current directory, not from the Python dir.
>
> The PySide package is found but I get an "ImportError: No module named
> QtCore" when I try to import QtCore, or a similar message for any other
> module.  PySide.__all__  has ['QtCore', 'QtGui', 'QtNetwork', 'QtOpenGL',
> 'QtSql', 'QtSvg', 'QtTest', 'QtWebKit', 'QtScript'].
>
> The test script:
> #!/usr/bin/python
> import sys
> sys.path.append('./PySide-1.1.3dev-py2.7.egg')
> import PySide
> print(PySide.__all__)
> import PySide.QtCore
>
> Am I missing something something? Thanks!!
>
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130201/97fd8f1f/attachment.html>


More information about the PySide mailing list