[PySide] Install via pip fails on OS X Mavericks
sean at seanfisk.com
Mon Mar 3 07:44:22 CET 2014
When compiling from source, you can install into a virtualenv. When using
Homebrew, it's not possible to install into a virtualenv.
I don't use Homebrew's Python, and don't install any other Python packages
other than PySide. Then, inside of the virtualenv, I use a PTH
file<http://docs.python.org/2/library/site.html>to point to Homebrew's
site-packages/ directory. Unfortunately, this also includes any other
Python packages installed by Homebrew if you decide to install them. It's
not the best option, but it works well. I can send you my
PTH-file-writing-script if you are interested.
If you are interested in compiling from source into a virtualenv, my team
is working on improving the PySide
BuildScripts<https://github.com/PySide/BuildScripts>repo and I can
send you what we have as well.
If you are interested in either of these, expect a reply from me tomorrow
as it is pretty late in my neck of the woods.
On Mon, Mar 3, 2014 at 1:29 AM, Erica Cane <ericacane at splitu.com> wrote:
> Thanks for the responses Ryan and Sean.
> Is it possible to use homebrew or source to install into a virtualenv?
> On Sun, Mar 2, 2014 at 10:06 PM, Sean Fisk <sean at seanfisk.com> wrote:
>> Hi Erica,
>> This won't fix the PyPi issue, but I usually install on Mac OS X using
>> Homebrew <http://brew.sh/>. Though that has had some recent issues as
>> Sean Fisk
>> On Sun, Mar 2, 2014 at 6:47 PM, Erica B. <ericacane at splitu.com> wrote:
>>> Hi all,
>>> I'm attempting to install pyside via pip on my Macbook Pro running OS X
>>> 10.9.2 (Mavericks) and am running into some issues. The install fails with
>>> the following error:
>>>> fatal error: 'tr1/functional' file not found
>>>> #include HASH_FUN_H // defined in config.h
>>>> note: expanded from macro 'HASH_FUN_H'
>>>> #define HASH_FUN_H <tr1/functional>
>>>> 1 error generated.
>>>> make: ***
>>>> [libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o] Error 1
>>>> make: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>> error: Error compiling shiboken
>>> After some searching, it seems this is a Mavericks error and may have
>>> been fixed in November (https://codereview.qt-project.org/#change,69324),
>>> but that change hasn't made its way to PyPi (
>>> https://pypi.python.org/pypi/PySide). If this is the case, perhaps the
>>> PyPi package could use a refresh. If not, any ideas what can be done to fix
>>> the error?
>>> PySide mailing list
>>> PySide at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PySide