How to make package.json work on the local file system? #17076
Answered
by
Josverl
konomikitten
asked this question in
Libraries & Drivers
-
I have the following project:
class HelloWorld:
def hello_world(self):
print("Hello World!")
"""common include"""
from example import HelloWorld
def main():
hw = HelloWorld()
hw.hello_world()
if __name__ == '__main__':
main()
{
"urls": [
["example/__init__.py", "example/__init__.py"],
["example/example.py", "example/example.py"]
],
"deps": [],
"version": "0.2"
} When I run
The documentation: Installing packages with mpremote says this should be possible. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
Josverl
Apr 4, 2025
Replies: 1 comment
-
Currently that is not possible without starting a minimal (Python) http server so that mip can access the package on a https url.
There is a PR open to allow this without that workaround. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
konomikitten
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently that is not possible without starting a minimal (Python) http server so that mip can access the package on a https url.
python -m http.server --directory <DIRECTORY>
There is a PR open to allow this without that workaround.