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]>
Hello Jason,

I see you have a different version of Xcode installed, so I upgraded my version of Xcode but installing ZODB still fails.

I see you unset various C related environment variables, but could you check your environment for any Python related variables or things like DYLD_LIBRARY_PATH etc?

My system include files clearly are the same as both you and Jim, yet ZODB fails to locate stdio.h

My current guess is somehow the ZODB installer does not pick up the system include files or resets them and looks for some sort of environment variable, perhaps something Homebrew relies upon.

Thanks!

Joseph Nunn
[email protected]
[email protected]


> On May 05 , 2016, at 12:08 PM, Jason Madden <[email protected]> wrote:
> 
> 
>> On May 5, 2016, at 13:53, Jim Fulton <[email protected]> wrote:
>> 
>> On Thu, May 5, 2016 at 2:45 PM, Joseph Lee Nunn III
>> <[email protected]> wrote:
>>> Ok, very strange.
>>> 
>>> I just reinstalled Python 3.5 using that very package, created a new virtualenv using the newly installed pyvenv, and ZODB failed to install exactly as I describe in my original post, numpy and scipy install just fine.
>>> 
>>> I’m using El Capitan 10.11.4, Xcode 7.2, Command Line Tools 7.2 (7C68), if that is different than what you are using please let me know.
>> 
>> I'm running Yosemite (10.10.5).  (Thanks for the warning ;) )
>> 
>> I'm running 7.2.0.0.1.1447826929 of the command-line tools.
>> 
>> ZODB doesn't do anything exotic wrt building.  I haven't heard of
>> anyone else having problems installing ZODB on Mac.
> 
> I'm running on El Capitan 10.11.4 with Xcode 7.3.1. I can't reproduce a build problem using the stock python.org 3.5 installer (I used pip):
> 
> $ /usr/local/bin/python3.5 -m venv /tmp/py35
> $ cd /tmp/py35/ 
> $ . bin/activate
> $ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
> $ bin/pip install -U pip setuptools
> ...
> Successfully installed pip-8.1.1 setuptools-21.0.0
> $ bin/pip install --no-binary :all: zodb
> Collecting zodb
>  Downloading ZODB-4.2.0.tar.gz (408kB)
> ...
> Successfully installed BTrees-4.2.0 ZConfig-3.1.0 persistent-4.2.0 six-1.10.0 transaction-1.5.0 zc.lockfile-1.1.0 zdaemon-4.1.0 zodb-4.2.0 zodbpickle-0.6.0 zope.interface-4.1.3
> 
> 
> $ echo "#include <bogus.h>" | gcc -v -x c -
> 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 x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 264.3.102 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0 -fdebug-compilation-dir /tmp/py35 -ferror-limit 19 -fmessage-length 421 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/y5/x7pvzk651c3dqkllbxd1jd280000gn/T/--03337f.o -x c -
> clang -cc1 version 7.3.0 (clang-703.0.31) default target x86_64-apple-darwin15.4.0
> ignoring nonexistent directory "/usr/local/include"
> #include "..." search starts here:
> #include <...> search starts here:
> /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
> /usr/include
> /System/Library/Frameworks (framework directory)
> /Library/Frameworks (framework directory)
> End of search list.
> <stdin>:1:10: fatal error: 'bogus.h' file not found
> #include <bogus.h>
>         ^
> 1 error generated.

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.