[PySide] Install via pip fails on OS X Mavericks

Roman Lacko backup.rlacko at gmail.com
Sun Apr 13 17:29:17 CEST 2014


Hi Christian,

If your osx fixes are allready merged in official shiboken repository at
gitorious and John as main maintainer and release manager agreed, we can
start the release process.

John, is there any time schedule for new release ?

Thanks
Roman


2014-04-12 21:50 GMT+02:00 Christian Tismer <tismer at stackless.com>:

>  Hi Roman,
>
> for use in my projects, I cloned shiboken and pyside-setup,
> just in order to build 1.2.1 on Mavericks.
>
> Problem is: The fix for Mavericks is in shiboken, but only reachable
> when building the dev version  1.3.0dev. But a dev version is not for PyPi.
>
> My quick hack was to tag the latest version of shiboken with "1.2.1fix",
> then I changed the 1.2.1 version in setup.py like so:
>
>     '1.2.1': [
>         ["shiboken", "1.2.1fix"],
>         ["pyside", "1.2.1"],
>         ["pyside-tools", "0.2.15"],
>         ["pyside-examples", "master"],
>     ],
>
> and then the build works.
>
> $ python setup.py bdist_wheel --version=1.2.1
>
> I agree this is not totally correct, should officially better be 1.2.2
> but for us this works.
>
> I would really like to produce wheels for OS X, finally. But it is kind of
> a showstopper that fixes get in, but pip does not see this.
> Actually, this is not really a new pyside version, but just a fix to
> shiboken.
>
> What do you think, and how can I help/make it happen?
> Should I provide a patch to create 1.2.2 ?
>
> cheers - Chris
>
>
> On 04.03.14 01:05, Roman Lacko wrote:
>
>  Hi,
>
> You can also install PySide with pip directli from git repository.
>
> This should work, but have not tested with latest version:
>  pip install git+ssh://github.com/PySide/pyside-setup.git<https://github.com/username/repo.git>
>
> -Roman
>
> 2014-03-03 23:23 GMT+01:00 Erica Cane <ericacane at splitu.com>:
>
>> Thanks Sean. I am indeed interested in compiling from source in a
>> virtualenv. That said, the ideal solution would be for the PyPi package to
>> be updated with the fix for Mavericks. :)
>>
>>  Thanks again!
>> Erica
>>
>>
>> On Sun, Mar 2, 2014 at 10:44 PM, Sean Fisk <sean at seanfisk.com> wrote:
>>
>>>  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.
>>>
>>> Cheers,
>>>
>>>
>>>  --
>>> Sean Fisk
>>>
>>>
>>> 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
>>>>> well.
>>>>>
>>>>> Cheers,
>>>>>
>>>>>
>>>>>  --
>>>>> 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:
>>>>>>
>>>>>>  /build/PySide/sources/shiboken/ext/sparsehash/google/dense_hash_
>>>>>>> map:97:10: fatal error: 'tr1/functional' file not found
>>>>>>> #include HASH_FUN_H                  // defined in config.h
>>>>>>>          ^
>>>>>>> /build/PySide/sources/shiboken/ext/sparsehash/google/sparsehash/sparseconfig.h:18:24:
>>>>>>> note: expanded from macro 'HASH_FUN_H'
>>>>>>>     #define HASH_FUN_H <tr1/functional>
>>>>>>>                        ^
>>>>>>> 1 error generated.
>>>>>>> make[2]: ***
>>>>>>> [libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o] Error 1
>>>>>>> make[1]: *** [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?
>>>>>>
>>>>>>  Thanks!
>>>>>>  Erica
>>>>>>
>>>>>>
>>>>>>  _______________________________________________
>>>>>>
>>>>>> PySide mailing list
>>>>>> PySide at qt-project.org
>>>>>> http://lists.qt-project.org/mailman/listinfo/pyside
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> PySide mailing list
>> PySide at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/pyside
>>
>>
>
>
> _______________________________________________
> PySide mailing listPySide at qt-project.orghttp://lists.qt-project.org/mailman/listinfo/pyside
>
>
>
> --
> Christian Tismer             :^)   <mailto:tismer at stackless.com> <tismer at stackless.com>
> Software Consulting          :     Have a break! Take a ride on Python's
> Karl-Liebknecht-Str. 121     :    *Starship* http://starship.python.net/
> 14482 Potsdam                :     PGP key -> http://pgp.uni-mainz.de
> phone +49 173 24 18 776  fax +49 (30) 700143-0023
> PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
>       whom do you want to sponsor today?   http://www.stackless.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20140413/89200259/attachment.html>


More information about the PySide mailing list