[yt-users] Install script failure under OpenSuSE 12.2

Erik Rosolowsky erik.rosolowsky at ubc.ca
Wed Feb 13 19:30:43 PST 2013


Dear List -- 

I had some build issues with yt on OpenSuSE 12.2 which likely affect users of >12.1  Python apparently builds critical components into 

$YT_DEST/lib64/python2.7/config/
$YT_DEST/lib64/python2.7/lib-dynload/

and then looks for them in:
$YT_DEST/lib/python2.7/config/
$YT_DEST/lib/python2.7/lib-dynload/

resulting in this failure when the script tried to build distribute.

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/site.py", line 563, in <module>
    main()
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/site.py", line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/site.py", line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/sysconfig.py", line 521, in get_config_var
    return get_config_vars().get(name)
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/sysconfig.py", line 420, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/UBC-O/erosolo/yt-x86_64/lib/python2.7/sysconfig.py", line 288, in _init_posix
    raise IOError(msg)
IOError: invalid Python installation: unable to open /UBC-O/erosolo/yt-x86_64/lib/python2.7/config/Makefile (No such file or directory)

I patched the problem by symbolically linking the lib64/python2.7 files into the lib/python2.7 directories and re-executing the script.   Is there a better approach to this fail?

thank you,
e.

--
Erik Rosolowsky
Asst. Prof. of Physics and Astronomy
University of British Columbia Okanagan
3333 University Way, Kelowna BC V1V 1V7 Canada
(250) 807-9623 - erik.rosolowsky at ubc.ca







More information about the yt-users mailing list