[PySide] ImportError when importing from the PySide Egg

Purple Tentacle purplish.tentacle at gmail.com
Sat Feb 2 09:21:49 CET 2013


Aaron, yes I had used the --standalone flag with setup.py

Roman, that worked.  So I executed:
easy_install --install-dir=$PYTHONDIR/site-packages/
PySide-1.1.3dev-py2.7.egg

Thanks guys!


On Fri, Feb 1, 2013 at 8:32 AM, Roman Lacko <backup.rlacko at gmail.com> wrote:

> 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/20130202/75c62b3b/attachment.html>


More information about the PySide mailing list