Skip to content
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

nostr and python 3.8 #4

Open
jp-bennett opened this issue Sep 26, 2023 · 1 comment
Open

nostr and python 3.8 #4

jp-bennett opened this issue Sep 26, 2023 · 1 comment

Comments

@jp-bennett
Copy link
Contributor

podman start -a owntracks_meshtastic-bridge_1
Traceback (most recent call last):
File "./main.py", line 12, in
from plugins import plugins
File "/code/plugins.py", line 542, in
from nostr.relay_manager import RelayManager
File "/usr/local/lib/python3.8/site-packages/nostr/relay_manager.py", line 8, in
from .relay import Relay, RelayPolicy
File "/usr/local/lib/python3.8/site-packages/nostr/relay.py", line 10, in
class RelayPolicy:
File "/usr/local/lib/python3.8/site-packages/nostr/relay.py", line 15, in RelayPolicy
def to_json_object(self) -> dict[str, bool]:
TypeError: 'type' object is not subscriptable
exit code: 1

Was able to fix this by bumping the python package to 3.9 in the Dockerfile.

@VideoFX
Copy link

VideoFX commented Aug 6, 2024

This worked for me, thanks.

nano /etc/owntracks-meshtastic/meshtastic-bridge/Dockerfile

FROM python:3.9

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

2 participants