rodluger / starry

Tools for mapping stars and planets.
https://starry.readthedocs.io
MIT License
145 stars 33 forks source link

Theano issue #309

Closed mauralally9 closed 1 year ago

mauralally9 commented 1 year ago

Describe the bug Apologies for the title; the issue is not what I originally thought. After making some changes to my environment (which I unfortunately did not keep a careful log of), starry functions no longer work; for example, when I try star.map.show() I get an exception Exception: ('The following error happened while compiling the node', DeepCopyOp(TensorConstant{1.0}), '\n', "Compilation failed (return status=1): ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd' for architecture x86_64. clang-16: error: linker command failed with exit code 1 (use -v to see invocation). ", 'FunctionGraph(DeepCopyOp(TensorConstant{1.0}))').

To Reproduce I am working in a jupyter notebook where I import numpy, matplotlib, starry, and theano. After importing theano, I get a "WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions." message. I then run the line theano.config.gcc_cxxflags += " -fexceptions" as described in issue #302 .

In the next cell, I try to set up a star with the lines

star = starry.Primary(starry.Map(ydeg=0, udeg=2, amp=1.0), m=1, r=1, prot=10)
star.map[1] = 0.40
star.map[2] = 0.25
star.map.show()

and the full output is

You can find the C code in this temporary file: /var/folders/zl/_l3kt8tj0md44n4rzsb1kjr40000gp/T/theano_compilation_error__g4cf2bk
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
Cell In[3], line 5
      3 star.map[1] = 0.40
      4 star.map[2] = 0.25
----> 5 star.map.show()

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/starry/maps.py:459, in MapBase.show(self, **kwargs)
    457 overlay = kwargs.get("overlay", None)  # undocumented, used internally
    458 if image is None:
--> 459     image = self._render_greedy(**kwargs)
    460 if len(image.shape) == 3:
    461     nframes = image.shape[0]

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/starry/maps.py:1784, in LimbDarkenedBase._render_greedy(self, **kwargs)
   1782 def _render_greedy(self, **kwargs):
   1783     get_val = evaluator(**kwargs)
-> 1784     amp = get_val(self.amp).reshape(-1, 1, 1)
   1785     return amp.reshape(-1, 1, 1) * self.ops.render_ld(
   1786         kwargs.get("res", 300), get_val(self._u)
   1787     )

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/starry/compat.py:114, in evaluator.<locals>.get_val(x)
    108 if is_tensor(x):
    110     try:
    111 
    112         # Try to directly evaluate it
--> 114         return x.eval()
    116     except MissingInputError as e:
    117 
    118         # That didn't work. Perhaps we are in a pymc3 model
    119         # context, but the user didn't provide a point?
    121         import pymc3 as pm

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/graph/basic.py:554, in Variable.eval(self, inputs_to_values)
    552 inputs = tuple(sorted(inputs_to_values.keys(), key=id))
    553 if inputs not in self._fn_cache:
--> 554     self._fn_cache[inputs] = theano.function(inputs, self)
    555 args = [inputs_to_values[param] for param in inputs]
    557 rval = self._fn_cache[inputs](*args)

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/compile/function/__init__.py:337, in function(inputs, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input)
    331     fn = orig_function(
    332         inputs, outputs, mode=mode, accept_inplace=accept_inplace, name=name
    333     )
    334 else:
    335     # note: pfunc will also call orig_function -- orig_function is
    336     #      a choke point that all compilation must pass through
--> 337     fn = pfunc(
    338         params=inputs,
    339         outputs=outputs,
    340         mode=mode,
    341         updates=updates,
    342         givens=givens,
    343         no_default_updates=no_default_updates,
    344         accept_inplace=accept_inplace,
    345         name=name,
    346         rebuild_strict=rebuild_strict,
    347         allow_input_downcast=allow_input_downcast,
    348         on_unused_input=on_unused_input,
    349         profile=profile,
    350         output_keys=output_keys,
    351     )
    352 return fn

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/compile/function/pfunc.py:524, in pfunc(params, outputs, mode, updates, givens, no_default_updates, accept_inplace, name, rebuild_strict, allow_input_downcast, profile, on_unused_input, output_keys)
    519         si = In(
    520             variable=sv, value=sv.container, mutable=False, borrow=True, shared=True
    521         )
    522     inputs.append(si)
