Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAssembly ImportError - add whl to PyPI #583

Open
pgriffin17 opened this issue Jun 24, 2024 · 0 comments
Open

WebAssembly ImportError - add whl to PyPI #583

pgriffin17 opened this issue Jun 24, 2024 · 0 comments

Comments

@pgriffin17
Copy link

I'm trying to get astroplan running on a marimo python notebook which is online running under WebAssembly. I plan to use this notebook as an observation planning tool for several educational-use telescopes. This gives me an import error (traceback below) when I import astroplan (it automatically downloads the latest .whl available on PyPI when I ask it to import). I believe this may be due to the latest wheel being outdated (on version 0.6), as I note that the import of _get_download_cache_locs is not present in astroplan v0.6.

I think that updating the whl on PyPI may help solve this problem, so long as that is possible. Thanks!

Traceback (most recent call last):
  File "/lib/python3.12/site-packages/marimo/_runtime/runner/cell_runner.py", line 319, in run
    return_value = execute_cell(
                   ^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/marimo/_runtime/executor.py", line 75, in execute_cell
    return EXECUTION_TYPES[execution_type].execute_cell(cell, glbls, graph)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.12/site-packages/marimo/_runtime/executor.py", line 129, in execute_cell
    exec(cell.body, glbls)
  File "/tmp/marimo_42/__marimo__cell_MJUe_.py", line 1, in <module>
    import astroplan
  File "/lib/python3.12/site-packages/astroplan/__init__.py", line 23, in <module>
    from .utils import *
  File "/lib/python3.12/site-packages/astroplan/utils.py", line 15, in <module>
    from astropy.utils.data import _get_download_cache_locs, CacheMissingWarning
ImportError: cannot import name '_get_download_cache_locs' from 'astropy.utils.data' (/lib/python3.12/site-packages/astropy/utils/data.py)
@pllim pllim mentioned this issue Dec 10, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant