Hi Stefan,

On 2010/08/10, at 08:13, Stefan Scherfke wrote:

> Hi Carlos,
> 
> thanks for that package. I’ve just tried it, but unfortunately it doesn’t 
> work. I’ve installed the Python 2.6.5 package from python.org and the binary 
> Qt 4.6.3 Cocoa.
> 
> The installer puts the Python package into /Library/Python/2.6/site-packages, 
> but for the python.org-package it is 
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages.
>  If I add the former to my PYTHONPATH, I can import PySide, but not 
> PySide.QtCore. Just got a note, that QtCore could not be found. I also tried 
> copying the Package to my “real” site-packages. If I try to import 
> PySide.QtCore, I get:
> 
>>>> import PySide
>>>> import PySide.QtCore
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: 
> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PySide/QtCore.so,
>  2): no suitable image found.  Did find:
>       
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PySide/QtCore.so:
>  mach-o, but wrong architecture

I don't have that site-packages path (neither the path exists):

>>> sys.path
['', 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
 
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
 '/Library/Python/2.6/site-packages', 
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
 
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']

And as so I installed in '/Library/Python/2.6/site-packages' because:

macnux:~ carlos$ cat /Library/Python/2.6/site-packages/README 
This directory exists so that 3rd party packages can be installed
here.  Read the source for site.py for more details.

and also because of

macnux:~ carlos$ python -c "from distutils.sysconfig import get_python_lib; 
print get_python_lib()"
/Library/Python/2.6/site-packages


> Did you use the binary version of Qt or did you compile your own? I still 
> can’t compile the current version of pyside (see my mail from Aug 6, 2010).

I downloaded the 32-bit and 64-bit binary from 
http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to