Install script failure under OpenSuSE 12.2
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@ubc.ca
Hi Erik, Thanks for writing. I spun up an EC2 instance of OpenSUSE and was not able to replicate the problem, although I think I found a fix online anyway. Essentially, the argument: --libdir=${DEST_DIR}/lib/ needs to be passed to the Python configure script. I've added this to the install script if it detects that it's running on SUSE. This should also fix the error Nick Earl had (identical error!) that he reported to the list last fall. Sorry for not addressing it more directly sooner! One last question -- while updating the install script, I identified two sets of packages that need to be installed. Am I missing anything? sudo zypper install -t pattern devel_C_C++ sudo zypper install gcc-c++ libopenssl-devel libuuid-devel zip The easiest way to fix this is probably to wipe the installation and start anew -- however, it sounds like you've found a way around it already. :) I believe this solution is functionally equivalent to installing and copying. Let us know if you run into any other problems, Matt On Wed, Feb 13, 2013 at 10:30 PM, Erik Rosolowsky <erik.rosolowsky@ubc.ca> wrote:
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@ubc.ca
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Erik Rosolowsky
-
Matthew Turk