> On Dec 10, 2015, at 6:52 AM, Hanspeter Niederstrasser 
> <f...@snaggledworks.com> wrote:
> 
> [370/396/3] test_platform
> dyld: Library not loaded: /sw/lib/python3.5/config-3.5m/libpython3.5m.dylib
>  Referenced from: /sw/build.build/python35-3.5.0-1/Python-3.5.0/python.exe
>  Reason: image not found
> test test_platform failed -- Traceback (most recent call last):
>  File 
> "/sw/build.build/python35-3.5.0-1/Python-3.5.0/Lib/test/test_platform.py", 
> line 287, in test_popen
>    self.assertEqual(hello, "Hello")
> AssertionError: '' != 'Hello'
> + Hello
> ...
> [339/396/2] test_popen
> dyld: Library not loaded: /sw/lib/python3.5/config-3.5m/libpython3.5m.dylib
>  Referenced from: /sw/build.build/python35-3.5.0-1/Python-3.5.0/python.exe
>  Reason: image not found
> test test_popen failed -- Traceback (most recent call last):
>  File "/sw/build.build/python35-3.5.0-1/Python-3.5.0/Lib/test/test_popen.py", 
> line 33, in test_popen
>    ["foo", "bar"]
>  File "/sw/build.build/python35-3.5.0-1/Python-3.5.0/Lib/test/test_popen.py", 
> line 26, in _do_test_commandline
>    got = eval(data)[1:] # strip off argv[0]
>  File "<string>", line 0
> 
>    ^
> SyntaxError: unexpected EOF while parsing
> ...
> [183/396/1] test_subprocess
> dyld: Library not loaded: /sw/lib/python3.5/config-3.5m/libpython3.5m.dylib
>  Referenced from: /sw/build.build/python35-3.5.0-1/Python-3.5.0/python.exe
>  Reason: image not found
> dyld: Library not loaded: /sw/lib/python3.5/config-3.5m/libpython3.5m.dylib
>  Referenced from: /sw/build.build/python35-3.5.0-1/Python-3.5.0/python.exe
>  Reason: image not found
> dyld: Library not loaded: /sw/lib/python3.5/config-3.5m/libpython3.5m.dylib
>  Referenced from: /sw/build.build/python35-3.5.0-1/Python-3.5.0/python.exe
>  Reason: image not found
> ...
> FAILED (failures=1, skipped=1)
> test test_platform failed
> 3 tests failed again:
>    test_platform test_popen test_subprocess
> 
> If I install python35 w/out tests and then retest, they all pass.  So 10.11's 
> 'protection' seems to strike again.
> 
> Hanspeter

Yep, that’s exactly what’s going on. Python uses DYLD_LIBRARY_PATH to find the 
just-built library and that doesn’t work anymore. In theory, I could use 
install_name_tool to change the library path before tests and reset it after, 
but that would require changing a LOT of files since all the C-based modules 
point to libpython. Maybe just changing python.exe would suffice but I’ll need 
to play with it a while. It isn’t going to be fixed right away but I will work 
on it. Fortunately this only effects tests.

Daniel


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to