Closed wmwv closed 2 years ago
Even simpler reproduce script is:
import pickle
filename = "/global/cfs/cdirs/lsst/production/gen3/DC2/Run2.2i/repo/skymaps/skyMap/skyMap_DC2_skymaps.pickle"
with open(filename, "rb") as file:
obj = pickle.load(file)
I don't know much about the NERSC setup, but the skyMap itself is intended to be backwards compatible. I wonder if the skymap
package has not been updated recently. The traceback points to changes made in November 2021 here.
It appears I used w_2021_48
to set up the Run2.2i repo in /global/cfs/cdirs/lsst/production/gen3/DC2/Run2.2i/repo
.
If it's helpful @wmwv I can make w_2021_48 available as a jupyter kernel - basically importing that specific docker image into shifter and pass you the kernel.json file you'd need to set it up.
That'd be great, thanks, @heather999 .
I'd recommend using v23.0.1
instead of a weekly. I think that's originally based off of w_2021_50
, which I've been using for the single frame processing.
Oh, I see. I was also confused because desc-stack-weekly-latest
is recent (w_2022_10
). But desc-stack-weekly
is not recent.
Actually, a quick sanity check has the same issue with that version:
[cori04] source /cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/v23.0.1/loadLSST-ext.bash
(lsst-scipipe-0.8.0-ext) [cori04] setup lsst_distrib
(lsst-scipipe-0.8.0-ext) [cori04] ipython
Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:04:10)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pickle
...: filename = "/global/cfs/cdirs/lsst/production/gen3/DC2/Run2.2i/repo/skymaps/skyMap/skyMap_DC2_sk
...: ymaps.pickle"
...: with open(filename, "rb") as file:
...: obj = pickle.load(file)
...:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Input In [1], in <module>
2 filename = "/global/cfs/cdirs/lsst/production/gen3/DC2/Run2.2i/repo/skymaps/skyMap/skyMap_DC2_skymaps.pickle"
3 with open(filename, "rb") as file:
----> 4 obj = pickle.load(file)
File /cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/v23.0.1/conda/envs/lsst-scipipe-0.8.0-ext/share/eups/Linux64/pex_config/g87000a63fb+536b1ee016/python/lsst/pex/config/config.py:1541, in unreduceConfig(cls, stream)
1521 """Create a `~lsst.pex.config.Config` from a stream.
1522
1523 Parameters
(...)
1538 lsst.pex.config.Config.loadFromStream
1539 """
1540 config = cls()
-> 1541 config.loadFromStream(stream)
1542 return config
File /cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/v23.0.1/conda/envs/lsst-scipipe-0.8.0-ext/share/eups/Linux64/pex_config/g87000a63fb+536b1ee016/python/lsst/pex/config/config.py:1075, in Config.loadFromStream(self, stream, root, filename)
1073 try:
1074 local = {root: self}
-> 1075 exec(stream, globals, local)
1076 except NameError as e:
1077 if root == "config" and "root" in e.args[0]:
File <string>:3, in <module>
ModuleNotFoundError: No module named 'lsst.skymap.tractBuilder'
Let me poke around. I'm surprised this didn't work.
w_2022_10
is working for me.
Right desc-stack-weekly is not recent, desc-stack-weekly-latest hasn't moved past w_2022_10 - on the list to fix this week :)
Description A clear and concise description of what the issue is.
Can't read skyMap for Gen 3 Run2.2i, Run3.1i with recent
desc-stack-weekly
.@jchiang87 @heather999 What version of the stack was used to produce the skyMap for the NERSC Gen3 Run2.2i and Run3.1i datasets? I think it's incompatible with recent stack versions. Specifically I'm using the Jupyter kernel desc-stack-weekly as of today (2012-04-12).
/global/cfs/cdirs/lsst/production/gen3/DC2/Run2.2i/repo/skymaps/skyMap/
Choose all applicable topics by placing an 'X' between the [ ]:
To Reproduce Steps to reproduce the behavior:
desc-stack-weekly
for kernelScreenshots If applicable, add screenshots to help explain your problem.