Re: ZODB won't install into Virtual Environments on OSX
Joseph Lee Nunn III <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Ok, I think I’m making some progress, but I need to understand what paths your compiler is using to compare.
If you would be so kind as to edit the following file and reinstall ZODB (perhaps into a new virtual environment built using pyvenv), and copy me the output so I can see it
In file:
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/unixccompiler.py
Change line 115 from:
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
To
self.spawn(compiler_so + cc_args + [‘-v’, src, '-o', obj] +
This will cause the compiler to output verbose information showing the lib and include paths, here is what I get:
OUTPUT
------------
(RA4) LSP-17-MacBook-Pro:python3.5 josephnunn$ pip install ZODB
Collecting ZODB
Using cached ZODB-4.2.0.tar.gz
Complete output from command python setup.py egg_info:
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'persistent/__pycache__'
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple i386-apple-macosx10.6.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name cPersistence.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu yonah -target-linker-version 264.3.102 -v -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -coverage-file /private/var/folders/x7/cmv9f83n7j5c6f5f3qng2tn40000gn/T/easy_install-01mi_9p2/persistent-4.2.0/build/temp.macosx-10.6-intel-3.5/persistent/cPersistence.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0 -isysroot /Developer/SDKs/MacOSX10.6.sdk -D NDEBUG -I /Users/josephnunn/jnunn/Projects/Python-VEnvs/RA4/include -I /Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m -O3 -Wsign-compare -Wunreachable-code -Wall -Wstrict-prototypes -fdebug-compilation-dir /private/var/folders/x7/cmv9f83n7j5c6f5f3qng2tn40000gn/T/easy_install-01mi_9p2/persistent-4.2.0 -ferror-limit 19 -fmessage-length 0 -fwrapv -stack-protector 1 -fblocks -fobjc-runtime=macosx-fragile-10.6.0 -fobjc-subscripting-legacy-runtime -fencode-extended-block-signature -fmax-type-align=16 -fno-common -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o /var/folders/x7/cmv9f83n7j5c6f5f3qng2tn40000gn/T/cPersistence-a2859b.o -x c persistent/cPersistence.c
clang -cc1 version 7.3.0 (clang-703.0.31) default target x86_64-apple-darwin15.4.0
ignoring nonexistent directory "/Developer/SDKs/MacOSX10.6.sdk/usr/local/include"
ignoring nonexistent directory "/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/Users/josephnunn/jnunn/Projects/Python-VEnvs/RA4/include
/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Developer/SDKs/MacOSX10.6.sdk/usr/include
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks (framework directory)
End of search list.
In file included from persistent/cPersistence.c:19:
In file included from persistent/cPersistence.h:18:
In file included from persistent/_compat.h:18:
/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m/Python.h:25:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/unixccompiler.py", line 122, in _compile
extra_postargs)
———————
END OUTPUT
I believe my problem may be related to the MacOSX10.6.sdk, which is not located inside the Xcode project where the newer sdks go.
Joseph Nunn
[email protected]
[email protected]
> On May 05 , 2016, at 1:25 PM, Jason Madden <[email protected]> wrote:
>
> Only the ones I unset in my example.
>
>> On May 5, 2016, at 15:07, Joseph Lee Nunn III <[email protected]> wrote:
>>
>> Any of these environment variables set for either of you?
--
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.