Symbol not found: _environ

Dear PyROOTers,

I installed
Mac OS X 10.6 x86-64 with gcc 4.2.1, version 5.28/00a
and Python 2.7.1 on Mac OS 10.6.6.

trying to run pyROOT give the following error:

python
>> import ROOT as R
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fat/root/lib/ROOT.py", line 85, in <module>
    import libPyROOT as _root
ImportError: dlopen(/Users/fat/root/lib/libPyROOT.so, 2): Symbol not found: _environ
  Referenced from: /afs/.cern.ch/sw/lcg/external/Python/2.6.2/x86_64-mac106-gcc42-opt/lib/libpython2.6.dylib
  Expected in: flat namespace
 in /afs/.cern.ch/sw/lcg/external/Python/2.6.2/x86_64-mac106-gcc42-opt/lib/libpython2.6.dylib

what could be the problem ? Maybe you have an idea and could help!
BTW: I don’t know why it seems to reference from CERN afs version 2.6.2 …

Cheers,
flo

Hi,

the builds from AFS are compiled against p2.6, so are unlikely to work with p2.7. If you want to use that version of python, you’d have to rebuild from source.

Cheers,
Wim