--> 524 return orig_function(
    525     inputs,
    526     cloned_outputs,
    527     mode,
    528     accept_inplace=accept_inplace,
    529     name=name,
    530     profile=profile,
    531     on_unused_input=on_unused_input,
    532     output_keys=output_keys,
    533 )

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/compile/function/types.py:1981, in orig_function(inputs, outputs, mode, accept_inplace, name, profile, on_unused_input, output_keys)
   1970     m = Maker(
   1971         inputs,
   1972         outputs,
   (...)
   1978         name=name,
   1979     )
   1980     with config.change_flags(compute_test_value="off"):
-> 1981         fn = m.create(defaults)
   1982 finally:
   1983     t2 = time.time()

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/compile/function/types.py:1836, in FunctionMaker.create(self, input_storage, trustme, storage_map)
   1833 start_import_time = theano.link.c.cmodule.import_time
   1835 with config.change_flags(traceback__limit=config.traceback__compile_limit):
-> 1836     _fn, _i, _o = self.linker.make_thunk(
   1837         input_storage=input_storage_lists, storage_map=storage_map
   1838     )
   1840 end_linker = time.time()
   1842 linker_time = end_linker - start_linker

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/basic.py:266, in LocalLinker.make_thunk(self, input_storage, output_storage, storage_map)
    265 def make_thunk(self, input_storage=None, output_storage=None, storage_map=None):
--> 266     return self.make_all(
    267         input_storage=input_storage,
    268         output_storage=output_storage,
    269         storage_map=storage_map,
    270     )[:3]

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/vm.py:1131, in VMLinker.make_all(self, profiler, input_storage, output_storage, storage_map)
   1126 thunk_start = time.time()
   1127 # no-recycling is done at each VM.__call__ So there is
   1128 # no need to cause duplicate c code by passing
   1129 # no_recycling here.
   1130 thunks.append(
-> 1131     node.op.make_thunk(node, storage_map, compute_map, [], impl=impl)
   1132 )
   1133 linker_make_thunk_time[node] = time.time() - thunk_start
   1134 if not hasattr(thunks[-1], "lazy"):
   1135     # We don't want all ops maker to think about lazy Ops.
   1136     # So if they didn't specify that its lazy or not, it isn't.
   1137     # If this member isn't present, it will crash later.

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/graph/op.py:634, in COp.make_thunk(self, node, storage_map, compute_map, no_recycling, impl)
    630 self.prepare_node(
    631     node, storage_map=storage_map, compute_map=compute_map, impl="c"
    632 )
    633 try:
--> 634     return self.make_c_thunk(node, storage_map, compute_map, no_recycling)
    635 except (NotImplementedError, MethodNotDefined):
    636     # We requested the c code, so don't catch the error.
    637     if impl == "c":

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/graph/op.py:600, in COp.make_c_thunk(self, node, storage_map, compute_map, no_recycling)
    598         print(f"Disabling C code for {self} due to unsupported float16")
    599         raise NotImplementedError("float16")
--> 600 outputs = cl.make_thunk(
    601     input_storage=node_input_storage, output_storage=node_output_storage
    602 )
    603 thunk, node_input_filters, node_output_filters = outputs
    605 def rval():

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/basic.py:1203, in CLinker.make_thunk(self, input_storage, output_storage, storage_map)
   1175 """
   1176 Compiles this linker's fgraph and returns a function to perform the
   1177 computations, as well as lists of storage cells for both the inputs
   (...)
   1200   first_output = ostor[0].data
   1201 """
   1202 init_tasks, tasks = self.get_init_tasks()
-> 1203 cthunk, module, in_storage, out_storage, error_storage = self.__compile__(
   1204     input_storage, output_storage, storage_map
   1205 )
   1207 res = _CThunk(cthunk, init_tasks, tasks, error_storage, module)
   1208 res.nodes = self.node_order

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/basic.py:1138, in CLinker.__compile__(self, input_storage, output_storage, storage_map)
   1136 input_storage = tuple(input_storage)
   1137 output_storage = tuple(output_storage)
