Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
353f584
lora-sx126x,lora-sx127x: Add dependencies for sync/async modems.
brenordv Sep 30, 2025
d41c370
lora/__init__.py: ImportError would be raised incorrectly when the se…
brenordv Sep 30, 2025
3251876
micropython/lora/lora-sx126x/manifest.py: Add dependencies for sync/a…
brenordv Sep 30, 2025
d2f2cf3
micropython/lora/lora/lora/__init__.py: ImportError would be raised i…
brenordv Sep 30, 2025
ecf1fdf
Merge branch 'improving-importing-for-sx-1262' of https://github.com/…
brenordv Oct 1, 2025
f3a9608
micropython/lora/lora/lora/__init__.py: ImportError would be raised i…
brenordv Sep 30, 2025
ccb26f3
micropython/lora/lora-sx126x/manifest.py: Add dependencies for sync/a…
brenordv Sep 30, 2025
f63a8d9
lora/__init__.py: Removed unnecessary line.
brenordv Nov 8, 2025
bfda732
Merge branch 'improving-importing-for-sx-1262' of https://github.com/…
brenordv Nov 8, 2025
9950c97
lora/__init__.py: Removed unnecessary line.
brenordv Nov 8, 2025
43d61c9
Merge branch 'micropython:master' into improving-importing-for-sx-1262
brenordv Nov 8, 2025
9b4cb4d
micropython/lora/lora/lora/__init__.py: Fix ImportError showing "lib.…
brenordv Sep 30, 2025
e19784a
lora-sx126x,lora-sx127x: Add dependencies for sync/async modems.
brenordv Sep 30, 2025
1b6c796
lora/__init__.py: ImportError would be raised incorrectly when the se…
brenordv Sep 30, 2025
117f1a0
lora/__init__.py: Removed unnecessary line.
brenordv Nov 8, 2025
b1dd5d2
Merge branch 'improving-importing-for-sx-1262' of https://github.com/…
brenordv Nov 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion micropython/lora/lora-sx126x/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
metadata(version="0.1.5")
metadata(version="0.1.6")
require("lora")
require("lora-sync")
require("lora-async")
package("lora")
4 changes: 3 additions & 1 deletion micropython/lora/lora-sx127x/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
metadata(version="0.1.2")
metadata(version="0.1.3")
require("lora")
require("lora-sync")
require("lora-async")
package("lora")
10 changes: 7 additions & 3 deletions micropython/lora/lora/lora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,34 @@

ok = False # Flag if at least one modem driver package is installed

def _can_ignore_error(e):
"""Check if ImportError can be ignored due to missing module."""
return all(x in str(e) for x in ["no module named", "lora"])

# Various lora "sub-packages"

try:
from .sx126x import * # noqa: F401

ok = True
except ImportError as e:
if "no module named 'lora." not in str(e):
if not _can_ignore_error(e):
raise

try:
from .sx127x import * # noqa: F401

ok = True
except ImportError as e:
if "no module named 'lora." not in str(e):
if not _can_ignore_error(e):
raise

try:
from .stm32wl5 import * # noqa: F401

ok = True
except ImportError as e:
if "no module named 'lora." not in str(e):
if not _can_ignore_error(e):
raise


Expand Down
Loading