Closed JosephKarpinski closed 1 month ago
Did a find command:
(base) josephkarpinski@Josephs-iMac-2 ~ % sudo find / -name "libblosc2.2.dylib" 2>/dev/null /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env385/lib/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env385/lib/python3.8/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/envTensorflow2/lib/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/envTensorflow2/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env311/lib/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env311/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env310/lib/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env310/lib/python3.10/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env3114/lib/libblosc2.2.dylib /System/Volumes/Data/Users/josephkarpinski/opt/anaconda3/envs/env3114/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/pkgs/c-blosc2-2.12.0-h7df6c2f_0/lib/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/lib/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/envs/envM1arm64/lib/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/envs/env385SkyPatrol/lib/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/envs/env385SkyPatrol/lib/python3.8/site-packages/tables/.dylibs/libblosc2.2.dylib /System/Volumes/Data/opt/anaconda3/envs/envM1arm64Backup/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env385/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env385/lib/python3.8/site-packages/tables/.dylibs/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/envTensorflow2/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/envTensorflow2/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env311/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env311/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env310/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env310/lib/python3.10/site-packages/tables/.dylibs/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env3114/lib/libblosc2.2.dylib /Users/josephkarpinski/opt/anaconda3/envs/env3114/lib/python3.11/site-packages/tables/.dylibs/libblosc2.2.dylib /opt/anaconda3/pkgs/c-blosc2-2.12.0-h7df6c2f_0/lib/libblosc2.2.dylib /opt/anaconda3/lib/libblosc2.2.dylib /opt/anaconda3/envs/envM1arm64/lib/libblosc2.2.dylib /opt/anaconda3/envs/env385SkyPatrol/lib/libblosc2.2.dylib /opt/anaconda3/envs/env385SkyPatrol/lib/python3.8/site-packages/tables/.dylibs/libblosc2.2.dylib /opt/anaconda3/envs/envM1arm64Backup/lib/libblosc2.2.dylib
Switched to Conda environment that has required library:
/System/Volumes/Data/opt/anaconda3/envs/envM1arm64/lib/libblosc2.2.dylib
Worked!
Running examples.ipynb:
from quicklook import TessQuickLook
eb = TessQuickLook(target_name="TIC 144539611")
Generating TQL for TIC 144539611... All available lightcurves: author mission t_exptime 0 SPOC TESS Sector 04 120.0 1 TESS-SPOC TESS Sector 04 1800.0 2 QLP TESS Sector 04 1800.0 3 QLP TESS Sector 31 600.0 4 TASOC TESS Sector 04 120.0 5 GSFC-ELEANOR-LITE TESS Sector 04 1800.0 6 TASOC TESS Sector 04 1800.0 7 TASOC TESS Sector 04 1800.0 8 TGLC TESS Sector 04 1800.0 Available sectors: [4, 31]
Downloaded SPOC (exp=120.0 s) lc in sector 4.
TypeError Traceback (most recent call last) Cell In[5], line 3 1 from quicklook import TessQuickLook ----> 3 eb = TessQuickLook(target_name="TIC 144539611")
File ~/src/quicklook/quicklook/tql.py:168, in TessQuickLook.init(self, target_name, sector, pipeline, flux_type, exptime, pg_method, flatten_method, gp_kernel, gp_kernel_size, window_length, edge_cutoff, sigma_clip_raw, sigma_clip_flat, custom_ephem, mask_ephem, Porb_limits, archival_survey, plot, savefig, savetls, overwrite, outdir) 156 else: 157 # use tfop ephem if available 158 ( 159 self.tfop_epoch, 160 self.tfop_period, (...) 166 else (None, None, None, None) 167 ) --> 168 self.ephem_source = "tfop" if self.tfop_epoch[0] else None 170 if window_length is None: 171 self.window_length = ( 172 self.tfop_dur[0] 3 173 if (self.tfop_dur is not None) 174 and (self.tfop_dur[0] 3 >= 0.1) 175 else 0.5 176 )
TypeError: 'NoneType' object is not subscriptable
Ran ./ql --name TOI-1150
Worked!
Running under Visual Studio:
Version: 1.93.1 Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40 Date: 2024-09-11T17:20:05.685Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0
Worked!
This fixed it:
conda install -c conda-forge c-blosc2=2.13 Channels:
environment location: /opt/anaconda3/envs/envM1v3123
added / updated specs:
The following packages will be downloaded:
package | build
---------------------------|-----------------
c-blosc2-2.13.2 | ha57e6be_1 233 KB conda-forge
------------------------------------------------------------
Total: 233 KB
The following packages will be DOWNGRADED:
c-blosc2 2.14.4-ha57e6be_1 --> 2.13.2-ha57e6be_1
Proceed ([y]/n)? y
Downloading and Extracting Packages:
Preparing transaction: done Verifying transaction: done Executing transaction: done
Resolved
!python -m pip show quicklook
Name: quicklook Version: 1.1 Summary: Quicklook lightcurve plot generator Home-page: https://github.com/jpdeleon/quicklook Author: Author-email: jpdeleon jpdeleon.bsap@gmail.com License: Location: /opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages Editable project location: /Users/josephkarpinski/src/quicklook Requires: Required-by:
%matplotlib inline
import the TessQuickLook class inside the quicklook package
from quicklook import TessQuickLook
initialize the class by simply supplying the target name
planet = TessQuickLook(target_name="WASP-21")
ImportError Traceback (most recent call last) Cell In[2], line 3 1 get_ipython().run_line_magic('matplotlib', 'inline') 2 #import the TessQuickLook class inside the quicklook package ----> 3 from quicklook import TessQuickLook 5 #initialize the class by simply supplying the target name 6 planet = TessQuickLook(target_name="WASP-21")
File ~/src/quicklook/quicklook/init.py:9 7 from .gls import 8 from .utils import ----> 9 from .tql import 11 # from .kql import
File ~/src/quicklook/quicklook/tql.py:22 20 from aesthetic.plot import set_style 21 from aesthetic.plot import savefig as save_figure ---> 22 import flammkuchen as fk 23 from quicklook.utils import ( 24 get_tfop_info, 25 get_params_from_tfop, 26 TESS_TIME_OFFSET, 27 TESS_pix_scale, 28 ) 29 from quicklook.gls import Gls
File /opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/flammkuchen/init.py:6 4 # Load the following modules by default 5 from flammkuchen.conf import config ----> 6 from flammkuchen.hdf5io import ( 7 Compression, 8 ForcePickle, 9 aslice, 10 load, 11 meta, 12 save, 13 ) 15 all = ["load", "save", "ForcePickle", "Compression", "aslice", "config", "meta"]
File /opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/flammkuchen/hdf5io.py:4 1 import warnings 3 import numpy as np ----> 4 import tables 5 from scipy import sparse 7 from flammkuchen import conf
File /opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/tables/init.py:44 40 raise RuntimeError("Blosc2 library not found. " 41 f"I looked for \"{', '.join(blosc2_search_paths)}\"") 43 # Necessary imports to get versions stored on the cython extension ---> 44 from .utilsextension import get_hdf5_version as _get_hdf5_version 46 from ._version import version 48 hdf5_version = _get_hdf5_version()
ImportError: dlopen(/opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/tables/utilsextension.cpython-312-darwin.so, 0x0002): Library not loaded: @rpath/libblosc2.2.dylib Referenced from: /opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/tables/utilsextension.cpython-312-darwin.so
Reason: tried: '/opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/tables/../../../libblosc2.2.dylib' (no such file), '/opt/anaconda3/envs/envM1v3123/lib/python3.12/site-packages/tables/../../../libblosc2.2.dylib' (no such file), '/opt/anaconda3/envs/envM1v3123/bin/../lib/libblosc2.2.dylib' (no such file), '/opt/anaconda3/envs/envM1v3123/bin/../lib/libblosc2.2.dylib' (no such file), '/usr/local/lib/libblosc2.2.dylib' (no such file), '/usr/lib/libblosc2.2.dylib' (no such file, not in dyld cache