Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

packages in toml -deps option#2298

Unanswered
Neon22 asked this question inQ&A
Feb 25, 2025· 1 comments· 2 replies
Discussion options

I am trying to load theskyfield package.
It has one non-pure python packagesgp4.
The author has made a pure python version -sgp4_pure_python which has aprovides tag which says it provides for sgp4.
This package loads successfully on its own butskyfield will not load.

The idea behind this idea is so I could load thesgp4_pure_python package and then loadskyfield
This might then succeed.
At the moment I still get error "no pure python package for sgp4 can be found"

SO

  1. Its possible I cannot forcesgp4_pure_python to be loaded beforeskyfield as all is async, or
  2. Its possible micropip does not pay attention to theprovides tag insgp4_pure_python package, or
  3. Maybe I can fool it by somehow setting thedeps option in micropip.
    • Invoked like this: micropip.install("pkg", deps=False)
    • Is there a way to signaldeps in the toml file ? That might allow me to load the skyfield package.

The problem is documented here (on the skyfield github) -skyfielders/python-skyfield#1040 (comment)

Working sgp4 demo is here:https://pyscript.com/@neon22/sgp4-starter-pkg/latest?files=main.py,pyscript_py.toml
Nonworking skyfield demo is here:https://pyscript.com/@neon22/skyfield-starter-pkg/latest?files=main.py,pyscript_py.toml

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

unless we're doing something really wrong on our side, this feels to me like anupstream issue to ask atPyodide folks, as we just trustPyodide mechanism to resolve packages in the best way, we only interfere with the cache, also generated bymicropip.

Have you checked if there is either a known issue or a known solution to this problem in there?

You must be logged in to vote
2 replies
@Neon22
Comment options

I suppose its a corner case because its only because skyfield has been packaged in pypi with only one dep missing its pure python version.
Looks like I will have to scrape all the files I need and it will work only for this version I gather.
bit fragile but oh well....

Pity I can't call micropip with the deps option.

@WebReflection
Comment options

you can import it and use it though ... but if it doesn't provide that option there's not much we can do, I suppose

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@Neon22@WebReflection

[8]ページ先頭

©2009-2025 Movatter.jp