WebAssembly ImportError - add whl to PyPI
- Dominant language
- Python
- Stars
- 225
- Forks
- 121
- Avg merge
- 28m
- Merged PRs (30d)
- 1
Description
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
import astroplan
File "/lib/python3.12/site-packages/astroplan/__init__.py", line 23, in
from .utils import *
File "/lib/python3.12/site-packages/astroplan/utils.py", line 15, in
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)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the import in the reported marimo WebAssembly notebook, then inspect astroplan/__init__.py and astroplan/utils.py, especially the astropy.utils.data import. Compare the package version and wheel available on PyPI with the dependency API it expects. Done means astroplan imports successfully in the reported environment using an appropriate published wheel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, wasm
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100