-> 1138 thunk, module = self.cthunk_factory(
   1139     error_storage,
   1140     input_storage,
   1141     output_storage,
   1142     storage_map,
   1143 )
   1144 return (
   1145     thunk,
   1146     module,
   (...)
   1155     error_storage,
   1156 )

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/basic.py:1634, in CLinker.cthunk_factory(self, error_storage, in_storage, out_storage, storage_map)
   1632     for node in self.node_order:
   1633         node.op.prepare_node(node, storage_map, None, "c")
-> 1634     module = get_module_cache().module_from_key(key=key, lnk=self)
   1636 vars = self.inputs + self.outputs + self.orphans
   1637 # List of indices that should be ignored when passing the arguments
   1638 # (basically, everything that the previous call to uniq eliminated)

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/cmodule.py:1191, in ModuleCache.module_from_key(self, key, lnk)
   1189 try:
   1190     location = dlimport_workdir(self.dirname)
-> 1191     module = lnk.compile_cmodule(location)
   1192     name = module.__file__
   1193     assert name.startswith(location)

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/basic.py:1543, in CLinker.compile_cmodule(self, location)
   1541 try:
   1542     _logger.debug(f"LOCATION {location}")
-> 1543     module = c_compiler.compile_str(
   1544         module_name=mod.code_hash,
   1545         src_code=src_code,
   1546         location=location,
   1547         include_dirs=self.header_dirs(),
   1548         lib_dirs=self.lib_dirs(),
   1549         libs=libs,
   1550         preargs=preargs,
   1551     )
   1552 except Exception as e:
   1553     e.args += (str(self.fgraph),)

File ~/opt/anaconda3/envs/starry_test/lib/python3.9/site-packages/theano/link/c/cmodule.py:2546, in GCC_compiler.compile_str(module_name, src_code, location, include_dirs, lib_dirs, libs, preargs, py_module, hide_symbols)
   2542     # We replace '\n' by '. ' in the error message because when Python
   2543     # prints the exception, having '\n' in the text makes it more
   2544     # difficult to read.
   2545     compile_stderr = compile_stderr.replace("\n", ". ")
-> 2546     raise Exception(
   2547         f"Compilation failed (return status={status}): {compile_stderr}"
   2548     )
   2549 elif config.cmodule__compilation_warning and compile_stderr:
   2550     # Print errors just below the command line.
   2551     print(compile_stderr)

Exception: ('The following error happened while compiling the node', DeepCopyOp(TensorConstant{1.0}), '\n', "Compilation failed (return status=1): ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd' for architecture x86_64. clang-16: error: linker command failed with exit code 1 (use -v to see invocation). ", 'FunctionGraph(DeepCopyOp(TensorConstant{1.0}))')

Expected behavior

Your setup (please complete the following information):

Additional context

(starry_test) AS-AST-nkl35lab-RENAME:~ mauralally$ conda info

     active environment : starry_test
    active env location : /Users/mauralally/opt/anaconda3/envs/starry_test
            shell level : 2
       user config file : /Users/mauralally/.condarc
 populated config files : /Users/mauralally/.condarc
          conda version : 4.13.0
    conda-build version : 3.21.9
         python version : 3.9.12.final.0
       virtual packages : __osx=10.16=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /Users/mauralally/opt/anaconda3  (writable)
      conda av data dir : /Users/mauralally/opt/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/mauralally/opt/anaconda3/pkgs
                          /Users/mauralally/.conda/pkgs
       envs directories : /Users/mauralally/opt/anaconda3/envs
                          /Users/mauralally/.conda/envs
               platform : osx-64
             user-agent : conda/4.13.0 requests/2.29.0 CPython/3.9.12 Darwin/21.6.0 OSX/10.16
                UID:GID : 502:20
             netrc file : None
           offline mode : False

(starry_test) AS-AST-nkl35lab-RENAME:~ mauralally$ conda list
# packages in environment at /Users/mauralally/opt/anaconda3/envs/starry_test:
#
# Name                    Version                   Build  Channel
aesara-theano-fallback    0.1.0                    pypi_0    pypi
anyio                     3.5.0            py39hecd8cb5_0  
appdirs                   1.4.4              pyhd3eb1b0_0  
appnope                   0.1.2           py39hecd8cb5_1001  
argon2-cffi               21.3.0             pyhd3eb1b0_0  
argon2-cffi-bindings      21.2.0           py39hca72f7f_0  
arviz                     0.11.2             pyhd3eb1b0_0  
astropy                   5.0.4            py39h67323c0_0  
asttokens                 2.0.5              pyhd3eb1b0_0  
attrs                     22.1.0           py39hecd8cb5_0  
babel                     2.11.0           py39hecd8cb5_0  
backcall                  0.2.0              pyhd3eb1b0_0  
beautifulsoup4            4.12.2           py39hecd8cb5_0  
blas                      1.0                         mkl  
bleach                    4.1.0              pyhd3eb1b0_0  
bokeh                     3.1.1                    pypi_0    pypi
bottleneck                1.3.5            py39h67323c0_0  
brotli                    1.0.9                hca72f7f_7  
brotli-bin                1.0.9                hca72f7f_7  
brotlipy                  0.7.0           py39h9ed2024_1003  
bzip2                     1.0.8                h1de35cc_0  
c-ares                    1.19.0               h6c40b1e_0  
c-compiler                1.5.2                hbf74d83_0    conda-forge
ca-certificates           2023.01.10           hecd8cb5_0  
cachetools                4.2.2              pyhd3eb1b0_0  
cctools                   949.0.1             h9abeeb2_25  
cctools_osx-64            949.0.1             hc7db93f_25  
certifi                   2023.5.7         py39hecd8cb5_0  
cffi                      1.15.1           py39hc55c11b_0  
cftime                    1.6.2            py39hacda100_0  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
clang                     14.0.6               hecd8cb5_1  
clang-14                  14.0.6          default_hd95374b_1  
clang_osx-64              14.0.6               hb1e4b1b_0  
clangxx                   14.0.6          default_hd95374b_1  
clangxx_osx-64            14.0.6               hd8b9576_0  
comm                      0.1.2            py39hecd8cb5_0  
compiler-rt               14.0.6               hda8b6b8_0  
compiler-rt_osx-64        14.0.6               h8d5cb93_0  
contourpy                 1.0.5            py39haf03e11_0  
corner                    2.2.1              pyhd8ed1ab_0    conda-forge
cryptography              39.0.1           py39hf6deb26_0  
curl                      7.88.1               h6c40b1e_0  
cxx-compiler              1.5.2                hb8565cd_0    conda-forge
cycler                    0.11.0             pyhd3eb1b0_0  
debugpy                   1.5.1            py39he9d5cce_0  
decorator                 5.1.1              pyhd3eb1b0_0  
defusedxml                0.7.1              pyhd3eb1b0_0  
deprecat                  2.1.1              pyhd8ed1ab_0    conda-forge
dill                      0.3.6            py39hecd8cb5_0  
entrypoints               0.4              py39hecd8cb5_0  
executing                 0.8.3              pyhd3eb1b0_0  
exoplanet                 0.5.3                    pypi_0    pypi
exoplanet-core            0.1.2                    pypi_0    pypi
fastprogress              1.0.0              pyhb85f177_0  
ffmpeg                    4.2.2                h97e5cf8_0  
ffmpeg-python             0.2.0                      py_0    conda-forge
filelock                  3.9.0            py39hecd8cb5_0  
fonttools                 4.25.0             pyhd3eb1b0_0  
freetype                  2.12.1               hd8bbffd_0  
future                    0.18.2           py39h6e9494a_5    conda-forge
gettext                   0.21.0               he85b6c0_1  
giflib                    5.2.1                h6c40b1e_3  
glib                      2.69.1               h8346a28_1  
gmp                       6.2.1                he9d5cce_3  
gnutls                    3.6.15               hed9c0bf_0  
gst-plugins-base          1.14.1               hcec6c5f_1  
gstreamer                 1.14.1               h6c40b1e_1  
hdf4                      4.2.13               h39711bb_2  
hdf5                      1.10.6               h10fe05b_1  
icu                       58.2                 h0a44026_3  
idna                      3.4              py39hecd8cb5_0  
importlib-metadata        6.0.0            py39hecd8cb5_0  
importlib_metadata        6.0.0                hd3eb1b0_0  
importlib_resources       5.2.0              pyhd3eb1b0_1  
intel-openmp              2023.1.0         ha357a0b_43547  
ipykernel                 6.19.2           py39h01d92e1_0  
ipython                   8.12.0           py39hecd8cb5_0  
ipython_genutils          0.2.0              pyhd3eb1b0_1  
ipywidgets                8.0.4            py39hecd8cb5_0  
jedi                      0.18.1           py39hecd8cb5_1  
jinja2                    3.1.2            py39hecd8cb5_0  
jpeg                      9e                   h6c40b1e_1  
json5                     0.9.6              pyhd3eb1b0_0  
jsonschema                4.17.3           py39hecd8cb5_0  
jupyter                   1.0.0            py39hecd8cb5_8  
jupyter_client            8.1.0            py39hecd8cb5_0  
jupyter_console           6.6.3            py39hecd8cb5_0  
jupyter_core              5.3.0            py39hecd8cb5_0  
jupyter_server            1.23.4           py39hecd8cb5_0  
jupyterlab                3.5.3            py39hecd8cb5_0  
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.22.0           py39hecd8cb5_0  
jupyterlab_widgets        3.0.5            py39hecd8cb5_0  
kiwisolver                1.4.4            py39hcec6c5f_0  
krb5                      1.19.4               hdba6334_0  
lame                      3.100                h1de35cc_0  
lcms2                     2.12                 hf1fd2bf_0  
ld64                      530                 h20443b4_25  
ld64_osx-64               530                 h70f3046_25  
ldid                      2.1.2                h2d21305_2  
lerc                      3.0                  he9d5cce_0  
libblas                   3.9.0           1_h508aa58_netlib    conda-forge
libbrotlicommon           1.0.9                hca72f7f_7  
libbrotlidec              1.0.9                hca72f7f_7  
libbrotlienc              1.0.9                hca72f7f_7  
libcblas                  3.9.0           5_h0661a58_netlib    conda-forge
libclang                  14.0.6          default_hd95374b_1  
libclang-cpp14            14.0.6          default_hd95374b_1  
libclang13                14.0.6          default_habbcc1a_1  
libcurl                   7.88.1               ha585b31_0  
libcxx                    14.0.6               h9765a3e_0  
libdeflate                1.17                 hb664fd8_0  
libedit                   3.1.20221030         h6c40b1e_0  
libev                     4.33                 h9ed2024_1  
libffi                    3.3                  hb1e8313_2  
libgfortran               5.0.0           11_3_0_hecd8cb5_28  
libgfortran5              11.3.0              h9dfd629_28  
libiconv                  1.16                 hca72f7f_2  
libidn2                   2.3.4                h6c40b1e_0  
liblapack                 3.9.0           5_h0661a58_netlib    conda-forge
libllvm14                 14.0.6               he552d86_0  
libnetcdf                 4.8.1                ha5d86b0_2  
libnghttp2                1.46.0               ha29bfda_0  
libopus                   1.3.1                h1de35cc_0  
libpng                    1.6.39               h6c40b1e_0  
libpq                     12.9                 h1c9f633_3  
libsodium                 1.0.18               h1de35cc_0  
libssh2                   1.10.0               h0a4fc7d_0  
libtasn1                  4.19.0               h6c40b1e_0  
libtiff                   4.5.0                hcec6c5f_2  
libunistring              0.9.10               h9ed2024_0  
libvpx                    1.7.0                h378b8a2_0  
libwebp                   1.2.4                hf6ce154_1  
libwebp-base              1.2.4                h6c40b1e_1  
libxml2                   2.10.3               h930c0e2_0  
libxslt                   1.1.37               h6d1eb0e_0  
libzip                    1.8.0                h272c8d6_0  
llvm-openmp               14.0.6               h0dcd299_0  
llvm-tools                14.0.6               h8bd2559_0  
lxml                      4.9.2            py39h6c40b1e_0  
lz4-c                     1.9.4                hcec6c5f_0  
markupsafe                2.1.1            py39hca72f7f_0  
matplotlib                3.5.1            py39hecd8cb5_1  
matplotlib-base           3.5.1            py39hfb0c5b7_1  
matplotlib-inline         0.1.6            py39hecd8cb5_0  
mistune                   0.8.4           py39h9ed2024_1000  
mkl                       2023.1.0         h59209a4_43558  
mkl-service               2.4.0            py39h6c40b1e_1  
mkl_fft                   1.3.6            py39h07fba90_1  
mkl_random                1.2.2            py39h07fba90_1  
munkres                   1.1.4                      py_0  
nbclassic                 0.5.5            py39hecd8cb5_0  
nbclient                  0.5.13           py39hecd8cb5_0  
nbconvert                 6.5.4            py39hecd8cb5_0  
nbformat                  5.7.0            py39hecd8cb5_0  
ncurses                   6.4                  hcec6c5f_0  
nest-asyncio              1.5.6            py39hecd8cb5_0  
netcdf4                   1.6.2            py39hd243f81_0  
nettle                    3.7.3                h230ac6f_1  
notebook                  6.5.4            py39hecd8cb5_0  
notebook-shim             0.2.2            py39hecd8cb5_0  
nspr                      4.35                 hcec6c5f_0  
nss                       3.89.1               hcec6c5f_0  
numexpr                   2.8.4            py39h47b59a4_1  
numpy                     1.21.5           py39h47b59a4_4  
numpy-base                1.21.5           py39hcfaf2c3_4  
openh264                  2.1.1                h8346a28_0  
openssl                   1.1.1t               hca72f7f_0  
packaging                 23.0             py39hecd8cb5_0  
pandas                    1.4.2            py39he9d5cce_0  
pandocfilters             1.5.0              pyhd3eb1b0_0  
parso                     0.8.3              pyhd3eb1b0_0  
patsy                     0.5.3            py39hecd8cb5_0  
pcre                      8.45                 h23ab428_0  
pexpect                   4.8.0              pyhd3eb1b0_3  
pickleshare               0.7.5           pyhd3eb1b0_1003  
pillow                    9.4.0            py39hcec6c5f_0  
pip                       23.0.1           py39hecd8cb5_0  
platformdirs              2.5.2            py39hecd8cb5_0  
ply                       3.11             py39hecd8cb5_0  
pooch                     1.4.0              pyhd3eb1b0_0  
prometheus_client         0.14.1           py39hecd8cb5_0  
prompt-toolkit            3.0.36           py39hecd8cb5_0  
prompt_toolkit            3.0.36               hd3eb1b0_0  
psutil                    5.9.0            py39hca72f7f_0  
ptyprocess                0.7.0              pyhd3eb1b0_2  
pure_eval                 0.2.2              pyhd3eb1b0_0  
pycparser                 2.21               pyhd3eb1b0_0  
pyerfa                    2.0.0            py39h9ed2024_0  
pygments                  2.15.1           py39hecd8cb5_1  
pymc3                     3.11.5           py39h360fd21_0    conda-forge
pymc3-ext                 0.1.1                    pypi_0    pypi
pyopenssl                 23.0.0           py39hecd8cb5_0  
pyparsing                 3.0.9            py39hecd8cb5_0  
pyqt                      5.15.7           py39he9d5cce_0  
pyqt5-sip                 12.11.0          py39he9d5cce_0  
pyrsistent                0.18.0           py39hca72f7f_0  
pysocks                   1.7.1            py39hecd8cb5_0  
python                    3.9.7                h88f2d9e_1  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python-fastjsonschema     2.16.2           py39hecd8cb5_0  
python_abi                3.9                      2_cp39    conda-forge
pytz                      2022.7           py39hecd8cb5_0  
pyyaml                    6.0              py39h6c40b1e_1  
pyzmq                     25.0.2           py39hcec6c5f_0  
qt-main                   5.15.2               h51e0635_8  
qt-webengine              5.15.9               h90a370e_4  
qtconsole                 5.4.2            py39hecd8cb5_0  
qtpy                      2.2.0            py39hecd8cb5_0  
qtwebkit                  5.212                hbfab81c_5  
readline                  8.2                  hca72f7f_0  
requests                  2.29.0           py39hecd8cb5_0  
scipy                     1.7.3            py39h8a15683_1    conda-forge
semver                    2.13.0             pyhd3eb1b0_0  
send2trash                1.8.0              pyhd3eb1b0_1  
setuptools                67.8.0           py39hecd8cb5_0  
setuptools-scm            7.1.0                    pypi_0    pypi
sip                       6.6.2            py39he9d5cce_0  
six                       1.16.0             pyhd3eb1b0_1  
sniffio                   1.2.0            py39hecd8cb5_1  
soupsieve                 2.4              py39hecd8cb5_0  
sqlite                    3.41.2               h6c40b1e_0  
stack_data                0.2.0              pyhd3eb1b0_0  
starry                    1.2.0                    pypi_0    pypi
tapi                      1000.10.8            ha1b3eb9_0  
tbb                       2021.8.0             ha357a0b_0  
terminado                 0.17.1           py39hecd8cb5_0  
testpath                  0.6.0            py39hecd8cb5_0  
theano-pymc               1.1.2            py39hae1ba45_0  
tinycss2                  1.2.1            py39hecd8cb5_0  
tk                        8.6.12               h5d9f67b_0  
toml                      0.10.2             pyhd3eb1b0_0  
tomli                     2.0.1            py39hecd8cb5_0  
tornado                   6.2              py39hca72f7f_0  
tqdm                      4.64.0           py39hecd8cb5_0  
traitlets                 5.7.1            py39hecd8cb5_0  
typing-extensions         3.10.0.2                 pypi_0    pypi
tzdata                    2023c                h04d1e81_0  
urllib3                   1.26.15          py39hecd8cb5_0  
wcwidth                   0.2.5              pyhd3eb1b0_0  
webencodings              0.5.1            py39hecd8cb5_1  
websocket-client          0.58.0           py39hecd8cb5_4  
wheel                     0.38.4           py39hecd8cb5_0  
widgetsnbextension        4.0.5            py39hecd8cb5_0  
wrapt                     1.14.1           py39hca72f7f_0  
x264                      1!157.20191217       h1de35cc_0  
xarray                    2022.11.0        py39hecd8cb5_0  
xyzservices               2023.5.0                 pypi_0    pypi
xz                        5.4.2                h6c40b1e_0  
yaml                      0.2.5                haf1e3a3_0  
zeromq                    4.3.4                h23ab428_0  
zipp                      3.11.0           py39hecd8cb5_0  
zlib                      1.2.13               h4dc903c_0  
zstd                      1.5.5                hc035e20_0   
dfm commented 1 year ago

I think the issue is that the variable is called "flags" not "flats"!

mauralally9 commented 1 year ago

I think the issue is that the variable is called "flags" not "flats"!

Ah, sorry, silly typo on my part! The starry error when trying to run starry.map.show() remains though. I can edit my issue to reflect this.

dfm commented 1 year ago

Haha - thank you! Now this looks to me like a larger issue with your compiler setup. It could have something to do with this stackoverflow post, but I'm not too sure! Perhaps start by taking a look at that?

mauralally9 commented 1 year ago

The solution from the stack overflow worked, thanks! For anyone else who had this issue: every time I quit the shell session it reverts back (puts the anaconda ld at the top again). So the fix works, but every time I restart Terminal I do have to run the export PATH=/usr/bin:/[rest of path] line in my environment again to reorder it.

dfm commented 1 year ago

@mauralally9 — Awesome! I'm glad you got it figured out and thanks for reporting back!!