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:

>> import ROOT as R
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fat/root/lib/", line 85, in <module>
    import libPyROOT as _root
ImportError: dlopen(/Users/fat/root/lib/, 2): Symbol not found: _environ
  Referenced from: /afs/
  Expected in: flat namespace
 in /afs/

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 …



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.