Skip to content

How to install your own package from github #616

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

Closed
thetazero opened this issue Feb 22, 2023 · 0 comments
Closed

How to install your own package from github #616

thetazero opened this issue Feb 22, 2023 · 0 comments

Comments

@thetazero
Copy link

Trying to install my package from here, via mip.install("github:Pycubed-Mini/MODL")

Has a package.json

{
  "urls": [
    ["MODL/__init__.py", "github:Pycubed-Mini/MODL/src/__init__.py"],
    ["MODL/frames.py", "github:Pycubed-Mini/MODL/src/frames.py"],
    ["MODL/IGRF.py", "github:Pycubed-Mini/MODL/src/IGRF.py"],
    ["MODL/mathutils.py", "github:Pycubed-Mini/MODL/src/mathutils.py"],
    ["MODL/orbital_mechanics.py", "github:Pycubed-Mini/MODL/src/orbital_mechanics.py"],
    ["MODL/sun_position.py", "github:Pycubed-Mini/MODL/src/sun_position.py"]
  ],
  "deps": [],
  "version": "0.0.1"
}

importing MODL gives an empty class, even though the files were correctly copied over to /home/thetazero/.micropython/lib/MODL/*.py

MicroPython 2475a93ab on 2023-02-13; linux [GCC 11.3.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import MODL
>>> help(MODL)
object <module 'MODL'> is of type module
  __name__ -- MODL
  __path__ -- MODL
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