Closed ericlingerfelt closed 5 months ago
Is there any reason we need to be using Python from spack-stack? This feels like an opportunity to divorce the r2d2 core implementation from skylab dependencies since they will be running on separate platforms. The r2d2 client can continue being coupled to skylab dependencies.
As an interim solution, the r2d2 library can continue to use spack-stack dependencies and all the version-conflicting dependencies will go into the server core, but once we migrate to full client/server setup it won't matter.
@ericlingerfelt, Thoughts?
Hi @eap, In my Skylab working environment, which includes R2D2 and EWOK, I always utilize the spack-stack python for the jedi-bundle build and my virtual environment. My installation of R2D2 and EWOK are inside the jedi-bundle directory. I only do this since that is what has always worked and that is what is recommended by our documentation. The purpose of spack-stack is to provide these python dependencies consistently across platforms for all users.
For now, users can simply unload the py-attrs/21.4.0
module.
Let's be clear that r2d2-client will be using spack-stack and there are many reasons why Python and packages are built by and provided by spack. It's in fact one of the main benefits of spack that it provides a single, consistent environment for compiled packages, python packages, and hybrid packages.
The r2d2 server implementation will almost certainly not be using spack - it's a simple setup that users do not need to know anything about, just the INFRA admins.
Sounds good, @eap and @climbfuji. Thanks!
Describe the bug
attrs==23.2.0
is listed as required for the r2d2 server components.attrs==21.4.0
(as thepy-attrs/21.4.0
module) is required bypy-eccodes/1.5.0
as part of/Users/eric2/spack-stack-1.7.0/envs/skylab-7.0.0/install/apple-clang/15.0.0/py-attrs-21.4.0-i47jwy7/lib/python3.10/site-packages
, for example. Ifpy-attrs/21.4.0
is loaded, the following error occurs and the local r2d2 server will not start.If
py-attrs/21.4.0
is unloaded and the pip-installedattrs==23.2.0
is used, the following successful result occurs and the r2d2 server will start.To Reproduce See above.
Expected behavior This conflict should not occur and the server will start using the correct library.
System: MacOS Sonoma with Python 3.10.13 from spack-stack.